Exemplo n.º 1
0
        //------------------------------------------------------------
        // 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));
        }
Exemplo n.º 2
0
 //------------------------------------------------------------
 // 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);
     }
 }