Is there a event that added data to the Stream?

mc 4,111 Reputation points
2023-11-10T06:50:41.8966667+00:00

Is there event that when the stream data added it will triggered?

while(true)

{

offset+=m.Read(buffer,offset,1024);

}

can it be true that not use while when there is enough data it will read the stream and when I read the data the stream to be empty?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,648 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,141 questions
{count} votes