BinaryWriterExtensions.Write<T> Method
Namespace: Jodosoft.PrimitivesAssembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
public static void Write<T>(
this BinaryWriter writer,
T value
)
where T : struct, new(), IProvider<IBinaryIO<T>>
<ExtensionAttribute>
Public Shared Sub Write(Of T As {Structure, New, IProvider(Of IBinaryIO(Of T))}) (
writer As BinaryWriter,
value As T
)
public:
[ExtensionAttribute]
generic<typename T>
where T : value class, gcnew(), IProvider<IBinaryIO<T>^>
static void Write(
BinaryWriter^ writer,
T value
)
[<ExtensionAttribute>]
static member Write :
writer : BinaryWriter *
value : 'T -> unit when 'T : struct, new() and IProvider<IBinaryIO<'T>>
- writer BinaryWriter
-
- value T
-
- T
In Visual Basic and C#, you can call this method as an instance method on any object of type
BinaryWriter. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).