Commit 7a7ee933 authored by Brickner_cp's avatar Brickner_cp

706 warnings left.

parent 981b531d
......@@ -9,6 +9,13 @@ namespace PcapDotNet.Base
/// </summary>
public static class StringExtensions
{
/// <summary>
/// Returns whether all of the chars in the given string are in the [minValue, maxValue] range.
/// </summary>
/// <param name="value">The string to test.</param>
/// <param name="minValue">The first char in the chars range.</param>
/// <param name="maxValue">The last char in the chars range.</param>
/// <returns>True iff all of the string's chars are in the given range.</returns>
public static bool AreAllCharactersInRange(this string value, char minValue, char maxValue)
{
return value.All(c => c >= minValue && c <= maxValue);
......
......@@ -19,6 +19,11 @@ namespace PcapDotNet.Base
/// </summary>
public static readonly UInt24 MaxValue = (UInt24)0x00FFFFFF;
/// <summary>
/// Converts a 16 bit unsigned integer to a 24 bit unsigned integer.
/// </summary>
/// <param name="value">The 16 bit value to convert.</param>
/// <returns>The 24 bit value created.</returns>
public static implicit operator UInt24(ushort value)
{
return new UInt24(value);
......
namespace PcapDotNet.Packets.IpV6
{
/// <summary>
/// The type of the IPv6 mobility header.
/// </summary>
public enum IpV6MobilityHeaderType : byte
{
/// <summary>
......@@ -23,7 +26,7 @@ namespace PcapDotNet.Packets.IpV6
HomeTest = 3,
/// <summary>
/// RFC6275
/// RFC 6275
/// </summary>
CareOfTest = 4,
......
namespace PcapDotNet.Packets.IpV6
{
/// <summary>
/// The Binidng Acknowledgement status in an IPv6 Mobility Binding Acknowledgement extension header.
/// </summary>
public enum IpV6BindingAcknowledgementStatus : byte
{
/// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment