/// <summary> /// Tests whether a unit currently exists in the Workspace. /// </summary> /// <param name="unitname">The name of the unit</param> /// <returns> /// True if the unit exists in the Workspace, otherwise false. /// </returns> public bool Exists(string unitname) { // Testing the existance of a unit is fine at any time - )) return m_workspace.Exists(IOSpec.Input[unitname].MappedTo); }
/// <summary> /// Tests whether a unit with added current namespace currently exists in the Workspace. /// </summary> /// <param name="unitname">The name of the unit</param> /// <returns> /// True if the unit exists in the Workspace, otherwise false. /// </returns> public bool Exists(string unitname) { // Testing the existance of a unit is fine at any time - )) return(m_parentWorkspace.Exists(GetFullNamespacePath(unitname))); }