System.ZXPProxy.GetAttribute C# (CSharp) Method

GetAttribute() private static method

private static GetAttribute ( FieldInfo fi ) : ZXParseAttribute
fi System.Reflection.FieldInfo
return ZXParseAttribute
        private static ZXParseAttribute GetAttribute(FieldInfo fi)
        {
            object[] attr = fi.GetCustomAttributes(ATTR_TYPE, true);
            if(attr == null || attr.Length < 1) return null;
            return attr[0] as ZXParseAttribute;
        }

Same methods

ZXPProxy::GetAttribute ( MethodInfo mi ) : ZXParseAttribute
ZXPProxy::GetAttribute ( PropertyInfo pi ) : ZXParseAttribute