/// <summary> /// Adds a supported data object to this collection. /// </summary> /// <param name="supportedDataObject">The supported data object to add.</param> /// <returns><c>true</c> if the supported data object was successfully added; <c>false</c> otherwise.</returns> public bool AddSupportedDataObject(EtpSupportedDataObject supportedDataObject) { if (!supportedDataObject.QualifiedType.IsValid || supportedDataObject.QualifiedType.IsBaseType) { return(false); } AllDataObjects.Add(supportedDataObject); if (supportedDataObject.QualifiedType.IsWildcard) { SupportedDataObjectsByFamily[supportedDataObject.Key] = supportedDataObject; } else { SupportedDataObjectsByType[supportedDataObject.Key] = supportedDataObject; } return(true); }
public IEnumerator <ISessionSupportedDataObject> GetEnumerator() { return(AllDataObjects.GetEnumerator()); }