public DefaultFromContextProperty( PropertyAccessor accessor, DefaultFromContextAttribute attribute ) { if (accessor == null) { throw Logger.Fatal.ArgumentNull(nameof(accessor)); } if (attribute == null) { throw Logger.Fatal.ArgumentNull(nameof(attribute)); } Accessor = accessor; Attribute = attribute; ResolvedPropertyInfo = ResolvedPropertyTypeInfo.TryParse(PropertyTypeInfo); ValidateIsNullable(); ValidateTagTypeIsIDefaultFromContextTag(); ValidateWithTagNotResolvable(); }
public DefaultFromContextProperty( PropertyAccessor accessor, DefaultFromContextAttribute attribute ) { if (accessor == null) { throw Logger.Fatal.ArgumentNull(nameof(accessor)); } if (attribute == null) { throw Logger.Fatal.ArgumentNull(nameof(attribute)); } Accessor = accessor; Attribute = attribute; ResolvedPropertyInfo = ResolvedPropertyTypeInfo.TryParse(PropertyTypeInfo); ValidateIsNullable(); ValidateTagTypeIsIDefaultFromContextTag(); ValidateWithTagNotResolvable(); }