by: Dmitry Martynov |
last post by:
What if I have some special constructors and do not have a default
constructor. It seems to be very useful when I do not want to forget to
initialize some fields properly. As I have understood...
|
by: Robert Zurer |
last post by:
This method works but FxCop rightly complains
"Generic methods should provide type parameter"
http://www.gotdotnet.com/team/fxcop/docs/rules.aspx?version=1.32...
|
by: Jethro Guo |
last post by:
C++ template use constraint by signature,It's very flexible to programmer but
complex for complier, and at most time programmer can not
get clear error message from complier if error occur. C#...
|
by: Andreas Mueller |
last post by:
Hi all,
I have a method where the compiler is unable to deduce the generic
arguments. Now I'm asking myself if this a bug, or if not, why it isn't
working. The method in question is Foo3:
...
|
by: Dan Holmes |
last post by:
I have a class that i need a constraint of int, string, float or bool. I
have tried the following but can't make VS accept it. I read the docs
and they showed that any value type can be used...
|
by: BBM |
last post by:
Hi,
I have a situation where I would like to extend an abstract (MustInherit)
class that uses a Generic parameter. The class declaration looks like this...
Public MustInherit Class...
|
by: mps |
last post by:
I want to define a class that has a generic parameter that is itself a
generic class. For example, if I have a generic IQueue<Tinterface, and
class A wants to make use of a generic class that...
|
by: gilbert |
last post by:
Hello.
I am trying to use c# generic to define a class.
class MyClass<Twhere T: new(){
}
In this definition, MyClass can create T objects with a default
constructor. Is there any way to...
|
by: Andrus |
last post by:
I need to create instance of generic type when generic type does not
have parameterless constructor.
I tried code below but got error shown in comment.
How to fix ?
Andrus.
abstract class...
|
by: tadmill |
last post by:
Is it possible to pass a generic parameter of the same class to to its
constructor, where the "T" type passed in the constructor is different
than the "T" type of the instanced class?
ie,
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|