Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 113 lines (96 sloc) 3.27 KB
////////////////////////////////////////////////////////////////
#region Header
//
// Copyright (c) 2007-2008 MetaGeek, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion Header
////////////////////////////////////////////////////////////////
using System.Text;
namespace MetaGeek.IoctlNdis
{
/// <summary>
/// This class is a simple data class that holds registry
/// information about a network adapter.
/// </summary>
public class AdapterInformation
{
#region Fields
private string _itsDescription;
private string _itsServiceName;
private string _itsTitle;
#endregion Fields
#region Properties
/*
/// <summary>
/// Gets or sets the description for the network adapter.
/// </summary>
public string Description {
get { return _description; }
set { _description = value; }
}
*/
/*
/// <summary>
/// Gets or sets the title information for the network adapter.
/// </summary>
public string Title {
get { return _title; }
set { _title = value; }
}
*/
/// <summary>
/// Gets or sets the service name for the network adapter.
/// </summary>
public string ItsServiceName
{
get { return _itsServiceName; }
}
#endregion Properties
#region Constructors
/// <summary>
/// Default constructor
/// </summary>
public AdapterInformation()
{
}
/// <summary>
/// Creates a new instance.
/// </summary>
/// <param name="description">network adapter description</param>
/// <param name="title">network adapter title</param>
/// <param name="serviceName">service name of the network adapter</param>
public AdapterInformation(string description, string title, string serviceName)
{
_itsDescription = description;
_itsTitle = title;
_itsServiceName = serviceName;
}
#endregion Constructors
#region Public Methods
/// <summary>
/// Returns the string representation of the class.
/// </summary>
/// <returns>a string</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("Description: " + _itsDescription + "\n");
sb.Append("Service Name: " + _itsServiceName + "\n");
sb.Append("Title: " + _itsTitle + "\n");
return ( sb.ToString());
}
#endregion Public Methods
}
}