I have many similar classes generated by svcutil from some external WSDL file. Any class has a property Headerand a property stringcalled class name + "1".
For example, I have classes:, SimpleRequestwhich has a property Headerand a property SimpleRequest1.
The other is ComplexRequest, with the property Headerand ComplexRequest1.
So, I want to create a common interface for such classes. So basically I can define something like this:
interface ISomeRequestClass {
string Header;
}
Is it possible to define such an element in the interface?
Here is the message being edited ...
Here is an example of a generated class:
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
public partial class SimpleRequest
{
public string Header;
[System.ServiceModel.MessageBodyMemberAttribute(Name="SimpleRequest", Namespace="data", Order=0)]
public SimpleRequestMsg SimpleRequest1;
public SimpleRequest()
{
}
public SimpleRequest(string Header, SimpleRequestMsg SimpleRequest1)
{
this.Header = Header;
this.SimpleRequest1 = SimpleRequest1;
}
}
WORK REPORT 2
+1, . . , ?
3
, .