libsbmlcs.XMLTriple.clone C# (CSharp) Method

clone() public method

public clone ( ) : XMLTriple
return XMLTriple
        public XMLTriple clone()
        {
            IntPtr cPtr = libsbmlPINVOKE.XMLTriple_clone(swigCPtr);
            XMLTriple ret = (cPtr == IntPtr.Zero) ? null : new XMLTriple(cPtr, true);
            return ret;
        }

Usage Example

 public void test_Triple_clone()
 {
     XMLTriple t = new XMLTriple("sarah", "http://foo.org/", "bar");
       assertTrue( t.getName() ==  "sarah" );
       assertTrue( t.getURI() ==  "http://foo.org/" );
       assertTrue( t.getPrefix() ==  "bar" );
       XMLTriple t2 = (XMLTriple) t.clone();
       assertTrue( t2.getName() ==  "sarah" );
       assertTrue( t2.getURI() ==  "http://foo.org/" );
       assertTrue( t2.getPrefix() ==  "bar" );
       t = null;
       t2 = null;
 }