Interface IAddress
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
A interface implemented by addresses like Account- and Contract address.
public interface IAddress
Examples
internal static void Example(Grpc.V2.Address address)
{
var addressMapped = CreateAddress(address);
switch (addressMapped)
{
case AccountAddress aa:
Console.WriteLine($"Do something with: {aa}");
break;
case ContractAddress ca:
Console.WriteLine($"Do something with: {ca}");
break;
}
}