/// <summary> /// Search the plug-in's dictionary for the specified plug-in and if it is /// not found then add it to the dictionary. /// </summary> /// <param name="plugIn"></param> /// <returns></returns> internal static RdkPlugIn GetRdkPlugIn(PlugIns.PlugIn plugIn) { var found = FromRhinoPlugIn(plugIn); if (null != found) return found; var plugin_pointer = plugIn.NonConstPointer(); return AddPlugInToDictionary(plugin_pointer, plugIn.Id, plugIn.m_runtime_serial_number); }