SilverScreen Solid Modeler

IsNull method

IsNull method

Previous topic Next topic  

IsNull method

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

static bool IsNull(SS_COEF coef)

 

SS_COEF coef;   // A SilverSharp.SS_COEF reference

 

 

 




Synopsis

using SilverSharp;

 

The IsNull method tests whether the reference to a SilverSharp.SS_COEF is a null reference

 

 

Parameters

coef is a reference to a SilverSharp.SS_COEF object

 

 

Return Value

IsNull returns true if coef is a null reference, and false otherwise.

 

 

See Also

SS_COEF

 

 

Example

The following code uses IsNull to test the validity of a SilverSharp.SS_COEF reference:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 SS_COEF coef1 = null; // NOTE: coef1 is a null reference

 SS_COEF coef2 = new SS_COEF(0.0, 1.0, 0.0, 0.0);

 

 if ( SS_COEF.IsNull(coef1) )

    error_message("coef1 is a null reference");

 

 if ( SS_COEF.IsNull(coef2) )

    error_message("coef2 is a null reference");