public static Func <MBeanAttributeInfo> TypedAs(this IAttributeBuilder builder, OpenType openType) { ((IBuilder)builder).Descriptor.SetField(OpenTypeDescriptor.Field, openType); return(builder.TypedAs(openType.Representation)); }
public static Func <MBeanAttributeInfo> TypedAs <T>(this IAttributeBuilder builder) { return(builder.TypedAs(typeof(T))); }