/// <summary>
 /// Checks if the shared-reference is valid i.e. its reference count is
 /// greater than zero.
 /// </summary>
 /// <returns>true if the shared reference is valid.</returns>
 public static bool IsValid(SharedReference <T> reference)
 {
     return(reference != null && reference.Valid);
 }