Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Redwan Albougha

@Redwan Albougha
About
Posts
14
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 'Item': member names cannot be the same as their enclosing type
    R Redwan Albougha

    Thanks Camilo, I already know that, but I post this since it has some taste of horror. :rolleyes:

    Best wishes, Redwan Al-Bougha

    The Weird and The Wonderful csharp help

  • 'Item': member names cannot be the same as their enclosing type
    R Redwan Albougha

    Thanks leppie, Rob Graham already told me about IndexerNameAttribute. But thanks for your interest :cool:

    Best wishes, Redwan Al-Bougha

    The Weird and The Wonderful csharp help

  • 'Item': member names cannot be the same as their enclosing type
    R Redwan Albougha

    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

    The Weird and The Wonderful csharp help

  • 'Item': member names cannot be the same as their enclosing type
    R Redwan Albougha

    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

    The Weird and The Wonderful csharp help

  • 'Item': member names cannot be the same as their enclosing type
    R Redwan Albougha

    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

    The Weird and The Wonderful csharp help

  • 'Item': member names cannot be the same as their enclosing type
    R Redwan Albougha

    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

    The Weird and The Wonderful csharp help

  • 'Item': member names cannot be the same as their enclosing type
    R Redwan Albougha

    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

    The Weird and The Wonderful csharp help

  • How would you solve that?
    R Redwan Albougha

    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

    The Lounge com sysadmin performance question

  • Object initializers. [modified]
    R Redwan Albougha

    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

    Clever Code com tools help question

  • OMG
    R Redwan Albougha

    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

    The Lounge csharp com adobe question

  • Portable DB Suggestions?
    R Redwan Albougha

    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

    The Lounge csharp database question

  • stdcall_api
    R Redwan Albougha

    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

    The Weird and The Wonderful c++ ruby question

  • C# - Arrays vs Arraylist
    R Redwan Albougha

    Did you say senior :~ !!! my GOD X|

    Redwan Al-Bougha

    The Weird and The Wonderful csharp ruby visual-studio data-structures performance

  • If only you could debug a woman...
    R Redwan Albougha

    Set a break point at each line contains talking request:suss:

    Redwan Al-Bougha rbougha (at) hotmail [dot] com

    The Lounge com debugging help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups