RegexCompilationInfo.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Regex / System / Text / RegularExpressions / RegexCompilationInfo.cs / 1305376 / RegexCompilationInfo.cs

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

#if !SILVERLIGHT 
 
namespace System.Text.RegularExpressions {
    using System; 

    /// 
    ///    
    ///       [To be supplied] 
    ///    
    ///  
    [ Serializable() ] 
    public class RegexCompilationInfo {
        private String           pattern; 
        private RegexOptions     options;
        private String           name;
        private String           nspace;
        private bool             isPublic; 

        ///  
        ///     
        ///       [To be supplied]
        ///     
        /// 
        public RegexCompilationInfo(String pattern, RegexOptions options, String name, String fullnamespace, bool ispublic) {
            Pattern = pattern;
            Name = name; 
            Namespace = fullnamespace;
            this.options = options; 
            isPublic = ispublic; 
        }
 
        /// 
        ///    
        ///       [To be supplied]
        ///     
        /// 
        public String Pattern { 
            get { return pattern; } 
            set {
                if (value == null) 
                    throw new ArgumentNullException("value");
                pattern = value;
            }
        } 

        ///  
        ///     
        ///       [To be supplied]
        ///     
        /// 
        public RegexOptions Options {
            get { return options; }
            set { options = value;} 
        }
 
        ///  
        ///    
        ///       [To be supplied] 
        ///    
        /// 
        public String Name {
            get { return name; } 
            set {
                if (value == null) { 
                    throw new ArgumentNullException("value"); 
                }
 				 
                if (value.Length == 0) {
                	throw new ArgumentException(SR.GetString(SR.InvalidNullEmptyArgument, "value"), "value");					
                }
 
                name = value;
            } 
        } 

        ///  
        ///    
        ///       [To be supplied]
        ///    
        ///  
        public String Namespace {
            get { return nspace; } 
            set { 
                if (value == null)
                    throw new ArgumentNullException("value"); 
                nspace = value;
            }
        }
 
        /// 
        ///     
        ///       [To be supplied] 
        ///    
        ///  
        public bool IsPublic {
            get { return isPublic; }
            set { isPublic = value;}
        } 
    }
} 
 

#endif 


// 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