Closed GoogleCodeExporter closed 8 years ago
Updating MethodTester.Test() to
public bool Test( MethodKey method )
{
if ( key != null )
return method == key;
if ( Helper.CompareOptionalRegex(method.TypeKey.Fullname,
type) )
{
if ( name != null ) {
if (attrib=="" || attrib==method.attrib) {
return
Helper.CompareOptionalRegex(method.Name, name);
}
} else {
if (attrib=="" || attrib==method.attrib) {
return nameRx.IsMatch( method.Name );
}
}
}
return false;
}
and adding a property to MethodKey class of attrib to return
public/protected/private
depending on the MethodDefinition passed to the constructor. I'm not familiar
enough
with the project to be certain what to do in the other constructors of
MethodKey to
make it consistent (or if this is the 'right' fix), but it works for me.
Original comment by adam%wyl...@gtempaccount.com
on 12 Aug 2009 at 3:39
With version 1.5 the attrib attribute is evaluated correctly.
There are two possible values: 'public' and 'protected' (which includes public)
Original comment by webbi...@gmail.com
on 6 Nov 2009 at 3:08
Using the binary release of Obfuscar 1.5.0, I still see this problem. I have
tried
several variations of the SkipProperty -Method, and -Field command, and it
appears to
ignore both the public and protected attributes, only following the rx=
parameter and
other pattern matching. I have tried simple configurations such as:
<SkipType name="^.*"/>
<SkipMethod type="^.*" attrib="public" rx=".*" />
This does not skip public methods for me. :( Similar results with more specific
patterns for type and rx, with both public and private. I will try with svn
when I
have time.
Original comment by tekh...@gmail.com
on 6 Nov 2009 at 10:57
Original issue reported on code.google.com by
adam%wyl...@gtempaccount.com
on 12 Aug 2009 at 2:32