Useful hints regarding coding in CSharp/.net: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
(Created page with '== language == === arrays === todo === enums === todo == System.Data == === DataView: filter by date === * see also http://www.csharp-examples.net/dataview-rowfilter/ * dd/MM/yyy…')
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== language ==
== language ==
=== arrays ===
=== arrays ===
todo
creating array on the fly:
new object[] {element1, element2}
 
=== enums ===
=== enums ===
todo
todo

Latest revision as of 12:14, 15 September 2009

language

arrays

creating array on the fly:

new object[] {element1, element2}

enums

todo

System.Data

DataView: filter by date

           return new DataView(ATable, "((" + PPartnerLocationTable.GetDateEffectiveDBName() + " <= #" + DateTime.Now.Date.ToString(
                   "yyyy-MM-dd") + "# OR " + PPartnerLocationTable.GetDateEffectiveDBName() + " IS NULL) AND (" +