public object Clone() { PUCType newtype = new PUCType((ValueSpace)_valueSpace.Clone()); newtype._lineNumber = _lineNumber; newtype._valueLabels = _valueLabels == null ? null : (Hashtable)_valueLabels.Clone(); newtype._expectedSpace = _expectedSpace == null ? null : (ValueSpace)_expectedSpace.Clone(); return(newtype); }
/* * Constructors */ public PUCType(int lineNumber, ValueSpace valspc, Hashtable labels, ValueSpace exp) { _lineNumber = lineNumber; _valueSpace = (ValueSpace)valspc.Clone(); if (labels != null) { _valueLabels = (Hashtable)labels.Clone(); } else { _valueLabels = null; } if (exp != null) { _expectedSpace = (ValueSpace)exp.Clone(); } else { _expectedSpace = null; } }