Пример #1
0
 public T GetCustomeAttribute <T>() where T :  Attribute
 {
     if (FieldOrPropertyInfo != null)
     {
         return(FieldOrPropertyInfo.GetCustomAttribute <T>());
     }
     else
     {
         return(ParameterInfo.GetCustomAttribute <T>());
     }
 }
Пример #2
0
 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);
 }