/// <summary> /// Determines whether this StringToObjectToSoodaObjectFactoryAssociation contains a specific value. /// </summary> /// <param name="value"> /// The ObjectToSoodaObjectFactoryAssociation value to locate in this StringToObjectToSoodaObjectFactoryAssociation. /// </param> /// <returns> /// true if this StringToObjectToSoodaObjectFactoryAssociation contains an element with the specified value; /// otherwise, false. /// </returns> public virtual bool ContainsValue(ObjectToSoodaObjectFactoryAssociation value) { foreach (ObjectToSoodaObjectFactoryAssociation item in this.Dictionary.Values) { if (item == value) { return(true); } } return(false); }
private ObjectToSoodaObjectFactoryAssociation GetObjectFactoryDictionaryForClass(string className) { ObjectToSoodaObjectFactoryAssociation dict = _classes[className]; if (dict == null) { lock (this) { dict = _classes[className]; if (dict == null) { dict = new ObjectToSoodaObjectFactoryAssociation(); _classes[className] = dict; } } } return(dict); }
/// <summary> /// Adds an element with the specified key and value to this StringToObjectToSoodaObjectFactoryAssociation. /// </summary> /// <param name="key"> /// The string key of the element to add. /// </param> /// <param name="value"> /// The ObjectToSoodaObjectFactoryAssociation value of the element to add. /// </param> public virtual void Add(string key, ObjectToSoodaObjectFactoryAssociation value) { this.Dictionary.Add(key, value); }
/// <summary> /// Adds an element with the specified key and value to this StringToObjectToSoodaObjectFactoryAssociation. /// </summary> /// <param name="key"> /// The string key of the element to add. /// </param> /// <param name="value"> /// The ObjectToSoodaObjectFactoryAssociation value of the element to add. /// </param> public virtual void Add(string key, ObjectToSoodaObjectFactoryAssociation value) { this.Dictionary.Add(key, value); }
/// <summary> /// Determines whether this StringToObjectToSoodaObjectFactoryAssociation contains a specific value. /// </summary> /// <param name="value"> /// The ObjectToSoodaObjectFactoryAssociation value to locate in this StringToObjectToSoodaObjectFactoryAssociation. /// </param> /// <returns> /// true if this StringToObjectToSoodaObjectFactoryAssociation contains an element with the specified value; /// otherwise, false. /// </returns> public virtual bool ContainsValue(ObjectToSoodaObjectFactoryAssociation value) { foreach (ObjectToSoodaObjectFactoryAssociation item in this.Dictionary.Values) { if (item == value) return true; } return false; }