|
#region Using
using System;
using System.Collections.Generic;
using System.Reflection;
using NetMX;
#endregion
namespace NetMX.OpenMBean
{
/// <summary>
/// Describes a constructor of an Open MBean.
/// </summary>
public class OpenMBeanConstructorInfoSupport : MBeanConstructorInfo, IOpenMBeanConstructorInfo
{
/// <summary>
/// Constructs an MBeanConstructorInfo object.
/// </summary>
/// <param name="name">Name of constructor</param>
/// <param name="description">Description of constructor</param>
/// <param name="signature">Parameters for this constructor.</param>
public OpenMBeanConstructorInfoSupport(string name, string description, IEnumerable<IOpenMBeanParameterInfo> signature)
: base(name, description, OpenInfoUtils.Transform<MBeanParameterInfo, IOpenMBeanParameterInfo>(signature), true)
{
}
/// <summary>
/// Constructs an MBeanConstructorInfo object.
/// </summary>
/// <param name="info">Object describing CLR constructor.</param>
public OpenMBeanConstructorInfoSupport(ConstructorInfo info)
: base(info, true)
{
ParameterInfo[] paramInfos = info.GetParameters();
List<MBeanParameterInfo> tmp = new List<MBeanParameterInfo>();
for (int i = 0; i < paramInfos.Length; i++)
{
tmp.Add(new OpenMBeanParameterInfoSupport(paramInfos[i]));
}
_signature = tmp.AsReadOnly();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.