ActiveRecordPattern.ActiveRecordBase.propertyKey C# (CSharp) Method

propertyKey() protected static method

protected static propertyKey ( Type Type ) : PropertyInfo
Type System.Type
return 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;
        }