... | @@ -50,7 +50,6 @@ class FileState |
... | @@ -50,7 +50,6 @@ class FileState |
|
//닷넷 4.5 BCL에 추가된 Async method
|
|
//닷넷 4.5 BCL에 추가된 Async method
|
|
await fs.ReadAsync(buf, 0, buf.Length);
|
|
await fs.ReadAsync(buf, 0, buf.Length);
|
|
|
|
|
|
//need not await code!
|
|
|
|
string txt = Encoding.UTF8.GetString(buf);
|
|
string txt = Encoding.UTF8.GetString(buf);
|
|
Console.WriteLine(txt);
|
|
Console.WriteLine(txt);
|
|
}
|
|
}
|
... | | ... | |