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

◆ IsCompatibleObject()

static bool System.Collections.ObjectModel.ReadOnlyCollection< T >.IsCompatibleObject ( object value)
inlinestaticprivateinherited

Definition at line 188 of file ReadOnlyCollection.cs.

189 {
190 if (!(value is T))
191 {
192 if (value == null)
193 {
194 return default(T) == null;
195 }
196 return false;
197 }
198 return true;
199 }

References System.value.

Referenced by System.Collections.ObjectModel.ReadOnlyCollection< T >.Contains(), and System.Collections.ObjectModel.ReadOnlyCollection< T >.IndexOf().