I am referring to the source code written in java and it contains InputStream and OutputStream objects throughout, i wonder if there is a way in C# to create user-predifined InputStream and Outpustream Classes ; if not the java InputStream and OutputStream objects will they have the same functionality if i treat them as a simple Stream object?
Share
There is no type-level distinction between in- and out-streams in .NET. Just derive your custom class from
System.IO.Streamand let the overridden propertiesCanReadandCanWritereturn the appropriate values.