Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryGetValue()

bool Microsoft.Xna.Framework.Graphics.ModelMeshCollection.TryGetValue ( string meshName,
out ModelMesh value )
inline

Definition at line 67 of file ModelMeshCollection.cs.

68 {
69 if (string.IsNullOrEmpty(meshName))
70 {
71 throw new ArgumentNullException("meshName");
72 }
73 int count = base.Items.Count;
74 for (int i = 0; i < count; i++)
75 {
76 ModelMesh modelMesh = base.Items[i];
77 if (string.Compare(modelMesh.Name, meshName, StringComparison.Ordinal) == 0)
78 {
80 return true;
81 }
82 }
83 value = null;
84 return false;
85 }

References System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, and System.value.