public AttachedPropertyReference(PropertyDefinition propertyDefinition) : base(AttachedEntitiesHelper.GetPropertyName(propertyDefinition.Name), propertyDefinition.PropertyType, propertyDefinition.DeclaringType)
 {
     this.propertyDefinition = propertyDefinition;
 }
Пример #2
0
 public static IEnumerable <MemberReference> AttachedEntities(this TypeDefinition type)
 {
     return(AttachedEntitiesHelper.GetAttachedEntities(type));
 }
 public AttachedPropertyReference(FieldDefinition fieldDefinition) : base(AttachedEntitiesHelper.GetPropertyName(fieldDefinition.Name), fieldDefinition.FieldType, fieldDefinition.DeclaringType)
 {
     this.fieldDefinition = fieldDefinition;
 }