# < Summary

Information

Class: | Renci.SshNet.Abstractions.ReflectionAbstraction
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Abstractions\ReflectionAbstraction.cs

Line coverage
100%

Covered lines: | 4
Uncovered lines: | 0
Coverable lines: | 4
Total lines: | 16
Line coverage: | 100%

Branch coverage
N/A

Covered branches: | 0
Total branches: | 0
Branch coverage: | N/A

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
GetCustomAttributes(...) | 100% | 1 | 100%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Abstractions\ReflectionAbstraction.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | `using System.Collections.Generic;`
|  | `3` |  | `using System.Linq;`
|  | `4` |  | ``
|  | `5` |  | `namespace Renci.SshNet.Abstractions`
|  | `6` |  | `{`
|  | `7` |  | `internal static class ReflectionAbstraction`
|  | `8` |  | `{`
|  | `9` |  | `public static IEnumerable<T> GetCustomAttributes<T>(this Type type, bool inherit)`
|  | `10` |  | `where T : Attribute`
| 163318 | `11` |  | `{`
| 163318 | `12` |  | `var attributes = type.GetCustomAttributes(typeof(T), inherit);`
| 163318 | `13` |  | `return attributes.Cast<T>();`
| 163318 | `14` |  | `}`
|  | `15` |  | `}`
|  | `16` |  | `}`

# Methods/Properties

GetCustomAttributes(System.Type,System.Boolean)