I'm Not making this up -it's a real post!

Published Tue, Oct 12 2004 22:33 | William

Be careful, if you actually look at this code and what it does, YOU WILL TURN TO ROCK.  Actually, I put this code on my wall and took 4 steps back, it coincidentally forms Satan's picture

Hi guys!

Just wanted to let you all know that I created a Variant structure, inspired by the old VB6 days.

// Here is an example of use:
// start with a string of "1"
Variant da = new Variant("1");
// add an integer of 2, becomes 3
da += 2;
// add a float of 1.3, becomes 4.3
da += 1.3F;
// add a string, becomes "4.3wow"
da += "wow";
// write "4.3wow"
Console.WriteLine(da);

I might actually use this puppy. :)

Anyway, here it is, source code and all, take a look and be sure to give it 5 stars if you find it useful.

http://www.planet-source-code.com/vb/scripts/showcode.asp?txtCodeId=2854&lngWId=10

Regards,
Jon Davis

Filed under: ,

Comments

# William said on October 13, 2004 10:32 AM:

One question: Why?

I'm inspired by this code to make my next .NET app as a script. Just one giant class with no properties/methods/etc....just like the good ol' BASIC days on my Vic 20. Maybe I'll have one method and call it 'goto' so I can bring back that too.

# William said on October 13, 2004 12:04 PM:

It's amazing what someone can do when they put thier mind to it. It can be sad too, but sometimes it's amazingly sad.

# William said on October 13, 2004 12:34 PM:

Dude, head over to the microsoft.public.dotnet.languages.csharp and then vb - this dude is SOOO Proud of this that it's scarry. And gets touchy about criticism too.

Search

This Blog

Tags

Community

Archives

News

My other sites

Cool Stuff

Book Stuff

Security

ORM

Data Access

Funny Stuff

Compact Framework Stuff

Web Casts

My KnowledgeBase Articles

My MVP Profile

Design Patterns

Performance

Debugging

Remoting

My Fellow Authors

My Books

LINQ

Misc

Speech

Syndication

Email Notifications