Skip to content

Commit f0e9cf6

Browse files
authored
Merge pull request #10 from lorddev/sonar
Accepted merge
2 parents dcc0bbe + 2b9ad29 commit f0e9cf6

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Kveer.XmlRPC/XmlRpcBeginAttribute.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public XmlRpcBeginAttribute(string method)
3939
Method = method;
4040
}
4141

42+
public string Description { get; set; } = "";
43+
44+
public bool Hidden { get; set; } = false;
45+
4246
public string Method { get; } = "";
4347

4448
public Type ReturnType { get; set; } = null;
@@ -51,8 +55,6 @@ public override string ToString()
5155
return value;
5256
}
5357

54-
public string Description = "";
55-
public bool Hidden = false;
56-
}
58+
}
5759
}
5860

Kveer.XmlRPC/XmlRpcEndAttribute.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ namespace CookComputing.XmlRpc
3030
[AttributeUsage(AttributeTargets.Method)]
3131
public class XmlRpcEndAttribute : Attribute
3232
{
33-
public string Description = "";
34-
public bool Hidden = false;
3533

36-
public XmlRpcEndAttribute() { }
34+
public XmlRpcEndAttribute() { }
3735

3836
public XmlRpcEndAttribute(string method)
3937
{
4038
Method = method;
4139
}
4240

41+
public string Description { get; set; } = "";
42+
43+
public bool Hidden { get; set; } = false;
44+
4345
public string Method { get; } = "";
4446

4547
public bool IntrospectionMethod { get; set; } = false;

0 commit comments

Comments
 (0)