Click or drag to resize

VirtualFileBaseCollection Class

A strongly typed KeyedCollection<TKey, TItem> where each element is a VirtualFileBase and is keyed off of the VirtualPath property.
Inheritance Hierarchy

Namespace: GSF.Web.Hosting
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.244-beta
Syntax
public class VirtualFileBaseCollection : KeyedCollection<string, VirtualFileBase>
View Source

The VirtualFileBaseCollection type exposes the following members.

Constructors
 NameDescription
Public methodVirtualFileBaseCollection() Initializes a new instance of the VirtualFileBaseCollection class that uses a case-insensitive comparer.
Public methodVirtualFileBaseCollection(IEqualityComparer<String>) Initializes a new instance of the VirtualFileBaseCollection class that uses the specified equality comparer.
Public methodVirtualFileBaseCollection(IEqualityComparer<String>, Int32) Initializes a new instance of the VirtualFileBaseCollection class that uses the specified equality comparer.
Top
Properties
 NameDescription
Public propertyComparerGets the generic equality comparer that is used to determine equality of keys in the collection.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Public propertyCountGets the number of elements actually contained in the Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Protected propertyDictionaryGets the lookup dictionary of the KeyedCollection<TKey, TItem>.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Public propertyItem[Int32]Gets or sets the element at the specified index.
(Inherited from Collection<VirtualFileBase>)
Public propertyItem[TKey]Gets the element with the specified key.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Protected propertyItemsGets a IList<T> wrapper around the Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Top
Methods
 NameDescription
Public methodAddAdds an object to the end of the Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Protected methodChangeItemKeyChanges the key associated with the specified element in the lookup dictionary.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Public methodClearRemoves all elements from the Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Protected methodClearItemsRemoves all elements from the KeyedCollection<TKey, TItem>.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Public methodContains(TKey)Determines whether the collection contains an element with the specified key.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Public methodContains(T)Determines whether an element is in the Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Public methodCopyToCopies the entire Collection<T> to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from Collection<VirtualFileBase>)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumeratorReturns an enumerator that iterates through the Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetKeyForItem Extracts the key from the specified element.
(Overrides KeyedCollection<TKey, TItem>.GetKeyForItem(TItem))
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Public methodInsertInserts an element into the Collection<T> at the specified index.
(Inherited from Collection<VirtualFileBase>)
Protected methodInsertItemInserts an element into the KeyedCollection<TKey, TItem> at the specified index.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemove(TKey)Removes the element with the specified key from the KeyedCollection<TKey, TItem>.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Public methodRemove(T)Removes the first occurrence of a specific object from the Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Public methodRemoveAtRemoves the element at the specified index of the Collection<T>.
(Inherited from Collection<VirtualFileBase>)
Protected methodRemoveItemRemoves the element at the specified index of the KeyedCollection<TKey, TItem>.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Protected methodSetItemReplaces the item at the specified index with the specified item.
(Inherited from KeyedCollection<String, VirtualFileBase>)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefault<T> Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks

The default constructor for this collection does a culture-invariant case-insensitive comparison on the keys. This allows for proper case-insensitive web-oriented behavior that is generally expected.

See Also