AddRef() public method

Adds a reference to the object
This only needs to be called on objects that are not going to be stored somewhere on the stack. Calling AddRef ensures that the JavaScript object the value refers to will not be freed until Release is called.
public AddRef ( ) : uint
return uint
 /// <summary>
 /// Adds a reference to the value
 /// </summary>
 /// <param name="value">The value</param>
 private static void AddReferenceToValue(EdgeJsValue value)
 {
     if (CanHaveReferences(value))
     {
         value.AddRef();
     }
 }