internal void ChangeNamespace(IXmlaProperty property, string newNamespace) { XmlaPropertyKey key = new XmlaPropertyKey(property.Name, newNamespace); int num = this.RemoveKey(key, property); property.Namespace = newNamespace; this.hashStore[property] = num; }
public AdomdRestriction Find(string propertyName, string propertyNamespace) { XmlaPropertyKey key = new XmlaPropertyKey(propertyName, propertyNamespace); int num = this.collectionInternal.IndexOf(key); if (num != -1) { return(this[num]); } return(null); }
private int RemoveKey(XmlaPropertyKey key, IXmlaProperty property) { if (this.hashStore.ContainsKey(key)) { throw new ArgumentException(SR.Property_Already_Exists, "key"); } int result = this.IndexOf(property); this.hashStore.Remove(property); return(result); }