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

◆ GetClassEnsureIndex()

ExpandoClass System.Dynamic.ExpandoObject.MetaExpando.GetClassEnsureIndex ( string name,
bool caseInsensitive,
ExpandoObject obj,
out ExpandoClass klass,
out int index )
inlineprivate

Definition at line 353 of file ExpandoObject.cs.

354 {
355 ExpandoClass @class = Value.Class;
356 index = @class.GetValueIndex(name, caseInsensitive, obj);
357 if (index == -2)
358 {
359 klass = @class;
360 return null;
361 }
362 if (index == -1)
363 {
364 index = (klass = @class.FindNewClass(name)).GetValueIndexCaseSensitive(name);
365 return @class;
366 }
367 klass = @class;
368 return null;
369 }

References System.index, System.obj, and System.Dynamic.ExpandoObject.MetaExpando.Value.

Referenced by System.Dynamic.ExpandoObject.MetaExpando.BindSetMember().