Using the API to Create ISerializable Calls

I can't find anything on using the API... can you get me started, or point
me where I need to go?


I'd like to use the Resharper API to build GetObjectData() methods
automatically for any specified classes that implement ISerializable.

I'd like to show a field selector, displaying all the fields of the class,
allow me to check these off, and then create the method with al lthe
info.AddValue calls for the selected fields.

info.AddValue ("fieldName", fieldName);

Also, creating the Serializable COnstructor, doing the same in reverse:

fieldName = info.GetInt ("fieldName");

Any help would be greatly appreciated.



1 comment
Comment actions Permalink

Questions about using of ReSharper API should be posted to jetbrains.resharper.openapi
newsgroup. I'll answer you into that newsgroup.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I can't find anything on using the API... can you get me started, or
point me where I need to go?

I'd like to use the Resharper API to build GetObjectData() methods
automatically for any specified classes that implement ISerializable.

I'd like to show a field selector, displaying all the fields of the
class, allow me to check these off, and then create the method with al
lthe info.AddValue calls for the selected fields.

info.AddValue ("fieldName", fieldName);

Also, creating the Serializable COnstructor, doing the same in
reverse:

fieldName = info.GetInt ("fieldName");

Any help would be greatly appreciated.



0

Please sign in to leave a comment.