Tuesday

c# parse string into enum


public enum enmode
{
fee , scheduledpayment , adjustment , new1 , del , cancel , freeze
}


Propery convering string from Request["mode"] into enum:

public enmode Mode
{
get { return (enmode) Enum.Parse(typeof (enmode), Request["m"].ToLower()); }
}

more...

No comments:

here is powershell script on how to get list of files from changesets associated with one tfs task

$dllPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\...