02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Basics<br />

IsAllNegative – This method returns true if all properties are negative.<br />

Index3 idx3 = new Index3(3, -5, -7);<br />

bool af = idx3.IsAllNegative();<br />

// result for af is false<br />

Index3 idx3 = new Index3(-3, -5, -7);<br />

bool af = idx3.IsAllNegative();<br />

// result for af is true<br />

IsAllPositive – This method returns true if all properties are positive.<br />

Index3 idx3 = new Index3(3, -5, -7);<br />

bool af = idx3.IsAllPositive();<br />

// result for af is false<br />

Index3 idx3 = new Index3(3, 5, 7);<br />

bool af = idx3.IsAllPositive();<br />

// result for af is true<br />

IsAllNonNegative – This method returns true if all properties are not negative.<br />

Index3 idx3 = new Index3(3, -5, -7);<br />

bool af = idx3.IsAllNonNegative();<br />

// result for af is false<br />

Index3 idx3 = new Index3(3, 5, 7);<br />

bool af = idx3.IsAllNonNegative();<br />

// result for af is true<br />

IsAllNonPositive – This method returns true if all properties are not positive.<br />

Index3 idx3 = new Index3(3, -5, -7);<br />

bool af = idx3.IsAllNonPositive();<br />

// result for af is false<br />

Index3 idx3 = new Index3(-3, -5, -7);<br />

bool af = idx3.IsAllNonPositive();<br />

// result for af is true<br />

<strong>Schlumberger</strong> Private<br />

<strong>Ocean</strong> Services 4-89

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!