示例#1
0
        public static DT.CpuArchitecture ToDto(this DA.CpuArchitecture source)
        {
            switch (source)
            {
            case DA.CpuArchitecture.x64: return(DT.CpuArchitecture.x64);

            case DA.CpuArchitecture.x86: return(DT.CpuArchitecture.x86);

            default: return(DT.CpuArchitecture.x86);
            }
        }
示例#2
0
 public static DT.CpuArchitecture ToDto(DB.CpuArchitecture source)
 {
     if (source == DB.CpuArchitecture.x64)
     {
         return(CpuArchitecture.x64);
     }
     else if (source == DB.CpuArchitecture.x86)
     {
         return(CpuArchitecture.x86);
     }
     else
     {
         return(CpuArchitecture.x86);
     }
 }