Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DataTable myDt = new DataTable();
- if (myDt != null && myDt.Rows.Count > 0)
- {
- //do some stuff with myDt
- }
- myDt != null
- myDt.Rows.Count > 0
- if( x isNot Nothing AndAlso x.go()) then
- if ( x.init() And y.init()) then x.process(y)end y.doDance()
- if (amHungry & whiteCastleIsNearby){ // The code will check if White Castle is nearby // even when I am not hungry}if (amHungry && whiteCastleIsNearby){ // The code will only check if White Castle is nearby // when I am hungry}
- puts message unless message.nil?
- unless message.nil? puts messageend
- a = new Log(); // Log class overloads the + operatora + "some string"; // Call the overloaded method - otherwise this wouldn't work because you can't normally add strings to objects.
- a() || b() // be never runs if a is true
- if (a() && b())
- if (a() & b())
- a = Foo( 5, GetSummary( "Orion", GetAddress("Orion") ) );
- a = Foo(5, GetSummary("Orion", GetAddress("Orion")), GetSummary("Chris", GetAddress("Chris")));
- READ 0100 WRITE 0010 EXEC 0001
- flags = READ & EXEC; // value of flags is 0101
- if ( x.init() And y.init()) then
- x.process(y)
- end
- y.doDance()
- Dim x As Formatting = Formatting.Bold Or Formatting.Italic
- If (x And Formatting.Italic) = Formatting.Italic Then
- MsgBox("The text will be set in italic.")
- End If
Add Comment
Please, Sign In to add comment