Create() static private method

static private Create ( IMonoStructType klass, int index, Mono.Cecil pinfo ) : MonoPropertyInfo
klass IMonoStructType
index int
pinfo Mono.Cecil
return MonoPropertyInfo
Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
                }
            }
        }