-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add JSON Serialization Support for OLE #11527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
cdb926b
Add JSON serialization support for OLE
lonitra 75c7fb7
Add more details for custom json serialization
lonitra 65c12b8
Add custom assembly name to binary serialization to identify JsonData…
lonitra fbfb08b
Remove exception string from resources for now
lonitra cdfdfbf
Remove IObjectReference and add test to Json serialized data should J…
lonitra fca51fa
Add Clipboard.SetDataAsJson for VB
lonitra 1843033
add test deserializing replicated JsonData using BinaryFormatter
lonitra 7471064
Update ClipboardProxy.SetDataAsJson to inherit docs from Clipboard.Se…
lonitra 8faa96a
Fix rebase errors
lonitra ba7a79d
Update some code based on nrbf changes
lonitra 03f320c
Add DataObject.SetDataAsJson overloads and fix build
lonitra 18a0cae
Add test for deserializing json data from stream manually
lonitra 19d40d5
Change SetDataAsJson to take type object
lonitra 255dd30
Add convenience methods for Json serializing for drag/drop scenarios
lonitra b1a3c11
Add test for custom JSON serialization behavior
lonitra e11ae44
re-introduce T for trimming
lonitra 4c88d2a
use Single() and add Font to test type
lonitra d1ab9d5
Update exception condition
lonitra ceb3e0e
Surface any JSON deserialization errors as NotSupportedException
lonitra 6e88b60
Add test avoiding BinaryFormatter with custom DataObject
lonitra 7a9f6b9
close stream in test Clipboard_Deserialize_FromStream_Manually
lonitra 8aaccea
Move clipboard test in ClipboardTests.cs
lonitra 7fbe0df
try different format name
lonitra ced8e9d
update guidance example
lonitra 1be5622
Block setting null data
lonitra 03c7176
Add RequiresUnreferencedCode attribute
lonitra 4968656
- React to TryGetData additions
lonitra 75a3180
- Make JsonData.InnerTypeAssemblyQualifiedName readonly
lonitra db5be00
remove unnecessary using
lonitra c3e7d65
Add comments
lonitra 98d5eed
Merge remote-tracking branch 'upstream/main' into jsonclipboard
lonitra 494b7fc
- Avoid exposing JsonData<T> in legacy GetData
lonitra 59465ad
Merge remote-tracking branch 'upstream/main' into jsonclipboard
lonitra 79b3365
Block JSON serializing intrinsic types
lonitra dbebbe7
Address feedback
lonitra 3d32e84
clear clipboard for test and change format to improve reliability
lonitra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| Microsoft.VisualBasic.MyServices.ClipboardProxy.TryGetData(Of T)(format As String, ByRef data As T) -> Boolean | ||
| Microsoft.VisualBasic.MyServices.ClipboardProxy.TryGetData(Of T)(format As String, resolver As System.Func(Of System.Reflection.Metadata.TypeName, System.Type), ByRef data As T) -> Boolean | ||
| Microsoft.VisualBasic.MyServices.ClipboardProxy.TryGetData(Of T)(format As String, resolver As System.Func(Of System.Reflection.Metadata.TypeName, System.Type), ByRef data As T) -> Boolean | ||
| Microsoft.VisualBasic.MyServices.ClipboardProxy.SetDataAsJson(Of T)(format As String, data As T) -> Void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.