本文介绍了类继承命名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要继承的DevExpress ComboBoxEdit控制,并且想知道是否命名我的课一样的DevExpress类是不好的做法
I want to inherit the DevExpress ComboBoxEdit control, and am wondering if naming my class the same as the DevExpress class is bad practice.
下面是派生类的声明:
Here's the derived class declaration:
using System;
using System.Collections.Generic;
using System.Text;
namespace MyApplication.Components
{
public class ComboBoxEdit : DevExpress.XtraEditors.ComboBoxEdit
{
}
}
我应该重新命名MyApplication.Components.ComboBoxEdit到别的像MyComboBoxEdit?
Should I rename MyApplication.Components.ComboBoxEdit to something else like MyComboBoxEdit?
推荐答案
有一定为什么你会创建自己的ComboBoxEdit的原因。我会用在类的名称原因。
There's must be a reason why you're creating your own ComboBoxEdit. I would use that reason in the name of the class.
这篇关于类继承命名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!