/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Analyzers/CSharp/CodeFixes/CSharpCodeFixesResources.resx
266 строк
12 KB
Mark Wiemer
Update warning to mention 'this method'
22 июн 2026, 19:41
22 июн 2026, 19:41
3ab9196
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="Remove_unnecessary_usings" xml:space="preserve"> <value>Remove unnecessary usings</value> </data> <data name="Add_this" xml:space="preserve"> <value>Add 'this.'</value> </data> <data name="Remove_unreachable_code" xml:space="preserve"> <value>Remove unreachable code</value> </data> <data name="Pass_in_captured_variables_as_arguments" xml:space="preserve"> <value>Pass in captured variables as arguments</value> </data> <data name="Warning_colon_Adding_parameters_to_local_function_declaration_may_produce_invalid_code" xml:space="preserve"> <value>Warning: Adding parameters to local function declaration may produce invalid code.</value> </data> <data name="Convert_typeof_to_nameof" xml:space="preserve"> <value>Convert 'typeof' to 'nameof'</value> </data> <data name="Place_statement_on_following_line" xml:space="preserve"> <value>Place statement on following line</value> </data> <data name="Remove_blank_lines_between_braces" xml:space="preserve"> <value>Remove blank line between braces</value> </data> <data name="Fix_record_declaration" xml:space="preserve"> <value>Fix record declaration</value> </data> <data name="Fix_constraint" xml:space="preserve"> <value>Fix constraint</value> </data> <data name="Change_return_type_from_0_to_1" xml:space="preserve"> <value>Change return type from {0} to {1}</value> </data> <data name="Hide_base_member" xml:space="preserve"> <value>Hide base member</value> </data> <data name="Add_Obsolete" xml:space="preserve"> <value>Add [Obsolete]</value> </data> <data name="Explicitly_inherit_documentation" xml:space="preserve"> <value>Explicitly inherit documentation</value> </data> <data name="Unseal_class_0" xml:space="preserve"> <value>Unseal class '{0}'</value> </data> <data name="Use_interpolated_verbatim_string" xml:space="preserve"> <value>Use interpolated verbatim string</value> </data> <data name="Add_await" xml:space="preserve"> <value>Add 'await'</value> <comment>{Locked="await"} "await" is a C# keyword and should not be localized.</comment> </data> <data name="Assign_to_0" xml:space="preserve"> <value>Assign to '{0}'</value> </data> <data name="Compare_to_0" xml:space="preserve"> <value>Compare to '{0}'</value> </data> <data name="Fix_return_type" xml:space="preserve"> <value>Fix return type</value> </data> <data name="Replace_return_with_yield_return" xml:space="preserve"> <value>Replace return with yield return</value> </data> <data name="Declare_as_nullable" xml:space="preserve"> <value>Declare as nullable</value> </data> <data name="Place_token_on_following_line" xml:space="preserve"> <value>Place token on following line</value> </data> <data name="Assign_out_parameters" xml:space="preserve"> <value>Assign 'out' parameters</value> <comment>{Locked="out"} "out" is a C# keyword and should not be localized.</comment> </data> <data name="Assign_out_parameters_at_start" xml:space="preserve"> <value>Assign 'out' parameters (at start)</value> <comment>{Locked="out"} "out" is a C# keyword and should not be localized.</comment> </data> <data name="Add_parentheses_around_conditional_expression_in_interpolated_string" xml:space="preserve"> <value>Add parentheses</value> </data> <data name="Make_0_return_Task_instead_of_void" xml:space="preserve"> <value>Make {0} return Task instead of void.</value> </data> <data name="Allow_unsafe_code_in_this_project" xml:space="preserve"> <value>Allow unsafe code in this project</value> </data> <data name="Make_ref_struct" xml:space="preserve"> <value>Make 'ref struct'</value> <comment>{Locked="ref"}{Locked="struct"} "ref" and "struct" are C# keywords and should not be localized.</comment> </data> <data name="Remove_unused_function" xml:space="preserve"> <value>Remove unused function</value> </data> <data name="Upgrade_all_csharp_projects_to_language_version_0" xml:space="preserve"> <value>Upgrade all C# projects to language version '{0}'</value> </data> <data name="Upgrade_this_project_to_csharp_language_version_0" xml:space="preserve"> <value>Upgrade this project to C# language version '{0}'</value> </data> <data name="Use_0" xml:space="preserve"> <value>Use '{0}'</value> </data> <data name="Remove_in_keyword" xml:space="preserve"> <value>Remove 'in' keyword</value> <comment>{Locked="in"} "in" is a C# keyword and should not be localized.</comment> </data> <data name="Remove_new_modifier" xml:space="preserve"> <value>Remove 'new' modifier</value> </data> <data name="Convert_to_positional_record" xml:space="preserve"> <value>Convert to positional record</value> <comment>{Locked="record"} "record" is a C# keyword and should not be localized.</comment> </data> <data name="Make_method_async" xml:space="preserve"> <value>Make method async</value> </data> <data name="This_method_is_used_as_a_delegate_changing_the_return_type_may_result_in_build_errors" xml:space="preserve"> <value>This method is used as a delegate; changing the return type may result in build errors</value> </data> <data name="Make_method_async_remain_void" xml:space="preserve"> <value>Make method async (stay void)</value> </data> <data name="Make_field_required" xml:space="preserve"> <value>Make field 'required'</value> <comment>{Locked="required"} "required" is a C# keyword and should not be localized.</comment> </data> <data name="Make_property_required" xml:space="preserve"> <value>Make property 'required'</value> <comment>{Locked="required"} "required" is a C# keyword and should not be localized.</comment> </data> <data name="Use_primary_constructor_and_remove_members" xml:space="preserve"> <value>Use primary constructor (and remove members)</value> </data> <data name="Use_primary_constructor_and_remove_fields" xml:space="preserve"> <value>Use primary constructor (and remove fields)</value> </data> <data name="Use_primary_constructor_and_remove_properties" xml:space="preserve"> <value>Use primary constructor (and remove properties)</value> </data> <data name="Use_collection_expression" xml:space="preserve"> <value>Use collection expression</value> </data> <data name="Use_explicit_array" xml:space="preserve"> <value>Use explicit array</value> </data> </root>