public bool Contains(AttributeMetadata metadata) { if (metadata != null) { int num = 0; while (num < base.InnerList.Count) { AttributeMetadata item = (AttributeMetadata)base.InnerList[num]; string name = item.Name; if (Utils.Compare(name, metadata.Name) != 0) { num++; } else { return true; } } return false; } else { throw new ArgumentNullException("metadata"); } }
private void Add(string name, AttributeMetadata value) { Dictionary.Add(name.ToLower(CultureInfo.InvariantCulture), value); _dataNameCollection.Add(name); _dataValueCollection.Add(value); }
public int IndexOf(AttributeMetadata metadata) { Contract.Requires(metadata != null); Contract.Ensures(Contract.Result<int>() >= -1); Contract.Ensures(Contract.Result<int>() < this.Count); return default(int); }
public bool Contains(AttributeMetadata metadata) { if (metadata == null) { throw new ArgumentNullException("metadata"); } for (int i = 0; i < base.InnerList.Count; i++) { AttributeMetadata metadata2 = (AttributeMetadata) base.InnerList[i]; if (Utils.Compare(metadata2.Name, metadata.Name) == 0) { return true; } } return false; }
public int IndexOf(AttributeMetadata metadata) { if (metadata == null) throw new ArgumentNullException("metadata"); for (int i = 0; i < InnerList.Count; i++) { AttributeMetadata tmp = (AttributeMetadata)InnerList[i]; if (Utils.Compare(tmp.Name, metadata.Name) == 0) { return i; } } return -1; }
public bool Contains(AttributeMetadata metadata) { if (metadata == null) throw new ArgumentNullException("metadata"); for (int i = 0; i < InnerList.Count; i++) { AttributeMetadata tmp = (AttributeMetadata)InnerList[i]; string name = tmp.Name; if (Utils.Compare(name, metadata.Name) == 0) { return true; } } return false; }
internal void AddHelper(int count, IntPtr info, bool advanced) { IntPtr intPtr; for (int i = 0; i < count; i++) { if (!advanced) { intPtr = (IntPtr)((long)info + (long)(Marshal.SizeOf(typeof(int)) * 2) + (long)(i * Marshal.SizeOf(typeof(DS_REPL_ATTR_META_DATA)))); AttributeMetadata attributeMetadatum = new AttributeMetadata(intPtr, false, this.server, this.nameTable); this.Add(attributeMetadatum.Name, attributeMetadatum); } else { intPtr = (IntPtr)((long)info + (long)(Marshal.SizeOf(typeof(int)) * 2) + (long)(i * Marshal.SizeOf(typeof(DS_REPL_ATTR_META_DATA_2)))); AttributeMetadata attributeMetadatum1 = new AttributeMetadata(intPtr, true, this.server, this.nameTable); this.Add(attributeMetadatum1.Name, attributeMetadatum1); } } }
internal void AddHelper(int count, IntPtr info, bool advanced) { IntPtr zero = IntPtr.Zero; for (int i = 0; i < count; i++) { if (advanced) { zero = (IntPtr) ((((long) info) + (Marshal.SizeOf(typeof(int)) * 2)) + (i * Marshal.SizeOf(typeof(DS_REPL_ATTR_META_DATA_2)))); AttributeMetadata metadata = new AttributeMetadata(zero, true, this.server, this.nameTable); this.Add(metadata.Name, metadata); } else { zero = (IntPtr) ((((long) info) + (Marshal.SizeOf(typeof(int)) * 2)) + (i * Marshal.SizeOf(typeof(DS_REPL_ATTR_META_DATA)))); AttributeMetadata metadata2 = new AttributeMetadata(zero, false, this.server, this.nameTable); this.Add(metadata2.Name, metadata2); } } }
public int IndexOf(AttributeMetadata metadata) { if (metadata != null) { int num = 0; while (num < base.InnerList.Count) { AttributeMetadata item = (AttributeMetadata)base.InnerList[num]; if (Utils.Compare(item.Name, metadata.Name) != 0) { num++; } else { return num; } } return -1; } else { throw new ArgumentNullException("metadata"); } }
public int IndexOf(AttributeMetadata metadata) { throw new NotImplementedException(); }
public void CopyTo(AttributeMetadata[] metadata, int index) { Contract.Requires(metadata != null); Contract.Requires(index >= 0); }
public int IndexOf (AttributeMetadata metadata) { throw new NotImplementedException (); }
internal int Add(AttributeMetadata metadata) { return InnerList.Add(metadata); }
internal void AddHelper(int count, IntPtr info, bool advanced) { IntPtr addr = (IntPtr)0; for (int i = 0; i < count; i++) { if (advanced) { addr = IntPtr.Add(info, Marshal.SizeOf(typeof(int)) * 2 + i * Marshal.SizeOf(typeof(DS_REPL_ATTR_META_DATA_2))); AttributeMetadata managedMetaData = new AttributeMetadata(addr, true, _server, _nameTable); Add(managedMetaData.Name, managedMetaData); } else { addr = IntPtr.Add(info, Marshal.SizeOf(typeof(int)) * 2 + i * Marshal.SizeOf(typeof(DS_REPL_ATTR_META_DATA))); AttributeMetadata managedMetaData = new AttributeMetadata(addr, false, _server, _nameTable); Add(managedMetaData.Name, managedMetaData); } } }
/// <include file='doc\ResultPropertyCollection.uex' path='docs/doc[@for="ResultPropertyCollection.CopyTo"]/*' /> /// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public void CopyTo(AttributeMetadata[] array, int index) { Dictionary.Values.CopyTo((Array)array, index); }
public void CopyTo(AttributeMetadata[] array, int index) { base.Dictionary.Values.CopyTo(array, index); }
private void Add(string name, AttributeMetadata value) { base.Dictionary.Add(name.ToLower(CultureInfo.InvariantCulture), value); this.dataNameCollection.Add(name); this.dataValueCollection.Add(value); }
internal int Add(AttributeMetadata metadata) => InnerList.Add(metadata);
public void CopyTo(AttributeMetadata[] metadata, int index) { InnerList.CopyTo(metadata, index); }
public void CopyTo(AttributeMetadata[] array, int index) { Contract.Requires(array != null); Contract.Requires(index >= 0); Contract.Requires(index < array.Length); }
public bool Contains (AttributeMetadata metadata) { throw new NotImplementedException (); }
public bool Contains(AttributeMetadata metadata) { throw new NotImplementedException(); }
public void CopyTo (AttributeMetadata[] metadata, int index) { throw new NotImplementedException (); }
public bool Contains(AttributeMetadata metadata) { Contract.Requires(metadata != null); return default(bool); }