예제 #1
0
        public NullableTypeInfo(Type type, List <Type> recursionCheck)
            : base(type)
        {
            var typeArgs = type.GenericTypeArguments;

            Debug.Assert(typeArgs.Length == 1);
            this.valueInfo   = TraceLoggingTypeInfo.GetInstance(typeArgs[0], recursionCheck);
            this.valueGetter = PropertyValue.GetPropertyGetter(type.GetTypeInfo().GetDeclaredProperty("Value"));
        }
예제 #2
0
 public PropertyAnalysis(
     string name,
     PropertyInfo propertyInfo,
     TraceLoggingTypeInfo typeInfo,
     EventFieldAttribute fieldAttribute)
 {
     this.name           = name;
     this.propertyInfo   = propertyInfo;
     this.getter         = PropertyValue.GetPropertyGetter(propertyInfo);
     this.typeInfo       = typeInfo;
     this.fieldAttribute = fieldAttribute;
 }