i have a method which is receiving an object of type 'object'. i want to call a method within that object, which exists because the object i'm sending it was written by me, but the compiler won't have it. it says' that 'object' doesn't contain such a method, which is true, but my extension of object does.
how can i get the code to compile and catch any exception that might be thrown should the method not be there? note - i don't want to parse my 'object' as what i'm actually sending it, i want my code to remain versatile and durable.
how can i get the code to compile and catch any exception that might be thrown should the method not be there? note - i don't want to parse my 'object' as what i'm actually sending it, i want my code to remain versatile and durable.