ActiveRecordPattern.ActiveRecordBase.propertyKeyType C# (CSharp) Method

propertyKeyType() protected static method

protected static propertyKeyType ( Type Type ) : Type
Type System.Type
return System.Type
        protected static Type propertyKeyType(Type Type)
        {
            PropertyInfo[] properies = Type.GetProperties();

            foreach (PropertyInfo property in properies)
                if (Attribute.IsDefined(property, typeof(PropertyKeyRecord)))
                    return property.PropertyType;

            return null;
        }