@@ -144,21 +144,21 @@ private static bool IsAttachedProperty(FieldDefinition field, Dictionary<string,
144
144
145
145
private static bool IsAttachedPropertyGetMethod ( MethodDefinition method )
146
146
{
147
- return method . Parameters . Count == 1
148
-
149
- // returns a value of type dp.PropertyType (or IsAssignableTo…), where dp is the value of the static field.
150
- // && IsAssignableTo(method.ReturnType, "");
151
-
152
- // The Get method takes one argument of type DependencyObject(or something IsAssignableTo(DependencyObject),
153
- && ( IsAssignableTo ( method . Parameters [ 0 ] . ParameterType , Consts . DependencyObjectFullName ) || IsAssignableTo ( method . Parameters [ 0 ] . ParameterType , Consts . DependencyObjectFullNameXaml ) ) ;
147
+ return method . Parameters . Count == 1
148
+
149
+ // returns a value of type dp.PropertyType (or IsAssignableTo…), where dp is the value of the static field.
150
+ // && IsAssignableTo(method.ReturnType, "");
151
+
152
+ // The Get method takes one argument of type DependencyObject(or something IsAssignableTo(DependencyObject),
153
+ ; // && (IsAssignableTo(method.Parameters[0].ParameterType, Consts.DependencyObjectFullName) || IsAssignableTo(method.Parameters[0].ParameterType, Consts.DependencyObjectFullNameXaml));
154
154
}
155
155
156
156
private static bool IsAttachedPropertySetMethod ( MethodDefinition method )
157
157
{
158
158
return method . Parameters . Count == 2 // The Set method takes two arguments.
159
159
160
160
// The first has type DependencyObject(or IsAssignableTo…),
161
- && ( IsAssignableTo ( method . Parameters [ 0 ] . ParameterType , Consts . DependencyObjectFullName ) || IsAssignableTo ( method . Parameters [ 0 ] . ParameterType , Consts . DependencyObjectFullNameXaml ) )
161
+ //s && (IsAssignableTo(method.Parameters[0].ParameterType, Consts.DependencyObjectFullName) || IsAssignableTo(method.Parameters[0].ParameterType, Consts.DependencyObjectFullNameXaml))
162
162
163
163
// the second has type dp.PropertyType (or IsAssignableTo…).
164
164
// && IsAssignableTo(method.Parameters[1].ParameterType, "")
0 commit comments