views:

54

answers:

0

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.