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

◆ TryGetValue()

bool Microsoft.Xna.Framework.Graphics.ModelBoneCollection.TryGetValue ( string boneName,
out ModelBone value )
inline

Definition at line 67 of file ModelBoneCollection.cs.

68 {
69 if (string.IsNullOrEmpty(boneName))
70 {
71 throw new ArgumentNullException("boneName");
72 }
73 int count = base.Items.Count;
74 for (int i = 0; i < count; i++)
75 {
76 ModelBone modelBone = base.Items[i];
77 if (string.Compare(modelBone.Name, boneName, 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.