/// <summary> /// Adds an option to the index predefinition /// </summary> /// <param name="myOptionKey">The name of the option</param> /// <param name="myOptionValue">The value of the option</param> /// <returns>The updated IndexPredefinition</returns> public IndexPredefinition AddOption(String myOptionKey, Object myOptionValue) { if (IndexOptions == null) { IndexOptions = new Dictionary <string, object>(); } if (IndexOptions.ContainsKey(myOptionKey)) { IndexOptions[myOptionKey] = myOptionValue; } else { IndexOptions.Add(myOptionKey, myOptionValue); } return(this); }