Unsafe.BitCast<TFrom,TTo>(TFrom) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
TFrom型の指定された値をTTo型の値として再解釈します。
public:
generic <typename TFrom, typename TTo>
static TTo BitCast(TFrom source);
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 : allows ref struct where TTo : allows ref struct;
public static TTo BitCast<TFrom,TTo>(TFrom source) where TFrom : struct where TTo : struct;
static member BitCast : 'From -> 'o
static member BitCast : 'From -> 'o (requires 'From : struct and 'o : struct)
Public Shared Function BitCast(Of TFrom, TTo) (source As TFrom) As TTo
Public Shared Function BitCast(Of TFrom As Structure, TTo As Structure) (source As TFrom) As TTo
型パラメーター
- TFrom
- TTo
パラメーター
- source
- TFrom
返品
TTo
TTo 型の値。
例外
TFromとTToのサイズは同じではありません。