---
title: "Class DirectoryInfoExtensionMethods | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ExtensionMethods/DirectoryInfoExtensionMethods/"
---

# Class DirectoryInfoExtensionMethods

> **Inheritance:** `System.Object` -> DirectoryInfoExtensionMethods

###### **Namespace**: [Aurigma.DesignAtoms.ExtensionMethods](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ExtensionMethods.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public static class DirectoryInfoExtensionMethods
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Methods

### GetFilesByExtensions

```csharp
public static IEnumerable<FileInfo> GetFilesByExtensions(this DirectoryInfo dir, params string[] extensions)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.IO.DirectoryInfo` | *dir* |  |
| `System.String[]` | *extensions* |  |

##### Returns

`System.Collections.Generic.IEnumerable<System.IO.FileInfo>`
