Class TypeExtensions
- Namespace
- IceRpc
- Assembly
- IceRpc.dll
Provides extension methods for Type.
public static class TypeExtensions
- Inheritance
-
TypeExtensions
- Inherited Members
Methods
GetDefaultServicePath(Type)
Retrieves the default service path, as set by the attribute DefaultServicePathAttribute.
public static string GetDefaultServicePath(this Type type)
Parameters
typeTypeThe interface with the DefaultServicePathAttribute attribute, or a class that implements such an interface.
Returns
- string
The default service path.
Remarks
When type is an interface, this method only searches for the attribute on the
interface itself.
Exceptions
- ArgumentException
Thrown if
typeis neither a class nor an interface, or if it does not have a DefaultServicePathAttribute attribute, or if it is a class that implements multiple interfaces with a DefaultServicePathAttribute attribute.
- See Also