ActiveRecordPattern.ActiveRecordBase.properties C# (CSharp) 메소드

properties() 보호된 정적인 메소드

protected static properties ( Type Type ) : System.Reflection.PropertyInfo[]
Type System.Type
리턴 System.Reflection.PropertyInfo[]
        protected static PropertyInfo[] properties(Type Type)
        {
            List<PropertyInfo> propertyInfos = new List<PropertyInfo>();
            PropertyInfo[] properies = Type.GetProperties();
            foreach (PropertyInfo property in properies)
                if (Attribute.IsDefined(property, typeof(PropertyRecord)))
                    propertyInfos.Add(property);

            return propertyInfos.ToArray();
        }