c# - StreamReader and Portable Class Library -
i writing configmanager class using portable class libraries. pcl supports streamreader , streamwriter classes want use, pcl version of classes not support passing in string during construction. pcl not support reader.close() , writer.close(). lastly doesn't support filestream class.
so looking answer 1 of following questions:
- how can
streamreader,streamwriterclasses working in pcl? - how can create new
streamusing pcl? - what other alternitives have load , save files in pcl?
use dispose() instead of close() (or wrap in using statement). we've hidden/removed close() in windows store apps , newer pcls, because same thing , people confused 1 call.
consider using pcl storage cross platform file system access.
here blog posts may want refer how approach platform-specific functionality in pcls:
Comments
Post a Comment