Oracle® Fusion Middleware .NET API Reference for Identity Connector Framework  E57662-01
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | Properties | List of all members
Org.IdentityConnectors.Common.SafeType< T > Class Template Reference

The equivalent of java's Class<? extends...gt; syntax. Allows you to restrict a Type to a certain class hierarchy. More...

Public Member Functions

SafeType< T > GetTypeErasure ()
 Returns the generic type definition corresponding to this type. Will return the same type if this is already a generic type. More...
 
CreateInstance ()
 Creates a new instance of the given type More...
 
override bool Equals (object o)
 Returns true iff these represent the same underlying type and the SafeType has the same parent type. More...
 
override int GetHashCode ()
 Returns a hash of the type More...
 
override string ToString ()
 Returns a string representation of the member type More...
 

Static Public Member Functions

static SafeType< T > ForRawType (Type type)
 Returns the SafeType for a given raw type. NOTE: If possible use Get<U>() instead since it is statically checked at compile time. More...
 
static SafeType< T > Get< U > ()
 Gets an instance of the safe type in a type-safe fashion. More...
 
static SafeType< T > Get (T obj)
 Gets an instance of the safe type in a type-safe fashion from an object. More...
 

Properties

Type RawType [get]
 Returns the underlying C# type More...
 

Detailed Description

The equivalent of java's Class<? extends...gt; syntax. Allows you to restrict a Type to a certain class hierarchy.

Type Constraints
T :class 

Member Function Documentation

T Org.IdentityConnectors.Common.SafeType< T >.CreateInstance ( )

Creates a new instance of the given type

Returns
The new instance
override bool Org.IdentityConnectors.Common.SafeType< T >.Equals ( object  o)

Returns true iff these represent the same underlying type and the SafeType has the same parent type.

Parameters
oThe other
Returns
true iff these represent the same underylying type and the TypeGroup has the same parent type
static SafeType<T> Org.IdentityConnectors.Common.SafeType< T >.ForRawType ( Type  type)
static

Returns the SafeType for a given raw type. NOTE: If possible use Get<U>() instead since it is statically checked at compile time.

Parameters
type
Returns
static SafeType<T> Org.IdentityConnectors.Common.SafeType< T >.Get ( obj)
static

Gets an instance of the safe type in a type-safe fashion from an object.

Returns
The instance of the safe type
static SafeType<T> Org.IdentityConnectors.Common.SafeType< T >.Get< U > ( )
static

Gets an instance of the safe type in a type-safe fashion.

Returns
The instance of the safe type
Type Constraints
U :T 
override int Org.IdentityConnectors.Common.SafeType< T >.GetHashCode ( )

Returns a hash of the type

Returns
a hash of the type
SafeType<T> Org.IdentityConnectors.Common.SafeType< T >.GetTypeErasure ( )

Returns the generic type definition corresponding to this type. Will return the same type if this is already a generic type.

Returns
override string Org.IdentityConnectors.Common.SafeType< T >.ToString ( )

Returns a string representation of the member type

Returns
a string representation of the member type

Property Documentation

Type Org.IdentityConnectors.Common.SafeType< T >.RawType
get

Returns the underlying C# type


The documentation for this class was generated from the following file: