Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            MBeanOperationInfo other = obj as MBeanOperationInfo;

            return(other != null &&
                   Name.Equals(other.Name) &&
                   Description.Equals(other.Description) &&
                   Descriptor.Equals(other.Descriptor) &&
                   ReturnType.Equals(other.ReturnType) &&
                   Impact.Equals(other.Impact) &&
                   Signature.SequenceEqual(other.Signature));
        }
 /// <summary>
 /// Creates new instance of <see cref="OpenMBeanOperationInfoSupport"/> wrapping provided <see cref="MBeanOperationInfo"/>.
 /// </summary>
 /// <param name="wrappedInfo"></param>
 public OpenMBeanOperationInfoSupport(MBeanOperationInfo wrappedInfo)
 {
     _wrappedInfo = wrappedInfo;
      _wrappedParameters = _wrappedInfo.Signature.Select<MBeanParameterInfo, IOpenMBeanParameterInfo>(x => new OpenMBeanParameterInfoSupport(x)).ToList().AsReadOnly();
 }