Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public fields | Public Member Functions | List of all members
Loyc.Utilities.GoAliasAttribute Class Reference

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...


Source file:
Inheritance diagram for Loyc.Utilities.GoAliasAttribute:

Remarks

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)