Gorgon
Show / Hide Table of Contents

Class GorgonFileExtensionCollection

A collection of file extensions.

Inheritance
object
GorgonBaseNamedObjectDictionary<GorgonFileExtension>
GorgonFileExtensionCollection
Implements
IGorgonNamedObjectDictionary<GorgonFileExtension>
ICollection<GorgonFileExtension>
IGorgonNamedObjectReadOnlyDictionary<GorgonFileExtension>
IReadOnlyCollection<GorgonFileExtension>
IEnumerable<GorgonFileExtension>
IEnumerable
Inherited Members
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.Items
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.KeysAreCaseSensitive
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.AddItems(IEnumerable<GorgonFileExtension>)
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.UpdateItem(string, GorgonFileExtension)
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.RemoveItem(GorgonFileExtension)
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.Contains(string)
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.Contains(GorgonFileExtension)
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.TryGetValue(string, out GorgonFileExtension)
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.GetEnumerator()
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.Count
GorgonBaseNamedObjectDictionary<GorgonFileExtension>.CopyTo(GorgonFileExtension[], int)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.IO
Assembly: Gorgon.Core.dll
Syntax
public class GorgonFileExtensionCollection : GorgonBaseNamedObjectDictionary<GorgonFileExtension>, IGorgonNamedObjectDictionary<GorgonFileExtension>, ICollection<GorgonFileExtension>, IGorgonNamedObjectReadOnlyDictionary<GorgonFileExtension>, IReadOnlyCollection<GorgonFileExtension>, IEnumerable<GorgonFileExtension>, IEnumerable

Constructors

| Edit this page View Source

GorgonFileExtensionCollection()

Initializes a new instance of the GorgonFileExtensionCollection class.

Declaration
public GorgonFileExtensionCollection()

Properties

| Edit this page View Source

this[string]

Property to set or return an extension in the collection.

Declaration
public GorgonFileExtension this[string extension] { get; set; }
Parameters
Type Name Description
string extension
Property Value
Type Description
GorgonFileExtension

Methods

| Edit this page View Source

Add(GorgonFileExtension)

Function to add a file extension to the collection.

Declaration
public void Add(GorgonFileExtension extension)
Parameters
Type Name Description
GorgonFileExtension extension

Extension to add to the collection.

| Edit this page View Source

Clear()

Function to clear all items from the collection.

Declaration
public void Clear()
| Edit this page View Source

Remove(GorgonFileExtension)

Function to remove a file extension from the collection.

Declaration
public void Remove(GorgonFileExtension extension)
Parameters
Type Name Description
GorgonFileExtension extension

The file extension to remove from the collection.

Exceptions
Type Condition
KeyNotFoundException

Thrown when the extension could not be found in the collection.

| Edit this page View Source

Remove(string)

Function to remove a file extension from the collection.

Declaration
public void Remove(string extension)
Parameters
Type Name Description
string extension

The file extension to remove from the collection.

Exceptions
Type Condition
ArgumentNullException

Thrown when the extension parameter is null.

KeyNotFoundException

Thrown when the extension could not be found in the collection.

Implements

IGorgonNamedObjectDictionary<T>
ICollection<T>
IGorgonNamedObjectReadOnlyDictionary<T>
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonTreeLinqExtensions.TraverseDepthFirst<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
GorgonTreeLinqExtensions.Traverse<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author