/// <summary> /// Initializes this object. /// </summary> /// <param name="property"></param> public NoSuchPropertyException(IReadOnlyPropertyDescriptor property) : base(string.Format("This log file doesn't have a property '{0}'", property)) { }
/// <inheritdoc /> public abstract object GetProperty(IReadOnlyPropertyDescriptor property);
/// <inheritdoc /> public abstract T GetProperty <T>(IReadOnlyPropertyDescriptor <T> property);
public override object GetProperty(IReadOnlyPropertyDescriptor property) { return(_properties.GetValue(property)); }
public override T GetProperty <T>(IReadOnlyPropertyDescriptor <T> property) { return(_properties.GetValue(property)); }
/// <inheritdoc /> public override object GetProperty(IReadOnlyPropertyDescriptor property) { _properties.TryGetValue(property, out var value); return(value); }
/// <inheritdoc /> public override T GetProperty <T>(IReadOnlyPropertyDescriptor <T> property) { _properties.TryGetValue(property, out var value); return(value); }
public T GetProperty <T>(IReadOnlyPropertyDescriptor <T> property) { return(_source.GetProperty(property)); }
public object GetProperty(IReadOnlyPropertyDescriptor property) { return(_source.GetProperty(property)); }
/// <summary> /// /// </summary> /// <typeparam name="T"></typeparam> /// <param name="propertyDescriptor"></param> /// <param name="value"></param> public void SetValue <T>(IReadOnlyPropertyDescriptor <T> propertyDescriptor, T value) { _properties.SetValue(propertyDescriptor, value); }