Enhanced C#
Language of your choice: library documentation
|
This attribute is applied to a method of an interface to specify alternate names that a method can have in T when you use GoInterface <Interface, T> to produce a wrapper. More...
This attribute is applied to a method of an interface to specify alternate names that a method can have in T when you use GoInterface <Interface, T> to produce a wrapper.
public class MyCollection { void Insert(object obj); int Size { get; } object GetAt(int i); } public interface ISimpleList { [GoAlias("Insert")] void Add(object item);
int Count { [GoAlias("get_Size")] get; } object this[int index] { [GoAlias("GetAt")] get; } } void Example() { ISimpleList list = GoInterface<ISimpleList>.From(new MyCollection()); list.Add(10); // calls MyCollection.Insert(10) }
Public fields | |
readonly string[] | Aliases |
Public Member Functions | |
GoAliasAttribute (params string[] aliases) | |