RegexCompilationInfo.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Regex / System / Text / RegularExpressions / RegexCompilationInfo.cs / 1 / RegexCompilationInfo.cs

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

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;}
        }
    }
} 

 


                        

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