예제 #1
0
 public void Deserialize()
 {
     declaringType = ReflectionTools.GetType(declaringTypeName);
     if (declaringType != null)
     {
         property     = ReflectionTools.GetRelativeMember(declaringType, parameterName) as PropertyInfo;
         field        = ReflectionTools.GetRelativeMember(declaringType, parameterName) as FieldInfo;
         animatedType = property != null ? property.PropertyType : field != null ? field.FieldType : null;
     }
 }
예제 #2
0
 public void Deserialize()
 {
     declaringType = ReflectionTools.GetType(declaringTypeName);
     if (declaringType != null)
     {
         property     = declaringType.RTGetProperty(parameterName);
         field        = declaringType.RTGetField(parameterName);
         animatedType = property != null? property.PropertyType : field != null? field.FieldType : null;
     }
 }