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
  1. Home
  2. General Programming
  3. C#
  4. what c# has equal to my in vb2005?

what c# has equal to my in vb2005?

Scheduled Pinned Locked Moved C#
questioncsharp
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amir Jalaly
    wrote on last edited by
    #1

    hi every body i work in c# 2005 and have a question some of my friend that work in vb show something beautful in vb that is My i am a new user of c#2005 and work on c# 2003 before that so don't know anything about my . now i want to know is there any equal to my in c#2005 Regards Amir Jalaly

    J C W 3 Replies Last reply
    0
    • A Amir Jalaly

      hi every body i work in c# 2005 and have a question some of my friend that work in vb show something beautful in vb that is My i am a new user of c#2005 and work on c# 2003 before that so don't know anything about my . now i want to know is there any equal to my in c#2005 Regards Amir Jalaly

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      this

      S 1 Reply Last reply
      0
      • J J4amieC

        this

        S Offline
        S Offline
        Steve Hansen
        wrote on last edited by
        #3

        this is the same as Me in VB. The My feature in VB is completly different. Read here to know more about it: http://blogs.msdn.com/danielfe/archive/2005/06/14/429092.aspx[^]

        1 Reply Last reply
        0
        • A Amir Jalaly

          hi every body i work in c# 2005 and have a question some of my friend that work in vb show something beautful in vb that is My i am a new user of c#2005 and work on c# 2003 before that so don't know anything about my . now i want to know is there any equal to my in c#2005 Regards Amir Jalaly

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Amir Jalaly wrote:

          some of my friend that work in vb show something beautful in vb that is My

          The My namespace is just a façade onto existing .NET Framework classes. There is nothing new of "beautiful" about it, in my opinion. It is just an extension of the over simplification of things in VB.NET that leads to a group of Me, My, Fisher Price developers. Façade classes, in my opinion, should be written in house for the purposes required by the application as they dictate how an application interacts with other classes. If you need to interact with framework classes in the same way on multiple occasions then great! Write a façade class for it. If the framework comes with façade classes built in then you are losing control somewhat because then the framework is dictating how you interact with other framework classes. They become black boxes that don't encourage the devloper to actually know what is goind on underneath and leads to problems when things go wrong. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

          1 Reply Last reply
          0
          • A Amir Jalaly

            hi every body i work in c# 2005 and have a question some of my friend that work in vb show something beautful in vb that is My i am a new user of c#2005 and work on c# 2003 before that so don't know anything about my . now i want to know is there any equal to my in c#2005 Regards Amir Jalaly

            W Offline
            W Offline
            Wjousts
            wrote on last edited by
            #5

            As I understand it you should be able to include the vb classes in a C# application and use My as much as you want.

            A 1 Reply Last reply
            0
            • W Wjousts

              As I understand it you should be able to include the vb classes in a C# application and use My as much as you want.

              A Offline
              A Offline
              Amir Jalaly
              wrote on last edited by
              #6

              this is not a class . as i read in msdn my is a special key word for vb2005 Regards Amir Jalaly

              W 1 Reply Last reply
              0
              • A Amir Jalaly

                this is not a class . as i read in msdn my is a special key word for vb2005 Regards Amir Jalaly

                W Offline
                W Offline
                Wjousts
                wrote on last edited by
                #7

                Amir Jalaly wrote:

                ForumC# Subject:Re: what c# has equal to my in vb2005? Sender:Amir Jalaly Date:1:42 9 Mar '06 this is not a class .

                Of course it's a class. .NET 101: EVERYTHING IS A CLASS Add a reference to the Visual Basic dll in your project and then add the Microsoft.VisualBasic namespaces to your application that you need. You'll find all the My objects in there somewhere. For example, Computer and Audio are in the Devices namespace and User is in the ApplicationServices namespace.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

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