8000 Replace ArrayList in DataFormats with List<DataFormat> and refactor the class by h3xds1nz · Pull Request #9199 · dotnet/wpf · GitHub
[go: up one dir, main page]

Skip to content

Replace ArrayList in DataFormats with List<DataFormat> and refactor the class #9199

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
Prev Previous commit
Next Next commit
Suppress IDE1006 over the public fields as we cannot change them
  • Loading branch information
h3xds1nz committed Oct 16, 2024
commit 0960c69e024b58e83feaef32c5e4af050981c071
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public static class DataFormats
/// </summary>
public static DataFormat GetDataFormat(string format) => DataFormatsImpl.GetDataFormat(format);

#pragma warning disable IDE1006 // Naming rule violation (Static fields without s_* prefix)

/// <summary>
/// Specifies the standard ANSI text format. This field is read-only.
/// </summary>
Expand Down Expand Up @@ -155,7 +157,6 @@ public static class DataFormats
/// </summary>
public static readonly string Serializable = "PersistentObject";


/// <summary>
/// Specifies a data format as Xaml. This field is read-only.
/// </summary>
Expand All @@ -166,6 +167,8 @@ public static class DataFormats
/// </summary>
public static readonly string XamlPackage = "XamlPackage";

#pragma warning restore IDE1006 // Naming rule violation (Static fields without s_* prefix)

/// <summary>
/// Specifies a data format as ApplicationTrust which is used to block
/// paste from partial trust to full trust applications. The intent of this
Expand Down
0