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 동일하지 않습니다.