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)

設定現有 box 物件的 boxed 值。Sets the boxed value of an existing box object.

ByteToBoolean(Byte)

傳回具有指定之位元組的位元模式 bool。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.

適用於