示例#1
0
        public RegionDef(RegionDef originalRegion, bool tokenRegion = false, ReadOnlyCollection <RegionDef> regions = null, ReadOnlyCollection <MethodDef> methods = null)
        {
            regionDefXml = originalRegion.regionDefXml;

            Regions        = regions ?? originalRegion.Regions;;
            MethodDefs     = methods ?? originalRegion.MethodDefs;
            HasTokenRegion = originalRegion.HasTokenRegion;

            IsTokenRegion = tokenRegion;
        }
示例#2
0
        public RegionDef(RegionDef originalRegion, bool tokenRegion = false, ReadOnlyCollection <IElementDef> elements = null)
        {
            regionDefXml = originalRegion.regionDefXml;

            Elements = (elements ?? originalRegion.Elements) ?? new ReadOnlyCollection <IElementDef>(new List <IElementDef>());

            HasTokenRegion = originalRegion.HasTokenRegion;

            IsTokenRegion = tokenRegion;
        }