User Profile

Collapse

Profile Sidebar

Collapse
azzurit
azzurit
Last Activity: May 4 '10, 09:25 PM
Joined: May 2 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • azzurit
    replied to Implicit conversion
    I don't want int to hold a string.
    I want it to convert string to int automatically (without using Parse), when assigned...
    See more | Go to post

    Leave a comment:


  • azzurit
    replied to Implicit conversion
    Becouse my prof wants me to do this if I want A:-D
    See more | Go to post

    Leave a comment:


  • azzurit
    replied to Implicit conversion
    It's clear. But instead of
    int a = Int32.Parse("12 34");
    I need to write only
    int a = "1234";

    Maybe the operator overriding could help... What do you think?
    See more | Go to post

    Leave a comment:


  • azzurit
    started a topic Implicit conversion

    Implicit conversion

    Hello

    I need the following code to work:
    int a = "1234"

    How can I modify the int type to accept string (or in ideal case to accept both string and int)???

    Can I somehow modify it?
    (I tried to inherite int to change its properties, but the compiler returns an error becouse of inheriting (I can't derive int)).

    I would appreciate any help.
    See more | Go to post
No activity results to display
Show More
Working...