Object Oriented Programming using C#

(backadmin) #1
Object Oriented Programming using C#
Generic Collections and how to Serialize them

In these cases respectively the CLR engine will treat int, double, and Student objects as the most general type of thing
available ‘Object’. It will then convert this object to a string and compare the strings.

This will work however in many situations creating methods which take parameters of type ‘Object’ is flawed or at least
very limited.

Inside these methods we do not know what type of object was actually passed as a parameter and hence in the example
above we do not know what type of object is actually being returned. When two students object are passed the object
returned is a student but we cannot invoke Student specific methods on this object unless we first cast the object returned
to a Student.

http://www.simcorp.com
MITIGATE RISK REDUCE COST ENABLE GROWTH

The financial industry needs a strong software platform
That’s why we need you
SimCorp is a leading provider of software solutions for the financial industry. We work together to reach a common goal: to help our clients
succeed by providing a strong, scalable IT platform that enables growth, while mitigating risk and reducing cost. At SimCorp, we value
commitment and enable you to make the most of your ambitions and potential.
Are you among the best qualified in finance, economics, IT or mathematics?

Find your next challenge at
http://www.simcorp.com/careers

Please click the advert

Free download pdf