Thanks Camilo, I already know that, but I post this since it has some taste of horror. :rolleyes:
Best wishes, Redwan Al-Bougha
Thanks Camilo, I already know that, but I post this since it has some taste of horror. :rolleyes:
Best wishes, Redwan Al-Bougha
Thanks leppie, Rob Graham already told me about IndexerNameAttribute
. But thanks for your interest :cool:
Best wishes, Redwan Al-Bougha
First of all thanks for your reply it was really interesting to read it, especially:
WilliamSauron wrote:
but please don't say the compiler is restricting your creativity
WilliamSauron wrote:
On the other hand, now we know where the coding horror is
I have a lot to say, but Midterm is next week so I can't write a lot now. BYE ;)
Best wishes, Redwan Al-Bougha
Rob Graham wrote:
this is just a name that is auto generated by the compiler as a convenience
Thanks Rob, That's what I wrote in the 1st post :
Redwan Al-Bougha wrote:
A default indexer is given the name 'Item' in the emitted code, creating the conflict.
By the way thanks for your notice and for IndexerName
attribute:cool: Best Wishes, Redwan Al-Bougha
Thomas Weller wrote:
They usually call it 'compiler'.
Thanks Thomas :) , I meant instead of : 1- Read language-specific syntax. 2- Convert code to MSIL code. Do this : 1- Read language-specific syntax, where each language is not related in any way to MSIL code. 2- Convert code to MSIL code. That's it avoid the happened ambiguity, as easy as this. Or easily don't use common -reserved- words in any .NET language. :-D
Best wishes, Redwan Al-Bougha
Thomas Weller wrote:
This specification exists because other .NET languages such as VB.NET have to explicitly write it down.
That's right, I think if a wrapper exist for each language between it's syntax and MSIL emitted code, this will help a lot. ;)
Best wishes, Redwan Al-Bougha
My schoolmate told me about a situation he faced while coding using C#. if we have the following code snippet :
public class Item
{
public int this[int y]
{
get
{
return 0;
}
}
}
While compiling an error will appear saying: 'Item': member names cannot be the same as their enclosing type :wtf: First I got confused, since I knew that I was defining indexer property for the class 'Item'. After I referred to MSDN I read this : Compiler Error CS0542 If your class is named 'Item' and has an indexer declared as this, you may get this error. A default indexer is given the name 'Item' in the emitted code, creating the conflict. At the end I think that this MSIL specification mustn't be exist at all.:cool:
Best wishes, Redwan Al-Bougha
I will not do some sort of advertisements, but really try RAM optimizer programs, if these programs can access and analyze the RAM completely, they will solve your problem. Although freeing a huge amount of memory will solve your problem :-O , but also a lot of system cached resources and data will be freed too; meaning some undesirable affect on your machine. Since it's a server machine, so many active services' resources will be freed, which yield to do caching for them "extra unneeded overhead" :doh:
Best wishes, Redwan Al-Bougha
Really subtle !! I changed the properties order as Mirko1980 said, Visual Studio is telling me 'Description' does not exist in the current context.:confused: I tend to think that if you do a one step initialization, you can put just one member of your object at the most left side of the assignment, one and just one; why don't ask me :wtf:
Best wishes, Redwan Al-Bougha
Although this might be seen strange, but this happens for all of us at least once a time in our life. Thanks GOD there is no deaths.:cool:
Best wishes, Redwan Al-Bougha
I'm with Todd. Steve, if you are sure that future releases of the program will maintain the DB the same simple way as you described I will say XML. But keep in mind, as you know that accessing data in XML is less efficient than normal DB engine. So your decision is about "portability" VS "peace of mind" ;) .
Redwan Al-Bougha
Hello thoru, Although I was sure that this issue should not make any error :omg: . I gave it a try in my installed VS2008 in my machine. I made a new C++ project with a precompiled headers and non-empty project, every thing went good :cool:.
Redwan Al-Bougha
Did you say senior :~ !!! my GOD X|
Redwan Al-Bougha
Set a break point at each line contains talking request:suss:
Redwan Al-Bougha rbougha (at) hotmail [dot] com