Implements

The Implements aspect, available on the Island and .NET platforms, can be used to mark a method as providing the implementation for a particular interface member, even if it is named differently.

The aspect provides the same functionality as Oxygene's implements keyword, and expands upon C#'s syntax for explicit private interface implementations.

Implements takes two parameters, the type and the member that the implementation is provided for.

[Implements(typeOf(IMyInterface), "TestFunction")]
method test;
begin
    ...
end;

Is equivalent to:

method test; implements IMyInterface.TestFunction
begin
    ...
end;
[Implements(typeof(IMyInterface), "TestFunction")]
public void test()
{
    ...
}

Is similar to the following, but the method isn also accessible via the name test, while the below would not be:

public void IMyInterface.TestFunction()
{
    ...
}

```

@Implements(typeof(IMyInterface), "TestFunction")
public func test() {
    ...
}
@Implements(typeof(IMyInterface), "tTstFunction")
public void test() 
{
    ...
}

Defined in RemObjects.Elements.Cirrus.

.NET and Island Only

The Implements aspect is available on .NET and Island platforms only.