InternalTypeHelper 类

定义

由 WPF XAML 编译器在内部使用的抽象类,用于支持使用内部类型。Abstract class used internally by the WPF XAML compiler to support the use of internal types.

public ref class InternalTypeHelper abstract
public abstract class InternalTypeHelper
type InternalTypeHelper = class
Public MustInherit Class InternalTypeHelper
继承
InternalTypeHelper
派生

注解

@No__t-0 类不应由 WPF XAML 标记编译器以外的任何项使用。The InternalTypeHelper class is not intended for use by anything other than the WPF XAML markup compiler.

编译 XAML 文件时,可以使用公共类型,但也可以使用受限于对内部类型进行代码访问时存在的相同限制的内部类型。When compiling a XAML file, you can use public types, but you can also use internal types subject to the same limitations that exist on code access to internal types. InternalTypeHelper 支持对标记的内部访问级别类型的支持。InternalTypeHelper enables support of internal access level types for markup. 这涉及到编译器创建派生自 0 @no__t 的生成类并实现其成员。This involves the compiler creating a generated class that derives from InternalTypeHelper and implements its members. 生成的类存在于安全和访问上下文中,这样,仅为共享内部访问专门特性化的同一个程序集或其他程序集可以引用生成的类,因此还可以引用内部类型。The generated class exists in a security and access context such that only the same assembly or other assemblies specifically attributed for shared internal access can reference the generated class and thus the internal types.

构造函数

InternalTypeHelper()

初始化 InternalTypeHelper 类的新实例。Initializes a new instance of the InternalTypeHelper class.

方法

AddEventHandler(EventInfo, Object, Delegate)

在派生(生成)类中重写时,会将事件处理程序委托附加到内部事件。When overridden in a derived (generated) class, attaches an event handler delegate to an internal event.

CreateDelegate(Type, Object, String)

在派生(生成)类中重写时,会创建一个引用非公共处理程序方法的事件委托。When overridden in a derived (generated) class, creates an event delegate referencing a non-public handler method.

CreateInstance(Type, CultureInfo)

在派生(生成)类中重写时,创建内部类型的实例。When overridden in a derived (generated) class, creates an instance of an internal type.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetPropertyValue(PropertyInfo, Object, CultureInfo)

在派生(生成)类中重写时,获取目标对象的内部属性值。When overridden in a derived (generated) class, gets the value of an internal property on the target object.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
SetPropertyValue(PropertyInfo, Object, Object, CultureInfo)

在派生(生成)类中重写时,设置目标对象的内部属性的值。When overridden in a derived (generated) class, sets the value on an internal property on the target object.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅