private static void BuildClass(ServiceClassBuilder builder, Type type)
        {
            //
            // Build...
            //

            IServiceClassReflector reflector = (IServiceClassReflector)FindCustomAttribute(type, typeof(IServiceClassReflector), true);

            if (reflector == null)
            {
                reflector = new JsonRpcServiceAttribute();
                TrySetAttachment(reflector, type);
            }

            reflector.Build(builder);

            //
            // Fault in the type name if still without name.
            //

            if (builder.Name.Length == 0)
            {
                builder.Name = type.Name;
            }

            //
            // Modify...
            //

            object[] modifiers = GetCustomAttributes(type, typeof(IServiceClassModifier), true);
            foreach (IServiceClassModifier modifier in modifiers)
            {
                modifier.Modify(builder);
            }
        }
        private static void BuildClass(ServiceClassBuilder builder, Type type)
        {
            //
            // Build...
            //

            IServiceClassReflector reflector = (IServiceClassReflector) FindCustomAttribute(type, typeof(IServiceClassReflector), true);

            if (reflector == null)
            {
                reflector = new JsonRpcServiceAttribute();
                TrySetAttachment(reflector, type);
            }

            reflector.Build(builder);

            //
            // Fault in the type name if still without name.
            //

            if (builder.Name.Length == 0)
                builder.Name = type.Name;

            //
            // Modify...
            //

            object[] modifiers = GetCustomAttributes(type, typeof(IServiceClassModifier), true);
            foreach (IServiceClassModifier modifier in modifiers)
                modifier.Modify(builder);
        }