---
title: "IntToDoubleTest"
author: "kanglecjr"
date: "2009-07-06T11:26:32Z"
tags: ["C", "C#", "C++", "Linq"]
slug: "inttodoubletest"
draft: false
lastmod: "2009-07-06T11:26:32Z"
id: 420683
url: "https://kanglecjr.iteye.com/blog/420683"
---

隐式转换，通常 将 低类型 向 高类型 转换。


```c#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntToDoubleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            double k;
            int i = 5;
            k = i;
            Console.WriteLine("k={0}",k);
            Console.ReadKey();

        }
    }
}


```


结果：
k=5

[诚品服饰 英伦男装 无条件退换](http://s.click.alimama.com/a/qvYjdTCFlgg=-13358728)