Skip to content

T_CodeJam_Reflection_TypeAccessor

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

TypeAccessor Class

Provides fast access to type and its members.

Inheritance Hierarchy

System.Object
  CodeJam.Reflection.TypeAccessor
    CodeJam.Reflection.TypeAccessor(T)
Namespace: CodeJam.Reflection
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public abstract class TypeAccessor

VB

Public MustInherit Class TypeAccessor

F#

[<AbstractClassAttribute>]
type TypeAccessor =  class end

The TypeAccessor type exposes the following members.

Constructors

 

Name Description
Protected method TypeAccessor Initializes a new instance of the TypeAccessor class
  Back to Top

Properties

 

Name Description
Public property Item(Int32) Returns MemberAccessor by index.
Public property Item(String) Returns MemberAccessor by its name.
Public property Members Type members.
Public property Type Type to access.
  Back to Top

Methods

 

Name Description
Protected method AddMember Adds MemberAccessor.
Public method CreateInstance Creates an instance of the accessed type.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member GetAccessor(Type) Creates an instance of TypeAccessor.
Public methodStatic member GetAccessor(T)() Creates an instance of TypeAccessor.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

CodeJam.Reflection Namespace

Clone this wiki locally