[HideModuleNameAttribute]
public sealed class StreamExtensions
<ExtensionAttribute>
<HideModuleNameAttribute>
Public NotInheritable Class StreamExtensions
Dim instance As StreamExtensions
[ExtensionAttribute]
[HideModuleNameAttribute]
public ref class StreamExtensions sealed
[<SealedAttribute>]
[<ExtensionAttribute>]
[<HideModuleNameAttribute>]
type StreamExtensions = class end
No code example is currently available or this language may not be supported.
CopyTo | Reads the specified amount of bytes from the source Stream and writes them to another Stream. |
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Equals(Stream, Stream) | Determine whether two Stream are equal by doing a byte-by-byte comparison. |
EqualsAsync | Asynchronously determine whether two Stream are equal by doing a byte-by-byte comparison. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
IndexOf(Stream, Byte, Int64) | Searches for the specified byte pattern within the source Stream, and returns the zero-based index of the first occurrence. |
IndexOf(Stream, Byte, Int64, Int64) | Searches for the specified byte pattern within the source Stream, and returns the zero-based index of the first occurrence. |
ReadToEnd(Stream) | Reads all characters from the current position to the end of the Stream. |
ReadToEnd(Stream, Int64) | Reads all characters from the current position to the end of the Stream. |
ReadToEnd(Stream, Encoding) | Reads all characters from the current position to the end of the Stream. |
ReadToEnd(Stream, Encoding, Int64) | Reads all characters from the specified position to the end of the Stream. |
ReadUntilFirstNullByte(Stream) | Reads the bytes of the specified Stream until the first null (zero) byte is found, or until the end, in case of a null byte is not found. |
ReadUntilFirstNullByte(Stream, Int64) | Reads the bytes of the specified Stream until the first null (zero) byte is found, or until the end, in case of a null byte is not found. |
ReadUntilFirstNullByte(Stream, Encoding) | Reads the bytes of the specified Stream until the first null (zero) byte is found, or until the end, in case of a null byte is not found; and then converts the bytes read to a string representation using the specified text encoding. |
ReadUntilFirstNullByte(Stream, Int64, Int64) | Reads the bytes of the specified Stream until the first null (zero) byte is found, or until the end, in case of a null byte is not found. |
ReadUntilFirstNullByte(Stream, Int64, Encoding) | Reads the bytes of the specified Stream until the first null (zero) byte is found, or until the end, in case of a null byte is not found; and then converts the bytes read to a string representation using the specified text encoding. |
ReadUntilFirstNullByte(Stream, Int64, Int64, Encoding) | Reads the bytes of the specified Stream until the first null (zero) byte is found, or until the end, in case of a null byte is not found; and then converts the bytes read to a string representation using the specified text encoding. |
SeekToBegin | Sets the position to the beginning of the source stream. |
SeekToEnd | Sets the position to the end of the source stream. |
ToArray | Writes the Stream content to a Byte array. |
ToMemoryStream | Converts a Stream to a MemoryStream. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |