PexSafeHelpers 类

定义

静态 Helper 类,允许以安全的方式操纵值,这可能无法在 C# 中表现出来。Static helper class which allows to manipulate values in a safe fashion which might not be expressible in C#.

public ref class PexSafeHelpers abstract sealed
public static class PexSafeHelpers
type PexSafeHelpers = class
Public Class PexSafeHelpers
继承
PexSafeHelpers

方法

AssignBoxedValue<T>(Object, T)

设置现有框对象的装箱的值。Sets the boxed value of an existing box object.

ByteToBoolean(Byte)

返回一个具有给定字节的位模式的布尔值。Returns a bool which has the bit-pattern of the given byte.

IsInst<T>(Object)

尝试转换一个值,如果转换失败,则返回 null。Attempts to cast a value, returning null if cast fails.

适用于