//------------------------------------------------------------ // MethPropWithType.Convert // /// <summary> /// If swt is MethPropWithType, convert to MethPropWithType and return it. /// Otherwise, create a MethPropWithType instance by swt and return it. /// </summary> /// <param name="swt"></param> /// <returns></returns> //------------------------------------------------------------ static internal MethPropWithType Convert(SymWithType swt) { MethPropWithType mpwt = swt as MethPropWithType; if (mpwt != null) { return(mpwt); } return(new MethPropWithType(swt)); }
//------------------------------------------------------------ // MethPropWithType.Set (2) // /// <summary></summary> /// <param name="mpwt"></param> //------------------------------------------------------------ internal void Set(MethPropWithType mpwt) { if (mpwt != null) { this.Set(mpwt.MethPropSym, mpwt.AggTypeSym); } else { this.Set(null, null); } }