Inheritance of inheritance classes

I want to inherit the DevExpress ComboBoxEdit control, and I wonder if my class calls the same as the DevExpress class, bad practice.

Here's the declaration of the derived class:

using System;
using System.Collections.Generic;
using System.Text;

namespace MyApplication.Components
{
    public class ComboBoxEdit : DevExpress.XtraEditors.ComboBoxEdit
    {
    }
}

Should I rename MyApplication.Components.ComboBoxEdit to something like MyComboBoxEdit, for example?

+3
source share
8 answers

There must be a reason why you are creating your own ComboBoxEdit. I would use this reason in the name of the class.

+11
source

This is a good idea only if you want a fellow dude to hate you with the intensity of a thousand suns.

+3
source

.

1) , DevExpress , ( , ).

2) , , .

+1

, , , ... "MyComboBoxEdit" "SuperComboBoxEdit" -, ?

0

, . "MyApplication.Components.ComboBoxEdit", DevExpress "DevExpress.XtraEditors.ComboBoxEdit".

, , , - DevExpress. , , .

0

( / , ), - .
, , . ComboBoxEditThatAlsoDoesThisAndThat, , My...

0

. , , .

, . MyComboBox2, .

0

, , .

using DevExpress.XtraEditors;

intellisense ( ); , .

... Dev Express. , XtraEditors .

0

Source: https://habr.com/ru/post/1717164/


All Articles