勤奋的码农
欢迎光临我的淘宝店:小丑情趣内衣店
摘要: 1、 System.Text.UnicodeEncoding converter = new System.Text.UnicodeEncoding(); byte[] inputBytes =converter.GetBytes(inputString); string inputString = converter.GetString(inputBytes);2、 string inputString = System.Convert.ToBase64String(inputBytes); byte[] inputBytes = System.Convert.FromBase64Strin 阅读全文
posted @ 2013-08-31 21:35 勤奋的码农 阅读(290) 评论(0) 推荐(0)
摘要: interface用来声明接口1.只提供一些方法规约,不提供方法主体 如 public interface IPerson{ void getName();//不包含方法主体 }2.方法不能用public abstract等修饰,无字段变量,无构造函数。3.方法可包含参数 如 public interface IPerson { void getAge(string s); } 一个例子(例1): public interface IPerson { IPerson(); //错误 string name; //错误 public void getIDcard();//错误 void ge.. 阅读全文
posted @ 2013-08-31 20:27 勤奋的码农 阅读(214) 评论(0) 推荐(0)

友荐云推荐