Following gives me what I need, but I need to convert this to C#.
Get-SPUser -web http://Money/sites/mymoney | Select UserLogin > c:\temp\datadump.txt
Get-SPSite -Limit All |
Select -ExpandProperty RootWeb |
Select -ExpandProperty Groups |
Select {$_.ParentWeb.Url}, Name > c:\temp\group.txt
Please help
Thanks