В
Size: a a a
В
AS
AS
Ts
G
Ts
Ts
PE
PE
Ts
Ts
C
C
Ts
Ts
G
static void Main(string[] args)
{
Console.WriteLine(new Test().PropSync);
}
public class Test
{
public Task<int> MethodAsync() => Task.FromResult(1);
public int PropSync
{
get
{
return Task.Run(async () => await MethodAsync()).ConfigureAwait(false).GetAwaiter().GetResult();
}
}
}
Е
static void Main(string[] args)
{
Console.WriteLine(new Test().PropSync);
}
public class Test
{
public Task<int> MethodAsync() => Task.FromResult(1);
public int PropSync
{
get
{
return Task.Run(async () => await MethodAsync()).ConfigureAwait(false).GetAwaiter().GetResult();
}
}
}
Ts
static void Main(string[] args)
{
Console.WriteLine(new Test().PropSync);
}
public class Test
{
public Task<int> MethodAsync() => Task.FromResult(1);
public int PropSync
{
get
{
return Task.Run(async () => await MethodAsync()).ConfigureAwait(false).GetAwaiter().GetResult();
}
}
}