public ReinterpretArrayFormatter(uint maxCount) { ReinterpretFormatter <T> .ThrowIfNotSupported(); _maxCount = maxCount; _size = Marshal.SizeOf(default(T)); }
public ReinterpretArrayFormatter(uint maxCount) { ReinterpretFormatter <T> .ThrowIfNotSupported(); _maxCount = maxCount; var type = typeof(T); if (type.IsEnum) { type = type.GetEnumUnderlyingType(); } _size = Marshal.SizeOf(type); }
public ReinterpretArrayFormatter(uint maxCount) { ReinterpretFormatter <T> .ThrowIfNotSupported(); _maxCount = maxCount; }