예제 #1
0
        protected override PropertyDefinition[] GetProperties()
        {
            var properties = InterceptableMemberHelper.GetInterceptableProperties(Type, Interfaces);
            int length     = properties.Count;

            PropertyDefinition[] propertyDefinitions = new PropertyDefinition[length];
            for (int i = 0; i < length; i++)
            {
                propertyDefinitions[i] = new PropertyDefinition(this, properties[i]);
            }
            return(propertyDefinitions);
        }
        protected override PropertyDefinition[] GetProperties()
        {
            var definitions = new List <PropertyDefinition>();

            var properties = InterceptableMemberHelper.GetInterceptableProperties(Type, Interfaces);

            foreach (var property in properties)
            {
                definitions.Add(new PropertyDefinition(this, property));
            }

            // mixins
            foreach (var mxinDefinition in MixinDefinitions)
            {
                definitions.AddRange(mxinDefinition.PropertyDefinitions);
            }

            return(definitions.ToArray());
        }