我先建各类A,实现如
string abcA a=new A();
abc=a.b.c
不知如何建
string abcA a=new A();
abc=a.b.c
不知如何建
解决方案 »
- 怎样简写下面的代码
- DataGridView 不显示数据 指点一下一下代码那里不对!有别的好方法也可以提 谢谢各位了
- 关于C#文件上传最大值的问题
- C#运行分页存储过程得到只有表结构的空DataTable
- C# 将文件放到共享文件夹
- C#窗体效果如何实现
- 怎麼樣獲取打印機的類型?
- bitMap格式保存时背景色如何由原先的灰色改为白色
- 请问SQL Server有没有查看SQL语句执行记录的方式?比如我怎么知道数据库什么时候执行了什么SQL语句或存储过程及相关参数??
- 100分急求winform下好用的类似OWC的控件。
- 求:Rational PurifyPlus For VS 2003 (2003.06.00) SN 或则其他"可以使用的"SDE For VS 2003
- 看了Object类Equals函数源代码,我有些疑问?
A 张三=new A();
张三.中国.省份="河北"
b=张三.中国.省份
b为河北省
如何建这个类?
using System.Collections;public class MyClass
{
public static void Main()
{
a_Class a = new a_Class();
a.b.c = "3333";
System.Console.WriteLine(a.b.c);
}
private class b_Class
{
public string c = "";
}
private class a_Class
{
public b_Class b = new b_Class();
}
}
{
private Country country;
public Country Country
{
get
{
return this.country;
}
set
{
this.county = value;
}
}
}
public class Country
{
private string city;
public string City
{
get
{
return city
}
set
{
this.city = value;
}
}
}
{
public A()
{
}
public string Convert(string str)
{
string s = "";
for(int i = 0;i<str.Length;i++)
{
s = str[i]+".";
}
return s.Substring(0,s.Length-1) ;
}
}
还有一个问题
http://community.csdn.net/Expert/topic/4544/4544705.xml?temp=.6730463
不胜感激