示例#1
0
 /// <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))
 {
 }
示例#2
0
 /// <inheritdoc />
 public abstract object GetProperty(IReadOnlyPropertyDescriptor property);
示例#3
0
 /// <inheritdoc />
 public abstract T GetProperty <T>(IReadOnlyPropertyDescriptor <T> property);
示例#4
0
 public override object GetProperty(IReadOnlyPropertyDescriptor property)
 {
     return(_properties.GetValue(property));
 }
示例#5
0
 public override T GetProperty <T>(IReadOnlyPropertyDescriptor <T> property)
 {
     return(_properties.GetValue(property));
 }
示例#6
0
 /// <inheritdoc />
 public override object GetProperty(IReadOnlyPropertyDescriptor property)
 {
     _properties.TryGetValue(property, out var value);
     return(value);
 }
示例#7
0
 /// <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));
 }
示例#10
0
 /// <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);
 }