public T GetCustomeAttribute <T>() where T : Attribute { if (FieldOrPropertyInfo != null) { return(FieldOrPropertyInfo.GetCustomAttribute <T>()); } else { return(ParameterInfo.GetCustomAttribute <T>()); } }
public CodegenClassMember(string fieldName, MemberInfo memberInfo, int fieldHash) { InfoWrapper = new FieldOrPropertyInfo(memberInfo); FieldName = fieldName; FieldHash = fieldHash; }
static void CreateNullResolver(CrossSceneReferenceResolver resolver, Behaviour refUsage, FieldOrPropertyInfo fieldInfoWrapper) { CollectResolveData(resolver, refUsage, refUsage.GetType(), fieldInfoWrapper?.MemberInfo, null); }