Код: Выделить всё
public class MyService1 {
public System.IO.MemoryStream DataStream = new();
}
Код: Выделить всё
public class MyService2
{
public System.IO.MemoryStream DataStream { get; } = new();
}
Код: Выделить всё
public class MyService1 {
public System.IO.MemoryStream DataStream = new();
}
Код: Выделить всё
public class MyService2
{
public System.IO.MemoryStream DataStream { get; } = new();
}