MatchAttribute.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 / MatchAttribute.cs / 1305376 / MatchAttribute.cs

                            namespace System.Web.Services.Protocols { 
    using System;
    using System.Security.Permissions;

    ///  
    /// 
    ///    [To be supplied.] 
    ///  
    [AttributeUsage(AttributeTargets.All)]
    public sealed class MatchAttribute : System.Attribute { 
        string pattern;
        int group = 1;
        int capture = 0;
        bool ignoreCase = false; 
        int repeats = -1;
 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public MatchAttribute(string pattern) {
            this.pattern = pattern;
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public string Pattern {
            get { return pattern == null ? string.Empty : pattern; }
            set { pattern = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public int Group {
            get { return group; }
            set { group = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public int Capture {
            get { return capture; }
            set { capture = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public bool IgnoreCase {
            get { return ignoreCase; }
            set { ignoreCase = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public int MaxRepeats {
            get { return repeats; }
            set { repeats = value; }
        } 
    }
} 

// 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;
    using System.Security.Permissions;

    ///  
    /// 
    ///    [To be supplied.] 
    ///  
    [AttributeUsage(AttributeTargets.All)]
    public sealed class MatchAttribute : System.Attribute { 
        string pattern;
        int group = 1;
        int capture = 0;
        bool ignoreCase = false; 
        int repeats = -1;
 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public MatchAttribute(string pattern) {
            this.pattern = pattern;
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public string Pattern {
            get { return pattern == null ? string.Empty : pattern; }
            set { pattern = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public int Group {
            get { return group; }
            set { group = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public int Capture {
            get { return capture; }
            set { capture = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public bool IgnoreCase {
            get { return ignoreCase; }
            set { ignoreCase = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public int MaxRepeats {
            get { return repeats; }
            set { repeats = value; }
        } 
    }
} 

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

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