Ejemplo n.º 1
0
        //------------------------------------------------------------
        // MethWithType.Convert
        //
        /// <summary>
        /// If swt is MethWithType, convert to MethWithType and return it.
        /// Otherwise, create a MethWithType instance by swt and return it.
        /// </summary>
        /// <param name="swt"></param>
        /// <returns></returns>
        //------------------------------------------------------------
        static new internal MethWithType Convert(SymWithType swt)
        {
            MethWithType mwt = swt as MethWithType;

            if (mwt != null)
            {
                return(mwt);
            }
            return(new MethWithType(swt));
        }
Ejemplo n.º 2
0
 //------------------------------------------------------------
 // MethWithType.Set (2)
 //
 /// <summary></summary>
 /// <param name="mwt"></param>
 //------------------------------------------------------------
 internal void Set(MethWithType mwt)
 {
     if (mwt != null)
     {
         this.Set(mwt.MethSym, mwt.AggTypeSym);
     }
     else
     {
         this.Set(null, null);
     }
 }