MimeFormatter.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / MimeFormatter.cs / 1305376 / MimeFormatter.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.Services.Protocols { 
    using System.IO; 
    using System;
    using System.Xml.Serialization; 
    using System.Reflection;
    using System.Collections;
    using System.Web.Services;
    using System.Security.Permissions; 

    ///  
    ///  
    ///    [To be supplied.]
    ///  
    public abstract class MimeFormatter {
        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public abstract object GetInitializer(LogicalMethodInfo methodInfo); 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public abstract void Initialize(object initializer);

        ///  
        /// 
        ///    [To be supplied.] 
        ///  
        public virtual object[] GetInitializers(LogicalMethodInfo[] methodInfos) {
            object[] initializers = new object[methodInfos.Length]; 
            for (int i = 0; i < initializers.Length; i++)
                initializers[i] = GetInitializer(methodInfos[i]);
            return initializers;
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        [PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
        public static object GetInitializer(Type type, LogicalMethodInfo methodInfo) {
            return ((MimeFormatter)Activator.CreateInstance(type)).GetInitializer(methodInfo);
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        [PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
        public static object[] GetInitializers(Type type, LogicalMethodInfo[] methodInfos) {
            return ((MimeFormatter)Activator.CreateInstance(type)).GetInitializers(methodInfos);
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        [PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
        public static MimeFormatter CreateInstance(Type type, object initializer) {
            MimeFormatter formatter = (MimeFormatter)Activator.CreateInstance(type);
            formatter.Initialize(initializer); 
            return formatter;
        } 
    } 

} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.Services.Protocols { 
    using System.IO; 
    using System;
    using System.Xml.Serialization; 
    using System.Reflection;
    using System.Collections;
    using System.Web.Services;
    using System.Security.Permissions; 

    ///  
    ///  
    ///    [To be supplied.]
    ///  
    public abstract class MimeFormatter {
        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public abstract object GetInitializer(LogicalMethodInfo methodInfo); 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public abstract void Initialize(object initializer);

        ///  
        /// 
        ///    [To be supplied.] 
        ///  
        public virtual object[] GetInitializers(LogicalMethodInfo[] methodInfos) {
            object[] initializers = new object[methodInfos.Length]; 
            for (int i = 0; i < initializers.Length; i++)
                initializers[i] = GetInitializer(methodInfos[i]);
            return initializers;
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        [PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
        public static object GetInitializer(Type type, LogicalMethodInfo methodInfo) {
            return ((MimeFormatter)Activator.CreateInstance(type)).GetInitializer(methodInfo);
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        [PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
        public static object[] GetInitializers(Type type, LogicalMethodInfo[] methodInfos) {
            return ((MimeFormatter)Activator.CreateInstance(type)).GetInitializers(methodInfos);
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        [PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
        public static MimeFormatter CreateInstance(Type type, object initializer) {
            MimeFormatter formatter = (MimeFormatter)Activator.CreateInstance(type);
            formatter.Initialize(initializer); 
            return formatter;
        } 
    } 

} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK