Rename parameter in a WCF client interface
Posted
by user295479
on Stack Overflow
See other posts from Stack Overflow
or by user295479
Published on 2010-03-30T07:10:46Z
Indexed on
2010/03/30
7:13 UTC
Read the original article
Hit count: 475
Hello everyone,
I was wondering if there is a way to rename a parameter in a WCF client interface method ,just the same way I can rename methods or enumerations:
Renaming methods:
[System.Runtime.Serialization.DataMemberAttribute(Name = "intError")]
public int ErrorCode {...}
Renaming enumerations:
public enum MyEnumeration: int {
[System.Runtime.Serialization.EnumMemberAttribute()]
None = 0,
[System.Runtime.Serialization.EnumMemberAttribute(Value = "FirstOption")]
First= 1,
[System.Runtime.Serialization.EnumMemberAttribute()]
SecondOption= 2,
}
Renaming parameters??
I want to rename an interface parameter named "error" which FxCop doesn't like. Any help will be appreciated. Thank you.
© Stack Overflow or respective owner