473,757 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generics limitation on .Net

I need to initialise a typed parameter depending of its type in a generic
class.
I have tried to use the C++ template form as follow, but it doesn't work.
It seems to be a limitation of generics vs C++ templates.
Does anyone knows a workaround to do this ? Thx :

public class C<T>
{
private T myValue;

private void InitializeValue (out Byte value) { value = Byte.MinValue; }
private void InitializeValue (out Char value) { value = Char.MinValue; }
private void InitializeValue (out Int16 value) { value = Int16.MinValue; }
// ... and so on...
private void InitializeValue (out String value) { value = "Initial value"; }
private void InitializeValue (out Object value) { value = this; }

public C()
{
InitializeValue (out myValue);
}

// ...
}
Dec 28 '05 #1
23 2548
"Luc Vaillant" <Lu*********@di scussions.micro soft.com> a écrit dans le
message de news: A6************* *************** **...icrosof t.com...

|I need to initialise a typed parameter depending of its type in a generic
| class.
| I have tried to use the C++ template form as follow, but it doesn't work.
| It seems to be a limitation of generics vs C++ templates.
| Does anyone knows a workaround to do this ? Thx :
|
| public class C<T>
| {
| private T myValue;
|
| private void InitializeValue (out Byte value) { value = Byte.MinValue; }
| private void InitializeValue (out Char value) { value = Char.MinValue; }
| private void InitializeValue (out Int16 value) { value =
Int16.MinValue; }
| // ... and so on...
| private void InitializeValue (out String value) { value = "Initial
value"; }
| private void InitializeValue (out Object value) { value = this; }
|
| public C()
| {
| InitializeValue (out myValue);
| }
|
| // ...
| }

You are not specifying the type that you wish to initialise, to the
constructor.

In any case, you can use the 'default' keyword to initialise any type passed
as the parameter to the generic class :Then you don't even have to declare a
constructor for this purpose.

public class C<T>
{
private T myValue = default(T);
}

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
Dec 28 '05 #2
Yes, this is for the default value, but what if I want to initialize my
variable with a value that is not the default one ?

"Joanna Carter [TeamB]" wrote:
"Luc Vaillant" <Lu*********@di scussions.micro soft.com> a écrit dans le
message de news: A6************* *************** **...icrosof t.com...

|I need to initialise a typed parameter depending of its type in a generic
| class.
| I have tried to use the C++ template form as follow, but it doesn't work.
| It seems to be a limitation of generics vs C++ templates.
| Does anyone knows a workaround to do this ? Thx :
|
| public class C<T>
| {
| private T myValue;
|
| private void InitializeValue (out Byte value) { value = Byte.MinValue; }
| private void InitializeValue (out Char value) { value = Char.MinValue; }
| private void InitializeValue (out Int16 value) { value =
Int16.MinValue; }
| // ... and so on...
| private void InitializeValue (out String value) { value = "Initial
value"; }
| private void InitializeValue (out Object value) { value = this; }
|
| public C()
| {
| InitializeValue (out myValue);
| }
|
| // ...
| }

You are not specifying the type that you wish to initialise, to the
constructor.

In any case, you can use the 'default' keyword to initialise any type passed
as the parameter to the generic class :Then you don't even have to declare a
constructor for this purpose.

public class C<T>
{
private T myValue = default(T);
}

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer

Dec 28 '05 #3
Then you will have to do a type comparison on T and then set your value
based on the type of T.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Luc Vaillant" <Lu*********@di scussions.micro soft.com> wrote in message
news:DE******** *************** ***********@mic rosoft.com...
Yes, this is for the default value, but what if I want to initialize my
variable with a value that is not the default one ?

"Joanna Carter [TeamB]" wrote:
"Luc Vaillant" <Lu*********@di scussions.micro soft.com> a écrit dans le
message de news: A6************* *************** **...icrosof t.com...

|I need to initialise a typed parameter depending of its type in a
generic
| class.
| I have tried to use the C++ template form as follow, but it doesn't
work.
| It seems to be a limitation of generics vs C++ templates.
| Does anyone knows a workaround to do this ? Thx :
|
| public class C<T>
| {
| private T myValue;
|
| private void InitializeValue (out Byte value) { value =
Byte.MinValue; }
| private void InitializeValue (out Char value) { value =
Char.MinValue; }
| private void InitializeValue (out Int16 value) { value =
Int16.MinValue; }
| // ... and so on...
| private void InitializeValue (out String value) { value = "Initial
value"; }
| private void InitializeValue (out Object value) { value = this; }
|
| public C()
| {
| InitializeValue (out myValue);
| }
|
| // ...
| }

You are not specifying the type that you wish to initialise, to the
constructor.

In any case, you can use the 'default' keyword to initialise any type
passed
as the parameter to the generic class :Then you don't even have to
declare a
constructor for this purpose.

public class C<T>
{
private T myValue = default(T);
}

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer

Dec 28 '05 #4
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> a écrit
dans le message de news: OQ************* *@TK2MSFTNGP09. phx.gbl...

| Then you will have to do a type comparison on T and then set your value
| based on the type of T.

Hehe, you beat me to that one :-)

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
Dec 28 '05 #5
I'm sneaky like that.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Joanna Carter [TeamB]" <jo****@not.for .spam> wrote in message
news:ex******** ******@TK2MSFTN GP14.phx.gbl...
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> a écrit
dans le message de news: OQ************* *@TK2MSFTNGP09. phx.gbl...

| Then you will have to do a type comparison on T and then set your
value
| based on the type of T.

Hehe, you beat me to that one :-)

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer

Dec 28 '05 #6
I have already tried that, but it didn't work (for the same reasons):

public class C<T>
{
private T myValue;

private void InitializeValue (out T value)
{
if (valeurType.Get Type() == typeof(Byte))
valeurType = Byte.MinValue;
else if (valeurType.Get Type() == typeof(Char))
valeurType = Char.MinValue;
else if (valeurType.Get Type() == typeof(Int16))
valeurType = Int16.MinValue;
// and so on...
else
valeurType = default(T);
}

public C()
{
InitializeValue (out myValue);
}

// ...
}

Error messages are :
Error 1 Cannot implicitly convert type 'byte' to 'T'
Error 2 Cannot implicitly convert type 'char' to 'T'
Error 3 Cannot implicitly convert type 'short' to 'T'

and so on...

"Nicholas Paldino [.NET/C# MVP]" wrote:
Then you will have to do a type comparison on T and then set your value
based on the type of T.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Luc Vaillant" <Lu*********@di scussions.micro soft.com> wrote in message
news:DE******** *************** ***********@mic rosoft.com...
Yes, this is for the default value, but what if I want to initialize my
variable with a value that is not the default one ?

"Joanna Carter [TeamB]" wrote:
"Luc Vaillant" <Lu*********@di scussions.micro soft.com> a écrit dans le
message de news: A6************* *************** **...icrosof t.com...

|I need to initialise a typed parameter depending of its type in a
generic
| class.
| I have tried to use the C++ template form as follow, but it doesn't
work.
| It seems to be a limitation of generics vs C++ templates.
| Does anyone knows a workaround to do this ? Thx :
|
| public class C<T>
| {
| private T myValue;
|
| private void InitializeValue (out Byte value) { value =
Byte.MinValue; }
| private void InitializeValue (out Char value) { value =
Char.MinValue; }
| private void InitializeValue (out Int16 value) { value =
Int16.MinValue; }
| // ... and so on...
| private void InitializeValue (out String value) { value = "Initial
value"; }
| private void InitializeValue (out Object value) { value = this; }
|
| public C()
| {
| InitializeValue (out myValue);
| }
|
| // ...
| }

You are not specifying the type that you wish to initialise, to the
constructor.

In any case, you can use the 'default' keyword to initialise any type
passed
as the parameter to the generic class :Then you don't even have to
declare a
constructor for this purpose.

public class C<T>
{
private T myValue = default(T);
}

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer


Dec 28 '05 #7
Luc,

You have to cast the result of the call of <type>.MinVal ue to T, like
so:

valueType = (T) Char.MinValue;
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Luc Vaillant" <Lu*********@di scussions.micro soft.com> wrote in message
news:44******** *************** ***********@mic rosoft.com...
I have already tried that, but it didn't work (for the same reasons):

public class C<T>
{
private T myValue;

private void InitializeValue (out T value)
{
if (valeurType.Get Type() == typeof(Byte))
valeurType = Byte.MinValue;
else if (valeurType.Get Type() == typeof(Char))
valeurType = Char.MinValue;
else if (valeurType.Get Type() == typeof(Int16))
valeurType = Int16.MinValue;
// and so on...
else
valeurType = default(T);
}

public C()
{
InitializeValue (out myValue);
}

// ...
}

Error messages are :
Error 1 Cannot implicitly convert type 'byte' to 'T'
Error 2 Cannot implicitly convert type 'char' to 'T'
Error 3 Cannot implicitly convert type 'short' to 'T'

and so on...

"Nicholas Paldino [.NET/C# MVP]" wrote:
Then you will have to do a type comparison on T and then set your
value
based on the type of T.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Luc Vaillant" <Lu*********@di scussions.micro soft.com> wrote in message
news:DE******** *************** ***********@mic rosoft.com...
> Yes, this is for the default value, but what if I want to initialize my
> variable with a value that is not the default one ?
>
> "Joanna Carter [TeamB]" wrote:
>
>> "Luc Vaillant" <Lu*********@di scussions.micro soft.com> a écrit dans le
>> message de news: A6************* *************** **...icrosof t.com...
>>
>> |I need to initialise a typed parameter depending of its type in a
>> generic
>> | class.
>> | I have tried to use the C++ template form as follow, but it doesn't
>> work.
>> | It seems to be a limitation of generics vs C++ templates.
>> | Does anyone knows a workaround to do this ? Thx :
>> |
>> | public class C<T>
>> | {
>> | private T myValue;
>> |
>> | private void InitializeValue (out Byte value) { value =
>> Byte.MinValue; }
>> | private void InitializeValue (out Char value) { value =
>> Char.MinValue; }
>> | private void InitializeValue (out Int16 value) { value =
>> Int16.MinValue; }
>> | // ... and so on...
>> | private void InitializeValue (out String value) { value = "Initial
>> value"; }
>> | private void InitializeValue (out Object value) { value = this; }
>> |
>> | public C()
>> | {
>> | InitializeValue (out myValue);
>> | }
>> |
>> | // ...
>> | }
>>
>> You are not specifying the type that you wish to initialise, to the
>> constructor.
>>
>> In any case, you can use the 'default' keyword to initialise any type
>> passed
>> as the parameter to the generic class :Then you don't even have to
>> declare a
>> constructor for this purpose.
>>
>> public class C<T>
>> {
>> private T myValue = default(T);
>> }
>>
>> Joanna
>>
>> --
>> Joanna Carter [TeamB]
>> Consultant Software Engineer
>>
>>
>>


Dec 28 '05 #8
Luc,
One way might be to cast the value to an object, then cast it to T,
something like:

| if (valeurType.Get Type() == typeof(Byte))
| valeurType = (T)(object)Byte .MinValue;

If you know you want "MinValue" I would consider using Reflection to find
the "MinValue" field on the respective type, something like:

private void InitializeValue (out T value)
{
Type t = typeof(T);
System.Reflecti on.FieldInfo fi = t.GetField("Min Value");
if (fi == null)
{
value = default(T);
}
else
{
value = (T)fi.GetValue( null);
}
}

This helps ensure that C<T> supports "MinValue" on new types that may be
used with it, without modifying C<T> itself.

NOTE: The above routine assumes that MinValue is a static field...
Although I would define the class such that default(T) was acceptable or
used another field to indicate the special value...

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Luc Vaillant" <Lu*********@di scussions.micro soft.com> wrote in message
news:44******** *************** ***********@mic rosoft.com...
|I have already tried that, but it didn't work (for the same reasons):
|
| public class C<T>
| {
| private T myValue;
|
| private void InitializeValue (out T value)
| {
| if (valeurType.Get Type() == typeof(Byte))
| valeurType = Byte.MinValue;
| else if (valeurType.Get Type() == typeof(Char))
| valeurType = Char.MinValue;
| else if (valeurType.Get Type() == typeof(Int16))
| valeurType = Int16.MinValue;
| // and so on...
| else
| valeurType = default(T);
| }
|
| public C()
| {
| InitializeValue (out myValue);
| }
|
| // ...
| }
|
| Error messages are :
| Error 1 Cannot implicitly convert type 'byte' to 'T'
| Error 2 Cannot implicitly convert type 'char' to 'T'
| Error 3 Cannot implicitly convert type 'short' to 'T'
|
| and so on...
|
|
|
| "Nicholas Paldino [.NET/C# MVP]" wrote:
|
| > Then you will have to do a type comparison on T and then set your
value
| > based on the type of T.
| >
| >
| > --
| > - Nicholas Paldino [.NET/C# MVP]
| > - mv*@spam.guard. caspershouse.co m
| >
| > "Luc Vaillant" <Lu*********@di scussions.micro soft.com> wrote in message
| > news:DE******** *************** ***********@mic rosoft.com...
| > > Yes, this is for the default value, but what if I want to initialize
my
| > > variable with a value that is not the default one ?
| > >
| > > "Joanna Carter [TeamB]" wrote:
| > >
| > >> "Luc Vaillant" <Lu*********@di scussions.micro soft.com> a écrit dans
le
| > >> message de news:
A6************* *************** **...icrosof t.com...
| > >>
| > >> |I need to initialise a typed parameter depending of its type in a
| > >> generic
| > >> | class.
| > >> | I have tried to use the C++ template form as follow, but it doesn't
| > >> work.
| > >> | It seems to be a limitation of generics vs C++ templates.
| > >> | Does anyone knows a workaround to do this ? Thx :
| > >> |
| > >> | public class C<T>
| > >> | {
| > >> | private T myValue;
| > >> |
| > >> | private void InitializeValue (out Byte value) { value =
| > >> Byte.MinValue; }
| > >> | private void InitializeValue (out Char value) { value =
| > >> Char.MinValue; }
| > >> | private void InitializeValue (out Int16 value) { value =
| > >> Int16.MinValue; }
| > >> | // ... and so on...
| > >> | private void InitializeValue (out String value) { value = "Initial
| > >> value"; }
| > >> | private void InitializeValue (out Object value) { value = this; }
| > >> |
| > >> | public C()
| > >> | {
| > >> | InitializeValue (out myValue);
| > >> | }
| > >> |
| > >> | // ...
| > >> | }
| > >>
| > >> You are not specifying the type that you wish to initialise, to the
| > >> constructor.
| > >>
| > >> In any case, you can use the 'default' keyword to initialise any type
| > >> passed
| > >> as the parameter to the generic class :Then you don't even have to
| > >> declare a
| > >> constructor for this purpose.
| > >>
| > >> public class C<T>
| > >> {
| > >> private T myValue = default(T);
| > >> }
| > >>
| > >> Joanna
| > >>
| > >> --
| > >> Joanna Carter [TeamB]
| > >> Consultant Software Engineer
| > >>
| > >>
| > >>
| >
| >
| >
Dec 28 '05 #9
Nicholas,
| valueType = (T) Char.MinValue;
Produces a compile error!

You need to cast to object first, as Char to T is not defined. Without a
constraint only object to/from T is defined.

| valueType = (T)(object)Char .MinValue;

Even then a runtime error could occur...

--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:eV******** ******@TK2MSFTN GP12.phx.gbl...
| Luc,
|
| You have to cast the result of the call of <type>.MinVal ue to T, like
| so:
|
| valueType = (T) Char.MinValue;
|
|
| --
| - Nicholas Paldino [.NET/C# MVP]
| - mv*@spam.guard. caspershouse.co m
|
| "Luc Vaillant" <Lu*********@di scussions.micro soft.com> wrote in message
| news:44******** *************** ***********@mic rosoft.com...
| >I have already tried that, but it didn't work (for the same reasons):
| >
| > public class C<T>
| > {
| > private T myValue;
| >
| > private void InitializeValue (out T value)
| > {
| > if (valeurType.Get Type() == typeof(Byte))
| > valeurType = Byte.MinValue;
| > else if (valeurType.Get Type() == typeof(Char))
| > valeurType = Char.MinValue;
| > else if (valeurType.Get Type() == typeof(Int16))
| > valeurType = Int16.MinValue;
| > // and so on...
| > else
| > valeurType = default(T);
| > }
| >
| > public C()
| > {
| > InitializeValue (out myValue);
| > }
| >
| > // ...
| > }
| >
| > Error messages are :
| > Error 1 Cannot implicitly convert type 'byte' to 'T'
| > Error 2 Cannot implicitly convert type 'char' to 'T'
| > Error 3 Cannot implicitly convert type 'short' to 'T'
| >
| > and so on...
| >
| >
| >
| > "Nicholas Paldino [.NET/C# MVP]" wrote:
| >
| >> Then you will have to do a type comparison on T and then set your
| >> value
| >> based on the type of T.
| >>
| >>
| >> --
| >> - Nicholas Paldino [.NET/C# MVP]
| >> - mv*@spam.guard. caspershouse.co m
| >>
| >> "Luc Vaillant" <Lu*********@di scussions.micro soft.com> wrote in message
| >> news:DE******** *************** ***********@mic rosoft.com...
| >> > Yes, this is for the default value, but what if I want to initialize
my
| >> > variable with a value that is not the default one ?
| >> >
| >> > "Joanna Carter [TeamB]" wrote:
| >> >
| >> >> "Luc Vaillant" <Lu*********@di scussions.micro soft.com> a écrit dans
le
| >> >> message de news:
A6************* *************** **...icrosof t.com...
| >> >>
| >> >> |I need to initialise a typed parameter depending of its type in a
| >> >> generic
| >> >> | class.
| >> >> | I have tried to use the C++ template form as follow, but it
doesn't
| >> >> work.
| >> >> | It seems to be a limitation of generics vs C++ templates.
| >> >> | Does anyone knows a workaround to do this ? Thx :
| >> >> |
| >> >> | public class C<T>
| >> >> | {
| >> >> | private T myValue;
| >> >> |
| >> >> | private void InitializeValue (out Byte value) { value =
| >> >> Byte.MinValue; }
| >> >> | private void InitializeValue (out Char value) { value =
| >> >> Char.MinValue; }
| >> >> | private void InitializeValue (out Int16 value) { value =
| >> >> Int16.MinValue; }
| >> >> | // ... and so on...
| >> >> | private void InitializeValue (out String value) { value =
"Initial
| >> >> value"; }
| >> >> | private void InitializeValue (out Object value) { value = this; }
| >> >> |
| >> >> | public C()
| >> >> | {
| >> >> | InitializeValue (out myValue);
| >> >> | }
| >> >> |
| >> >> | // ...
| >> >> | }
| >> >>
| >> >> You are not specifying the type that you wish to initialise, to the
| >> >> constructor.
| >> >>
| >> >> In any case, you can use the 'default' keyword to initialise any
type
| >> >> passed
| >> >> as the parameter to the generic class :Then you don't even have to
| >> >> declare a
| >> >> constructor for this purpose.
| >> >>
| >> >> public class C<T>
| >> >> {
| >> >> private T myValue = default(T);
| >> >> }
| >> >>
| >> >> Joanna
| >> >>
| >> >> --
| >> >> Joanna Carter [TeamB]
| >> >> Consultant Software Engineer
| >> >>
| >> >>
| >> >>
| >>
| >>
| >>
|
|
Dec 28 '05 #10

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

Similar topics

2
5804
by: Hung Jung Lu | last post by:
Hi, I just downloaded rotor and gyro and am playing a bit with generics. I enclose a sample program. My question is, according to the language spec (http://msdn.microsoft.com/vcsharp/team/language/default.aspx, C# 2.0 Specification), a syntax like: public class MathEngine<T> where T: IHasX, IHasY { … }
8
1843
by: Leicester B. Ford Jr. | last post by:
I have come across a problem using generics. I want to create a Factory type that will build classes for me. Code snippet below... static public class Product<T> where T : new() { static public T New() { return new T(); } }
4
9206
by: Michael Sparks | last post by:
I started writing some code with the 2.0 beta compiler, and found out quickly that specialization is not supported with generics. For example, I want to do something like this: class number ... class integer : number ... class real : number ... class multiplier<_number> where _number : number ... class multiplier<_number> where _number : integer ...
3
1252
by: Tom Jastrzebski | last post by:
Hello everybody, Here is another problem with generics I come across. Let's say I want to implement a structure performing some operations on some numeric type. I can not than just return this expected type since the compiler is not sure what this type would be, and it does not know that the type I am trying to returned is the correct type, or either that the conversion is possible. Ok, I understand - it is just the limitation of...
3
1957
by: Marshal | last post by:
/////////////////////////////////////////////////////////////////////////////////////////////// /// CONSTRAINTS ON GENERICS //////////////////////////////////////////////////// public class Node<T> where T:IComparable<T> I don't like the syntax, and would prefer something that groups the constraint along with the type that it governs them, as depicted in this suggestion:
13
1697
by: Luc Vaillant | last post by:
I try to compare to values of generic value type T in a generic class as follow: public class C<T> where T : struct { private T value1; private T value2; C(T value1, T value2) {
8
2432
by: Kris Jennings | last post by:
Hi, I am trying to create a new generic class and am having trouble casting a generic type to a specific type. For example, public class MyClass<Twhere T : MyItemClass, new() { public MyClass() { } public void AppendItem()
8
2554
by: Gary Brown | last post by:
Hi, When I do the following public class IAmAGeneric<T> { ... public T AMember (T a, T b) { return a + b; }; }
2
138
by: =?Utf-8?B?QnJhdmVzQ2hhcm0=?= | last post by:
I am trying to convert a class I have to generics and I can't seem to find any possible why to implement it. I'm beginning to think I'm doing something I shouldn't or I hit generics limitation. Here is an example of the old way: static void Main(string args) { MonitorCenter monitor = new MonitorCenter(); monitor.SetMonitor(new ExceptionMonitor());
0
9487
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9884
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8736
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6556
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.