InterviewSolution
| 1. |
What If The Xml-rpc Struct Member Name Is Not Valid In .net? |
|
Answer» In some cases the NAME of a member in an XML-RPC struct might be INVALID in the .NET programming language being USED. To handle this the XmlRpcMember attribute is available. This allows an XML-RPC member name to be mapped to and from a different .NET name. For example: public struct SumAndDiffValue { [XmlRpcMember("sample.sum")] public int sum; [XmlRpcMember("sample.DIFFERENCE")] public int difference; } In some cases the name of a member in an XML-RPC struct might be invalid in the .NET programming language being used. To handle this the XmlRpcMember attribute is available. This allows an XML-RPC member name to be mapped to and from a different .NET name. For example: public struct SumAndDiffValue { [XmlRpcMember("sample.sum")] public int sum; [XmlRpcMember("sample.difference")] public int difference; } |
|