Name

ObjectIDGenerator

Synopsis

This class is used by formatters to identify objects within a serialized stream in order to track object references. The IDs are 64-bit numbers that are generated when an object is referenced or is referencing another. (An ID with a zero value is a null reference.) The GetId() method creates and returns an ID for an object if it does not already have one.

Public Class ObjectIDGenerator
                  ' Public Constructors
   Public Sub New() 
' Public Instance Methods
   Overridable Public Function GetId(ByVal obj As Object, 
        ByRef firstTime As Boolean) As Long  
   Overridable Public Function HasId(ByVal obj As Object, 
        ByRef firstTime As Boolean) As Long  
End Class

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.