tag:blogger.com,1999:blog-7316696847298400232.post5131746424504005794..comments2023-05-19T05:00:27.561-07:00Comments on Imran's Knowledge Base World: Overload property in .NETImranhttp://www.blogger.com/profile/06974863164594039994noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-7316696847298400232.post-34526997133162064952007-08-10T22:21:00.000-07:002007-08-10T22:21:00.000-07:00I've seen this before, but how do I use it? Lets s...I've seen this before, but how do I use it? Lets say I want to pull data from a spreadsheet cell and store it somewhere. The data might be an integer or a date or a string or a double. If I want to store it in the "Value" property of a class I would need to overload the "Value" property as a string, as double, a date and an integer, but to put the value into the property I now have to know what "type" of data it is. I don't care, I only want to store my data as I would a variant in VB6. Property overloading seems the way to go, but it adds a tremendous burdon.-Kellerhttps://www.blogger.com/profile/06440487461352327886noreply@blogger.com