/// <summary> /// Creates new open MBean info wrapper. /// </summary> /// <param name="wrappedInfo"></param> public OpenMBeanInfoSupport(MBeanInfo wrappedInfo) { _wrappedInfo = wrappedInfo; _wrappedAttributes = _wrappedInfo.Attributes.Select<MBeanAttributeInfo, IOpenMBeanAttributeInfo>(x => new OpenMBeanAttributeInfoSupport(x)).ToList().AsReadOnly(); _wrappedOperations = _wrappedInfo.Operations.Select<MBeanOperationInfo, IOpenMBeanOperationInfo>(x => new OpenMBeanOperationInfoSupport(x)).ToList().AsReadOnly(); _wrappedConstructors = _wrappedInfo.Constructors.Select<MBeanConstructorInfo, IOpenMBeanConstructorInfo>(x => new OpenMBeanConstructorInfoSupport(x)).ToList().AsReadOnly(); }
public override bool Equals(object obj) { MBeanInfo other = obj as MBeanInfo; return(other != null && ClassName.Equals(other.ClassName) && Description.Equals(other.Description) && Descriptor.Equals(other.Descriptor) && Attributes.SequenceEqual(other.Attributes) && Operations.SequenceEqual(other.Operations) && Constructors.SequenceEqual(other.Constructors) && Notifications.SequenceEqual(other.Notifications)); }