view = NET.interfaceView(
obj
,
typename
)
creates an explicit view of a .NET object as one of its implemented interfaces. Use
view
to access members of the .NET interface type
typename
that are explicitly implemented by
obj
.
For more information, see the MSDN
®
article
Explicit Interface Implementation
.
System.String
has methods such as
ToLower
which manipulate strings. The interface object has conversion methods to cast the object
to different types, such as the datetime type using the
ToDateTime
method. Compare the output of these commands: