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

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

protected static propertyKey ( Type Type ) : PropertyInfo
Type System.Type
리턴 System.Reflection.PropertyInfo
        protected static PropertyInfo propertyKey(Type Type)
        {
            PropertyInfo[] properies = Type.GetProperties();
            foreach (PropertyInfo property in properies)
                if (Attribute.IsDefined(property, typeof(PropertyKeyRecord)))
                    return property;
            return null;
        }