CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: object naming

Threaded View

  1. #1
    Join Date
    Mar 2007
    Posts
    77

    Question plz help

    Hi all

    I m using .net 2.0

    I want to create an object of type object

    but the problem is my object name has to be taken from string variable


    Something like this

    Code:
    string bb = "obj1";
    object bb.ToString() = new object();

    This code creates an error
    I dont know how to do this.

    plz help me
    thank u
    Last edited by ujjwalmeshram; June 3rd, 2008 at 06:40 AM. Reason: correction

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured