Index

csharp

write to system output
Console.WriteLine("bla");
write to debug logger
Debug.WriteLine("bla");
Show a simple pop up.
MessageBox.Show("bla");
wait for async mehod without result
MethodAsynch.Wait();
get result from async method
var result = MethodAsynch.Result();
require interface
public void SomeMethod<T>(ref T para1) where T : ITest
format a string
String s = String.Format("The current price is {0} per ounce.", pricePerOunce);

Input / Outut

append line to file
using (StreamWriter writer = File.AppendText("c:/path/to/file.txt"))
{
	writer.WriteLine(line);
}