Show / Hide Table of Contents

Class PofReflectionHelper

Collection of helper methods for POF reflection.

Inheritance
System.Object
PofReflectionHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Tangosol.IO.Pof.Reflection
Assembly: Coherence.Core.dll
Syntax
public class PofReflectionHelper

Methods

| Improve this Doc View Source

EnsureType(Object, Int32, IPofContext)

Validate that the supplied object is compatible with the specified type.

Declaration
public static object EnsureType(object o, int typeId, IPofContext ctx)
Parameters
Type Name Description
System.Object o

The object.

System.Int32 typeId

The Pof type identifier; includes Pof intrinsics, Pof compact values, and user types.

IPofContext ctx

The IPofContext.

Returns
Type Description
System.Object

The original object.

Exceptions
Type Condition
System.ArgumentException

If the specified type is a user type that is unknown to this IPofContext or there is no type mapping.

System.InvalidCastException

If the specified object is not assignable to the specified type.

| Improve this Doc View Source

GetType(Int32, IPofContext)

Determine the type associated with the given type identifier.

Declaration
public static Type GetType(int typeId, IPofContext ctx)
Parameters
Type Name Description
System.Int32 typeId

The Pof type identifier; includes Pof intrinsics, Pof compact values, and user types.

IPofContext ctx

The IPofContext.

Returns
Type Description
System.Type

The type associated with the specified type identifier or null for types with no mapping.

Exceptions
Type Condition
System.ArgumentException

If the specified type is a user type that is unknown to this IPofContext.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000, 2020, Oracle and/or its affiliates. All rights reserved.