.Net Sample Code