Useful hints regarding coding in CSharp/.net: Difference between revisions
Jump to navigation
Jump to search
(→arrays) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== language == | == language == | ||
=== arrays === | === arrays === | ||
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
- see also http://www.csharp-examples.net/dataview-rowfilter/
- dd/MM/yyyy did not work on Mono on Mac
- example: U:\openpetraorg\csharp\ICT\Petra\Shared\lib\MPartner\Calculations.cs
return new DataView(ATable, "((" + PPartnerLocationTable.GetDateEffectiveDBName() + " <= #" + DateTime.Now.Date.ToString( "yyyy-MM-dd") + "# OR " + PPartnerLocationTable.GetDateEffectiveDBName() + " IS NULL) AND (" +