示例#1
0
 /// <summary>
 /// Returns the value of an event property.
 /// </summary>
 /// <value></value>
 /// <returns> the value of a simple property with the specified name.
 /// </returns>
 /// <throws>  PropertyAccessException - if there is no property of the specified name, or the property cannot be accessed </throws>
 public Object this[String property]
 {
     get
     {
         EventPropertyGetter getter = variantEventType.GetGetter(property);
         return(getter != null?getter.Get(this) : null);
     }
 }
示例#2
0
        public Object Get(string property)
        {
            EventPropertyGetter getter = _variantEventType.GetGetter(property);

            if (getter == null)
            {
                return(null);
            }
            return(getter.Get(this));
        }