예제 #1
0
 public RuntimePropertyInfo(Property property, RuntimeType declaringType, RuntimeMethodInfo getMethod, RuntimeMethodInfo setMethod)
 {
     _property = property;
     _declaringType = declaringType;
     _getMethod = getMethod;
     _setMethod = setMethod;
 }
예제 #2
0
 internal static Property CreateProperty(Class declaringType, string name, Method getMethod, Method setMethod)
 {
     Property property = new Property();
     property.DeclaringClass = declaringType;
     property.Name = name;
     property.GetMethod = getMethod;
     property.SetMethod = setMethod;
     declaringType.Properties.Push(property);
     return property;
 }