Share via


Unsafe.BitCast<TFrom,TTo>(TFrom) メソッド

定義

型の指定された値を 型 TFrom の値として再解釈します TTo

public:
generic <typename TFrom, typename TTo>
 where TFrom : value class where TTo : value class static TTo BitCast(TFrom source);
public static TTo BitCast<TFrom,TTo> (TFrom source) where TFrom : struct where TTo : struct;
static member BitCast : 'From -> 'o (requires 'From : struct and 'o : struct)
Public Shared Function BitCast(Of TFrom As Structure, TTo As Structure) (source As TFrom) As TTo

型パラメーター

TFrom
TTo

パラメーター

source
TFrom

戻り値

TTo

TTo 型の値。

例外

TToTFromサイズは同じではありません。

適用対象