예제 #1
0
 public bool Equals(ClusterTypeEnum obj)
 {
     if ((object)obj == null)
     {
         return(false);
     }
     return(StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value));
 }
예제 #2
0
        public ExceptionHandlingCluster(ClusterTypeEnum clusterType, uint checkInstr, ExceptionHandlingRegion tryRegion, ExceptionHandlingRegion[] exceptionHandlingRegions)
        {
            m_clusterType = clusterType;
            m_checkInstr = checkInstr;
            m_tryRegion = tryRegion;
            m_exceptionHandlingRegions = exceptionHandlingRegions;
            m_isParsed = false;
            m_escapePaths = new SortedSet<uint>();

            tryRegion.ContainingCluster = this;
            foreach (ExceptionHandlingRegion region in exceptionHandlingRegions)
                region.ContainingCluster = this;
        }