internal sealed class Registry
{
/// <summary>
- /// Registry is a singleton
+ /// The registry is a singleton.
/// </summary>
private static Registry instance = null;
/// <summary>
- /// Given a C++ object the dictionary allows us to find which C# object it belongs to.
+ /// Given a C++ object, the dictionary allows us to find which C# object it belongs to.
/// By keeping the weak reference only, it will allow the object to be garbage collected.
/// </summary>
private Dictionary<IntPtr, WeakReference> _controlMap;
/// <summary>
- /// Store the mapping between this instance of BaseHandle (C# base class) and native part.
+ /// Stores the mapping between this instance of BaseHandle (C# base class) and native part.
/// </summary>
- /// <param name="baseHandle"> The instance of BaseHandle (C# base class)</param>
+ /// <param name="baseHandle">The instance of BaseHandle (C# base class).</param>
internal static void Register(BaseHandle baseHandle)
{
// We store a pointer to the RefObject for the control
RefObject refObj = baseHandle.GetObjectPtr();
IntPtr refCptr = (IntPtr)RefObject.getCPtr(refObj);
- NUILog.Debug("________Storing ref object cptr in control map Hex: {0:X}" + refCptr);
+ NUILog.Debug("Storing ref object cptr in control map Hex: {0:X}" + refCptr);
if (!Instance._controlMap.ContainsKey(refCptr))
{
}
/// <summary>
- /// Remove the this instance of BaseHandle (C# base class) and native part from the mapping table.
+ /// Removes this instance of BaseHandle (C# base class) and native part from the mapping table.
/// </summary>
/// <param name="baseHandle"> The instance of BaseHandle (C# base class)</param>
internal static void Unregister(BaseHandle baseHandle)