如何在C#中创建层次结构类 [英] How to create a hierarchy class in C#

查看:289
本文介绍了如何在C#中创建层次结构类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



有两个类,比如 -

GeneralInfo

Hi All,

There are two classes like--
GeneralInfo

public string Name
{
    get;
    set;
}

public string Address
{
    get;
    set;
}

public Qualification AcedmicRecord
        {
            get;
            set;
        }





和资格等级



and Qualification class

public string Standard
       {
           get;
           set;
       }

       public string Board
       {
           get;
           set;
       }





我的要求是添加Qualification并从GeneralInfo类的对象获得Qualification。

在哪里编写插入代码并获得资格认证。





谢谢&问候

Mohd Wasif



My requirement is to add Qualification and get Qualification from the object of GeneralInfo class.
Where to write code for insert and get Qualification.


Thanks & Regards
Mohd Wasif

推荐答案

这篇关于如何在C#中创建层次结构类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆