I am creating an object(obj below) in using and return that object as part of the function return.Will this cause any problem like object will be disposed before I try to us
You would get an exception in the consumer of your object saying object is disposed as essentially that's what the using scope dose - calls the IDisposable implementation.