Skip to content

Commit c435fcf

Browse files
committed
Restore compatibility
1 parent 0418719 commit c435fcf

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/Java.Interop.NamingCustomAttributes/Android.Runtime/RegisterAttribute.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,30 @@ sealed class RegisterAttribute : Attribute, Java.Interop.IJniNameProviderAttribu
1414
string name;
1515
string signature;
1616

17-
public RegisterAttribute (string name, CustomAttribute originAttribute)
17+
public RegisterAttribute (string name)
1818
{
1919
this.name = name;
20+
}
21+
22+
public RegisterAttribute (string name, CustomAttribute originAttribute)
23+
: this (name)
24+
{
2025
OriginAttribute = originAttribute;
2126
}
2227

23-
public RegisterAttribute (string name, string signature, string connector, CustomAttribute originAttribute)
28+
public RegisterAttribute (string name, string signature, string connector)
2429
: this (name, originAttribute)
2530
{
2631
this.connector = connector;
2732
this.signature = signature;
2833
}
2934

35+
public RegisterAttribute (string name, string signature, string connector, CustomAttribute originAttribute)
36+
: this (name, signature, connector)
37+
{
38+
OriginAttribute = originAttribute;
39+
}
40+
3041
public CustomAttribute OriginAttribute { get; }
3142

3243
public string Connector {

0 commit comments

Comments
 (0)