Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int? myIntValue =
- dataReader.IsDBNull("ColumnName") ? null :
- dataReader.GetInt32("ColumnName");
- int? myIntValue;
- if(dataReader.IsDBNull("ColumnName"))
- {
- myIntValue = null;
- }
- else
- {
- myIntValue = dataReader.GetInt32("ColumnName");
- }
- int? myIntValue =
- dataReader.IsDBNull("ColumnName") ? (int?)null :
- (int?)dataReader.GetInt32("ColumnName");
- Copy | Link | Move | Scroll
- Copy | Move | Scroll
- var adEntry = new DirectoryEntry("LDAP://...");
- adEntry.DoSomething(); // Throws meaningless COMException! Sometimes a different one!
- adEntry = new DirectoryEntry("ldap://...");
- adEntry.DoSomething(); // Works.
- DateTime someDateTime = new DateTime(2008, 1, 1);
- for i = 1 to nGrids
- grids[i] = new Grid(templateGrid) // assuming copy constructor semantics
- delete templateGrid
- for i = 1 to nGrids
- grids[i] = templateGrid.Clone()
- delete templateGrid
Add Comment
Please, Sign In to add comment