# < Summary

Information

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

Line coverage
100%

Covered lines: | 7
Uncovered lines: | 0
Coverable lines: | 7
Total lines: | 38
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
--- | --- | --- | ---
get_Name() | 100% | 1 | 100%
get_Number() | 100% | 1 | 100%
.ctor(...) | 100% | 1 | 100%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\MessageAttribute.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | ``
|  | `3` |  | `namespace Renci.SshNet.Messages`
|  | `4` |  | `{`
|  | `5` |  | `/// <summary>`
|  | `6` |  | `/// Indicates that a class represents SSH message. This class cannot be inherited.`
|  | `7` |  | `/// </summary>`
|  | `8` |  | `[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]`
|  | `9` |  | `public sealed class MessageAttribute : Attribute`
|  | `10` |  | `{`
|  | `11` |  | `/// <summary>`
|  | `12` |  | `/// Gets the message name as defined in RFC 4250.`
|  | `13` |  | `/// </summary>`
|  | `14` |  | `/// <value>`
|  | `15` |  | `/// The name.`
|  | `16` |  | `/// </value>`
| 106374 | `17` |  | `public string Name { get; }`
|  | `18` |  | ``
|  | `19` |  | `/// <summary>`
|  | `20` |  | `/// Gets the message number as defined in RFC 4250.`
|  | `21` |  | `/// </summary>`
|  | `22` |  | `/// <value>`
|  | `23` |  | `/// The number.`
|  | `24` |  | `/// </value>`
| 56944 | `25` |  | `public byte Number { get; }`
|  | `26` |  | ``
|  | `27` |  | `/// <summary>`
|  | `28` |  | `/// Initializes a new instance of the <see cref="MessageAttribute"/> class.`
|  | `29` |  | `/// </summary>`
|  | `30` |  | `/// <param name="name">The name.</param>`
|  | `31` |  | `/// <param name="number">The number.</param>`
| 163318 | `32` |  | `public MessageAttribute(string name, byte number)`
| 163318 | `33` |  | `{`
| 163318 | `34` |  | `Name = name;`
| 163318 | `35` |  | `Number = number;`
| 163318 | `36` |  | `}`
|  | `37` |  | `}`
|  | `38` |  | `}`

# Methods/Properties

get_Name()
get_Number()
.ctor(System.String,System.Byte)