casting - implementing a custom cast for two types in c# -


this question has answer here:

i have 2 custom classes want implement casts between each other. have dlls of 2 projects , not code. can use extension methods implement cast or need else?

i don't think there way it. anyway, need code cast? when implement operators or casts custom types code may become harder understand. suggest create separate utility convert types more obvious sees code first time.


Comments

Popular posts from this blog

how to build hyperlink for query string in php -

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

queue - mq_receive: message too long -