static private Create ( IMonoStructType klass, int index, Mono.Cecil pinfo ) : |
||
klass | IMonoStructType | |
index | int | |
pinfo | Mono.Cecil | |
return |
internal MonoPropertyInfo[] GetProperties(TargetMemoryAccess target) { if (properties != null) { return(properties); } properties = new MonoPropertyInfo [CecilType.Properties.Count]; for (int i = 0; i < CecilType.Properties.Count; i++) { Cecil.PropertyDefinition prop = CecilType.Properties [i]; properties [i] = MonoPropertyInfo.Create(struct_type, i, prop); } return(properties); }
void get_properties() { lock (this) { if (properties != null) { return; } properties = new MonoPropertyInfo [TypeDef.Properties.Count]; for (int i = 0; i < properties.Length; i++) { Cecil.PropertyDefinition prop = TypeDef.Properties [i]; Cecil.MethodDefinition m = prop.GetMethod; if (m == null) { m = prop.SetMethod; } properties [i] = MonoPropertyInfo.Create(this, i, prop); } } }