473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DataColumnCollection Inherit !!

i wirte a "class b" to inherit DataColumnCollection,
but it show a error message that is 'method of DataColumnCollection is not
anyone overloadding to use zero of argument'

The following it is written by me :
public class b : System.Data.DataColumnCollection
{
}
Nov 19 '05 #1
1 1690
DataColumnCollection class has no constructor. It inherits from
InternalDataCollectionBase. There must a constructor at least protected in a
base class. In fact, In coding DataColumnCollection must be defined as a
sealed class. For instance

class A
{
//Private or Internal
private A(){}
}
class B
{
protected B(){}
}

class C:A // It is not valid. Cannot access constructor
{
}

class C:B // It is valid. Can access contructor. Also can override
constructor modifier (means can have a public constructor)
{
}
--
Thanks,
Yunus Emre ALPÖZEN

"daniel" <a9******@anet.net.tw> wrote in message
news:eb**************@TK2MSFTNGP09.phx.gbl...
i wirte a "class b" to inherit DataColumnCollection,
but it show a error message that is 'method of DataColumnCollection is
not anyone overloadding to use zero of argument'

The following it is written by me :
public class b : System.Data.DataColumnCollection
{
}

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Fabian Neumann | last post by:
Hi! I got a problem with font-family inheritance. Let's say I have CSS definitions like: p { font:normal 10pt Verdana; } strong { font:normal 14pt inherit;
1
by: Jeff Schmidt | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, ~ Ok, I've got some tables, and a style sheet that contains stuff to format the table. The problem I'm having is, it appears that using...
7
by: bobsled | last post by:
For class A to reuse functionality of a class B, A could either contains B or inherits from B. When should pick which? In a book the author says that "Don't inherit from a concrete class." Does...
0
by: Frank | last post by:
Hi all, I have a strong typed dataset. The client may do something like my_dataset.my_table.Columns.Add(column_name) I want to capture this event. So I try to derive a class from...
4
by: Slavyan | last post by:
(I just started to learn C#.NET) What's the syntax in c# for a class to inherit more than one class. I know following syntax: public class MyClass : MyOtherClass { } but I need to inherit...
6
by: Mohammad-Reza | last post by:
I wrote a component using class library wizard. In my component i want to in order to RightToLeft property do some works. I can find out if user set this property to Yes or No, But if He/She set it...
2
by: Frank | last post by:
Hi all, I have a strong typed dataset. The client may do something like my_dataset.my_table.Columns.Add(column) I want to capture this event. So I try to derive a class from...
0
by: Roman | last post by:
I have a DataColumnCollection with data columns of different data types: string, date, boolean... Is there a way to create another DataColumnCollection which contains only boolean data columns? ...
2
by: GTalbot | last post by:
Hello fellow comp.infosystems.www.authoring.stylesheets colleagues, Imagine this situation: #grand-parent-abs-pos { height: 400px; position: absolute; width: 600px; }
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.