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:

imagemagic add text to image

rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...