repo_name
stringclasses
6 values
pr_number
int64
512
78.9k
pr_title
stringlengths
3
144
pr_description
stringlengths
0
30.3k
author
stringlengths
2
21
date_created
timestamp[ns, tz=UTC]
date_merged
timestamp[ns, tz=UTC]
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
17
30.4k
filepath
stringlengths
9
210
before_content
stringlengths
0
112M
after_content
stringlengths
0
112M
label
int64
-1
1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/tests/JIT/opt/OSR/mainloop.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; // Simple OSR test case -- long running loop in Main class MainLoop { public static int Main() { long result = 0; for (int i = 0; i < 1_000_000; i++) { result += (long)i; } return result == 499999500000 ? 100 : -1; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; // Simple OSR test case -- long running loop in Main class MainLoop { public static int Main() { long result = 0; for (int i = 0; i < 1_000_000; i++) { result += (long)i; } return result == 499999500000 ? 100 : -1; } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigXmlWhitespace.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Configuration.Internal; using System.Xml; namespace System.Configuration { internal sealed class ConfigXmlWhitespace : XmlWhitespace, IConfigErrorInfo { private string _filename; private int _line; public ConfigXmlWhitespace(string filename, int line, string comment, XmlDocument doc) : base(comment, doc) { _line = line; _filename = filename; } int IConfigErrorInfo.LineNumber => _line; string IConfigErrorInfo.Filename => _filename; public override XmlNode CloneNode(bool deep) { XmlNode cloneNode = base.CloneNode(deep); ConfigXmlWhitespace clone = cloneNode as ConfigXmlWhitespace; if (clone != null) { clone._line = _line; clone._filename = _filename; } return cloneNode; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Configuration.Internal; using System.Xml; namespace System.Configuration { internal sealed class ConfigXmlWhitespace : XmlWhitespace, IConfigErrorInfo { private string _filename; private int _line; public ConfigXmlWhitespace(string filename, int line, string comment, XmlDocument doc) : base(comment, doc) { _line = line; _filename = filename; } int IConfigErrorInfo.LineNumber => _line; string IConfigErrorInfo.Filename => _filename; public override XmlNode CloneNode(bool deep) { XmlNode cloneNode = base.CloneNode(deep); ConfigXmlWhitespace clone = cloneNode as ConfigXmlWhitespace; if (clone != null) { clone._line = _line; clone._filename = _filename; } return cloneNode; } } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/BufferSegmentStack.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics.CodeAnalysis; namespace System.IO.Pipelines { internal struct BufferSegmentStack { private SegmentAsValueType[] _array; private int _size; public BufferSegmentStack(int size) { _array = new SegmentAsValueType[size]; _size = 0; } public int Count => _size; public bool TryPop([NotNullWhen(true)] out BufferSegment? result) { int size = _size - 1; SegmentAsValueType[] array = _array; if ((uint)size >= (uint)array.Length) { result = default; return false; } _size = size; result = array[size]; array[size] = default; return true; } // Pushes an item to the top of the stack. public void Push(BufferSegment item) { int size = _size; SegmentAsValueType[] array = _array; if ((uint)size < (uint)array.Length) { array[size] = item; _size = size + 1; } else { PushWithResize(item); } } // Non-inline from Stack.Push to improve its code quality as uncommon path [MethodImpl(MethodImplOptions.NoInlining)] private void PushWithResize(BufferSegment item) { Array.Resize(ref _array, 2 * _array.Length); _array[_size] = item; _size++; } /// <summary> /// A simple struct we wrap reference types inside when storing in arrays to /// bypass the CLR's covariant checks when writing to arrays. /// </summary> /// <remarks> /// We use <see cref="SegmentAsValueType"/> as a wrapper to avoid paying the cost of covariant checks whenever /// the underlying array that the <see cref="BufferSegmentStack"/> class uses is written to. /// We've recognized this as a perf win in ETL traces for these stack frames: /// clr!JIT_Stelem_Ref /// clr!ArrayStoreCheck /// clr!ObjIsInstanceOf /// </remarks> private readonly struct SegmentAsValueType { private readonly BufferSegment _value; private SegmentAsValueType(BufferSegment value) => _value = value; public static implicit operator SegmentAsValueType(BufferSegment s) => new SegmentAsValueType(s); public static implicit operator BufferSegment(SegmentAsValueType s) => s._value; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; using System.Diagnostics.CodeAnalysis; namespace System.IO.Pipelines { internal struct BufferSegmentStack { private SegmentAsValueType[] _array; private int _size; public BufferSegmentStack(int size) { _array = new SegmentAsValueType[size]; _size = 0; } public int Count => _size; public bool TryPop([NotNullWhen(true)] out BufferSegment? result) { int size = _size - 1; SegmentAsValueType[] array = _array; if ((uint)size >= (uint)array.Length) { result = default; return false; } _size = size; result = array[size]; array[size] = default; return true; } // Pushes an item to the top of the stack. public void Push(BufferSegment item) { int size = _size; SegmentAsValueType[] array = _array; if ((uint)size < (uint)array.Length) { array[size] = item; _size = size + 1; } else { PushWithResize(item); } } // Non-inline from Stack.Push to improve its code quality as uncommon path [MethodImpl(MethodImplOptions.NoInlining)] private void PushWithResize(BufferSegment item) { Array.Resize(ref _array, 2 * _array.Length); _array[_size] = item; _size++; } /// <summary> /// A simple struct we wrap reference types inside when storing in arrays to /// bypass the CLR's covariant checks when writing to arrays. /// </summary> /// <remarks> /// We use <see cref="SegmentAsValueType"/> as a wrapper to avoid paying the cost of covariant checks whenever /// the underlying array that the <see cref="BufferSegmentStack"/> class uses is written to. /// We've recognized this as a perf win in ETL traces for these stack frames: /// clr!JIT_Stelem_Ref /// clr!ArrayStoreCheck /// clr!ObjIsInstanceOf /// </remarks> private readonly struct SegmentAsValueType { private readonly BufferSegment _value; private SegmentAsValueType(BufferSegment value) => _value = value; public static implicit operator SegmentAsValueType(BufferSegment s) => new SegmentAsValueType(s); public static implicit operator BufferSegment(SegmentAsValueType s) => s._value; } } }
-1
dotnet/runtime
66,137
Address feedback on fabricbot config for area pods
This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
jeffhandley
2022-03-03T11:33:41Z
2022-03-05T05:05:02Z
eb57c1276add1ec7e35897bfdbbebb648839dee3
65bdc907651a48a11ee721d514769c3998a075f4
Address feedback on fabricbot config for area pods. This addresses feedback collected from our first round of monthly area pod syncs with leads. 1. When an issue or PR is moved to a different area pod, it will move to the _Triaged_/_Done_ column instead of getting removed from the board - This will occur for all columns (unless it's already in _Triaged_/_Done_) - The check is filtered to when the action is `unlabeled` - This allows us to get a glimpse of how often this occurs and if it's especially problematic for any areas 2. The `untriaged` label will be automatically removed when the issue is triaged with any of these actions (but only for issues on an area pod issue triage board): - A milestone is applied - The `needs-author-action` label is applied - The `api-ready-for-review` label is applied - The issue is closed The PR also has a handful of code tweaks: 1. Collapsed the `scripts` folder since it contained only a single script 2. Updated the README to reflect the `machinelearning` repo step too 3. Renamed a couple of the task variables 4. Adds the `issueTriaged` task to the `dotnet-api-docs` repo config in anticipation of aligning the `needs-author-action` label
./src/libraries/System.Private.CoreLib/gen/EventSourceGenerator.Emitter.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Text; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; namespace Generators { public partial class EventSourceGenerator { private sealed class Emitter { private readonly StringBuilder _builder = new StringBuilder(1024); private readonly GeneratorExecutionContext _context; public Emitter(GeneratorExecutionContext context) => _context = context; public void Emit(EventSourceClass[] eventSources, CancellationToken cancellationToken) { foreach (EventSourceClass? ec in eventSources) { if (cancellationToken.IsCancellationRequested) { // stop any additional work break; } _builder.AppendLine("using System;"); GenType(ec); _context.AddSource($"{ec.ClassName}.g.cs", SourceText.From(_builder.ToString(), Encoding.UTF8)); _builder.Clear(); } } private void GenType(EventSourceClass ec) { if (!string.IsNullOrWhiteSpace(ec.Namespace)) { _builder.AppendLine($@" namespace {ec.Namespace} {{"); } _builder.AppendLine($@" partial class {ec.ClassName} {{"); GenerateConstructor(ec); GenerateProviderMetadata(ec.SourceName); _builder.AppendLine($@" }}"); if (!string.IsNullOrWhiteSpace(ec.Namespace)) { _builder.AppendLine($@" }}"); } } private void GenerateConstructor(EventSourceClass ec) { _builder.AppendLine($@" private {ec.ClassName}() : base(new Guid({ec.Guid.ToString("x").Replace("{", "").Replace("}", "")}), ""{ec.SourceName}"") {{ }}"); } private void GenerateProviderMetadata(string sourceName) { _builder.Append(@" private protected override ReadOnlySpan<byte> ProviderMetadata => new byte[] { "); byte[] metadataBytes = MetadataForString(sourceName); foreach (byte b in metadataBytes) { _builder.Append($"0x{b:x}, "); } _builder.AppendLine(@"};"); } // From System.Private.CoreLib private static byte[] MetadataForString(string name) { CheckName(name); int metadataSize = Encoding.UTF8.GetByteCount(name) + 3; byte[]? metadata = new byte[metadataSize]; ushort totalSize = checked((ushort)(metadataSize)); metadata[0] = unchecked((byte)totalSize); metadata[1] = unchecked((byte)(totalSize >> 8)); Encoding.UTF8.GetBytes(name, 0, name.Length, metadata, 2); return metadata; } private static void CheckName(string? name) { if (name != null && 0 <= name.IndexOf('\0')) { throw new ArgumentOutOfRangeException(nameof(name)); } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Text; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; namespace Generators { public partial class EventSourceGenerator { private sealed class Emitter { private readonly StringBuilder _builder = new StringBuilder(1024); private readonly GeneratorExecutionContext _context; public Emitter(GeneratorExecutionContext context) => _context = context; public void Emit(EventSourceClass[] eventSources, CancellationToken cancellationToken) { foreach (EventSourceClass? ec in eventSources) { if (cancellationToken.IsCancellationRequested) { // stop any additional work break; } _builder.AppendLine("using System;"); GenType(ec); _context.AddSource($"{ec.ClassName}.g.cs", SourceText.From(_builder.ToString(), Encoding.UTF8)); _builder.Clear(); } } private void GenType(EventSourceClass ec) { if (!string.IsNullOrWhiteSpace(ec.Namespace)) { _builder.AppendLine($@" namespace {ec.Namespace} {{"); } _builder.AppendLine($@" partial class {ec.ClassName} {{"); GenerateConstructor(ec); GenerateProviderMetadata(ec.SourceName); _builder.AppendLine($@" }}"); if (!string.IsNullOrWhiteSpace(ec.Namespace)) { _builder.AppendLine($@" }}"); } } private void GenerateConstructor(EventSourceClass ec) { _builder.AppendLine($@" private {ec.ClassName}() : base(new Guid({ec.Guid.ToString("x").Replace("{", "").Replace("}", "")}), ""{ec.SourceName}"") {{ }}"); } private void GenerateProviderMetadata(string sourceName) { _builder.Append(@" private protected override ReadOnlySpan<byte> ProviderMetadata => new byte[] { "); byte[] metadataBytes = MetadataForString(sourceName); foreach (byte b in metadataBytes) { _builder.Append($"0x{b:x}, "); } _builder.AppendLine(@"};"); } // From System.Private.CoreLib private static byte[] MetadataForString(string name) { CheckName(name); int metadataSize = Encoding.UTF8.GetByteCount(name) + 3; byte[]? metadata = new byte[metadataSize]; ushort totalSize = checked((ushort)(metadataSize)); metadata[0] = unchecked((byte)totalSize); metadata[1] = unchecked((byte)(totalSize >> 8)); Encoding.UTF8.GetBytes(name, 0, name.Length, metadata, 2); return metadata; } private static void CheckName(string? name) { if (name != null && 0 <= name.IndexOf('\0')) { throw new ArgumentOutOfRangeException(nameof(name)); } } } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/Microsoft.Extensions.Configuration.Binder/src/ConfigurationBinder.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; namespace Microsoft.Extensions.Configuration { /// <summary> /// Static helper class that allows binding strongly typed objects to configuration values. /// </summary> public static class ConfigurationBinder { private const BindingFlags DeclaredOnlyLookup = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; private const string TrimmingWarningMessage = "In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed."; private const string InstanceGetTypeTrimmingWarningMessage = "Cannot statically analyze the type of instance so its members may be trimmed"; private const string PropertyTrimmingWarningMessage = "Cannot statically analyze property.PropertyType so its members may be trimmed."; /// <summary> /// Attempts to bind the configuration instance to a new instance of type T. /// If this configuration section has a value, that will be used. /// Otherwise binding by matching property names against configuration keys recursively. /// </summary> /// <typeparam name="T">The type of the new instance to bind.</typeparam> /// <param name="configuration">The configuration instance to bind.</param> /// <returns>The new instance of T if successful, default(T) otherwise.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static T? Get<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration) => configuration.Get<T>(_ => { }); /// <summary> /// Attempts to bind the configuration instance to a new instance of type T. /// If this configuration section has a value, that will be used. /// Otherwise binding by matching property names against configuration keys recursively. /// </summary> /// <typeparam name="T">The type of the new instance to bind.</typeparam> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="configureOptions">Configures the binder options.</param> /// <returns>The new instance of T if successful, default(T) otherwise.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static T? Get<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration!!, Action<BinderOptions>? configureOptions) { object? result = configuration.Get(typeof(T), configureOptions); if (result == null) { return default(T); } return (T)result; } /// <summary> /// Attempts to bind the configuration instance to a new instance of type T. /// If this configuration section has a value, that will be used. /// Otherwise binding by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="type">The type of the new instance to bind.</param> /// <returns>The new instance if successful, null otherwise.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static object? Get(this IConfiguration configuration, Type type) => configuration.Get(type, _ => { }); /// <summary> /// Attempts to bind the configuration instance to a new instance of type T. /// If this configuration section has a value, that will be used. /// Otherwise binding by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="type">The type of the new instance to bind.</param> /// <param name="configureOptions">Configures the binder options.</param> /// <returns>The new instance if successful, null otherwise.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static object? Get( this IConfiguration configuration!!, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, Action<BinderOptions>? configureOptions) { var options = new BinderOptions(); configureOptions?.Invoke(options); return BindInstance(type, instance: null, config: configuration, options: options); } /// <summary> /// Attempts to bind the given object instance to the configuration section specified by the key by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="key">The key of the configuration section to bind.</param> /// <param name="instance">The object to bind.</param> [RequiresUnreferencedCode(InstanceGetTypeTrimmingWarningMessage)] public static void Bind(this IConfiguration configuration, string key, object? instance) => configuration.GetSection(key).Bind(instance); /// <summary> /// Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="instance">The object to bind.</param> [RequiresUnreferencedCode(InstanceGetTypeTrimmingWarningMessage)] public static void Bind(this IConfiguration configuration, object? instance) => configuration.Bind(instance, _ => { }); /// <summary> /// Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="instance">The object to bind.</param> /// <param name="configureOptions">Configures the binder options.</param> [RequiresUnreferencedCode(InstanceGetTypeTrimmingWarningMessage)] public static void Bind(this IConfiguration configuration!!, object? instance, Action<BinderOptions>? configureOptions) { if (instance != null) { var options = new BinderOptions(); configureOptions?.Invoke(options); BindInstance(instance.GetType(), instance, configuration, options); } } /// <summary> /// Extracts the value with the specified key and converts it to type T. /// </summary> /// <typeparam name="T">The type to convert the value to.</typeparam> /// <param name="configuration">The configuration.</param> /// <param name="key">The key of the configuration section's value to convert.</param> /// <returns>The converted value.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static T? GetValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration, string key) { return GetValue(configuration, key, default(T)); } /// <summary> /// Extracts the value with the specified key and converts it to type T. /// </summary> /// <typeparam name="T">The type to convert the value to.</typeparam> /// <param name="configuration">The configuration.</param> /// <param name="key">The key of the configuration section's value to convert.</param> /// <param name="defaultValue">The default value to use if no value is found.</param> /// <returns>The converted value.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static T? GetValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration, string key, T defaultValue) { return (T?)GetValue(configuration, typeof(T), key, defaultValue); } /// <summary> /// Extracts the value with the specified key and converts it to the specified type. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="type">The type to convert the value to.</param> /// <param name="key">The key of the configuration section's value to convert.</param> /// <returns>The converted value.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static object? GetValue( this IConfiguration configuration, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string key) { return GetValue(configuration, type, key, defaultValue: null); } /// <summary> /// Extracts the value with the specified key and converts it to the specified type. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="type">The type to convert the value to.</param> /// <param name="key">The key of the configuration section's value to convert.</param> /// <param name="defaultValue">The default value to use if no value is found.</param> /// <returns>The converted value.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static object? GetValue( this IConfiguration configuration, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string key, object? defaultValue) { IConfigurationSection section = configuration.GetSection(key); string? value = section.Value; if (value != null) { return ConvertValue(type, value, section.Path); } return defaultValue; } [RequiresUnreferencedCode(PropertyTrimmingWarningMessage)] private static void BindNonScalar(this IConfiguration configuration, object? instance, BinderOptions options) { if (instance != null) { List<PropertyInfo> modelProperties = GetAllProperties(instance.GetType()); if (options.ErrorOnUnknownConfiguration) { HashSet<string> propertyNames = new(modelProperties.Select(mp => mp.Name), StringComparer.OrdinalIgnoreCase); IEnumerable<IConfigurationSection> configurationSections = configuration.GetChildren(); List<string> missingPropertyNames = configurationSections .Where(cs => !propertyNames.Contains(cs.Key)) .Select(mp => $"'{mp.Key}'") .ToList(); if (missingPropertyNames.Count > 0) { throw new InvalidOperationException(SR.Format(SR.Error_MissingConfig, nameof(options.ErrorOnUnknownConfiguration), nameof(BinderOptions), instance.GetType(), string.Join(", ", missingPropertyNames))); } } foreach (PropertyInfo property in modelProperties) { BindProperty(property, instance, configuration, options); } } } [RequiresUnreferencedCode(PropertyTrimmingWarningMessage)] private static void BindProperty(PropertyInfo property, object instance, IConfiguration config, BinderOptions options) { // We don't support set only, non public, or indexer properties if (property.GetMethod == null || (!options.BindNonPublicProperties && !property.GetMethod.IsPublic) || property.GetMethod.GetParameters().Length > 0) { return; } object? propertyValue = property.GetValue(instance); bool hasSetter = property.SetMethod != null && (property.SetMethod.IsPublic || options.BindNonPublicProperties); if (propertyValue == null && !hasSetter) { // Property doesn't have a value and we cannot set it so there is no // point in going further down the graph return; } propertyValue = GetPropertyValue(property, instance, config, options); if (propertyValue != null && hasSetter) { property.SetValue(instance, propertyValue); } } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the object collection in type so its members may be trimmed.")] private static object? BindToCollection(Type type, IConfiguration config, BinderOptions options) { Type genericType = typeof(List<>).MakeGenericType(type.GenericTypeArguments[0]); object? instance = Activator.CreateInstance(genericType); BindCollection(instance, genericType, config, options); return instance; } // Try to create an array/dictionary instance to back various collection interfaces [RequiresUnreferencedCode("In case type is a Dictionary, cannot statically analyze what the element type is of the value objects in the dictionary so its members may be trimmed.")] private static object? AttemptBindToCollectionInterfaces( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, IConfiguration config, BinderOptions options) { if (!type.IsInterface) { return null; } Type? collectionInterface = FindOpenGenericInterface(typeof(IReadOnlyList<>), type); if (collectionInterface != null) { // IEnumerable<T> is guaranteed to have exactly one parameter return BindToCollection(type, config, options); } collectionInterface = FindOpenGenericInterface(typeof(IReadOnlyDictionary<,>), type); if (collectionInterface != null) { Type dictionaryType = typeof(Dictionary<,>).MakeGenericType(type.GenericTypeArguments[0], type.GenericTypeArguments[1]); object? instance = Activator.CreateInstance(dictionaryType); BindDictionary(instance, dictionaryType, config, options); return instance; } collectionInterface = FindOpenGenericInterface(typeof(IDictionary<,>), type); if (collectionInterface != null) { object? instance = Activator.CreateInstance(typeof(Dictionary<,>).MakeGenericType(type.GenericTypeArguments[0], type.GenericTypeArguments[1])); BindDictionary(instance, collectionInterface, config, options); return instance; } collectionInterface = FindOpenGenericInterface(typeof(IReadOnlyCollection<>), type); if (collectionInterface != null) { // IReadOnlyCollection<T> is guaranteed to have exactly one parameter return BindToCollection(type, config, options); } collectionInterface = FindOpenGenericInterface(typeof(ICollection<>), type); if (collectionInterface != null) { // ICollection<T> is guaranteed to have exactly one parameter return BindToCollection(type, config, options); } collectionInterface = FindOpenGenericInterface(typeof(IEnumerable<>), type); if (collectionInterface != null) { // IEnumerable<T> is guaranteed to have exactly one parameter return BindToCollection(type, config, options); } return null; } [RequiresUnreferencedCode(TrimmingWarningMessage)] private static object? BindInstance( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, object? instance, IConfiguration config, BinderOptions options) { // if binding IConfigurationSection, break early if (type == typeof(IConfigurationSection)) { return config; } var section = config as IConfigurationSection; string? configValue = section?.Value; if (configValue != null && TryConvertValue(type, configValue, section?.Path, out object? convertedValue, out Exception? error)) { if (error != null) { throw error; } // Leaf nodes are always reinitialized return convertedValue; } if (config != null && config.GetChildren().Any()) { // If we don't have an instance, try to create one if (instance == null) { // We are already done if binding to a new collection instance worked instance = AttemptBindToCollectionInterfaces(type, config, options); if (instance != null) { return instance; } instance = CreateInstance(type); } // See if its a Dictionary Type? collectionInterface = FindOpenGenericInterface(typeof(IDictionary<,>), type); if (collectionInterface != null) { BindDictionary(instance, collectionInterface, config, options); } else if (type.IsArray) { instance = BindArray((Array)instance!, config, options); } else { // See if its an ICollection collectionInterface = FindOpenGenericInterface(typeof(ICollection<>), type); if (collectionInterface != null) { BindCollection(instance, collectionInterface, config, options); } // Something else else { BindNonScalar(config, instance, options); } } } return instance; } private static object? CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type) { if (type.IsInterface || type.IsAbstract) { throw new InvalidOperationException(SR.Format(SR.Error_CannotActivateAbstractOrInterface, type)); } if (type.IsArray) { if (type.GetArrayRank() > 1) { throw new InvalidOperationException(SR.Format(SR.Error_UnsupportedMultidimensionalArray, type)); } return Array.CreateInstance(type.GetElementType()!, 0); } if (!type.IsValueType) { bool hasDefaultConstructor = type.GetConstructors(DeclaredOnlyLookup).Any(ctor => ctor.IsPublic && ctor.GetParameters().Length == 0); if (!hasDefaultConstructor) { throw new InvalidOperationException(SR.Format(SR.Error_MissingParameterlessConstructor, type)); } } try { return Activator.CreateInstance(type); } catch (Exception ex) { throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type), ex); } } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the value objects in the dictionary so its members may be trimmed.")] private static void BindDictionary( object? dictionary, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties)] Type dictionaryType, IConfiguration config, BinderOptions options) { // IDictionary<K,V> is guaranteed to have exactly two parameters Type keyType = dictionaryType.GenericTypeArguments[0]; Type valueType = dictionaryType.GenericTypeArguments[1]; bool keyTypeIsEnum = keyType.IsEnum; if (keyType != typeof(string) && !keyTypeIsEnum) { // We only support string and enum keys return; } MethodInfo tryGetValue = dictionaryType.GetMethod("TryGetValue")!; PropertyInfo setter = dictionaryType.GetProperty("Item", DeclaredOnlyLookup)!; foreach (IConfigurationSection child in config.GetChildren()) { try { object key = keyTypeIsEnum ? Enum.Parse(keyType, child.Key) : child.Key; var args = new object?[] { key, null }; _ = tryGetValue.Invoke(dictionary, args); object? item = BindInstance( type: valueType, instance: args[1], config: child, options: options); if (item != null) { setter.SetValue(dictionary, item, new object[] { key }); } } catch { } } } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the object collection so its members may be trimmed.")] private static void BindCollection( object? collection, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type collectionType, IConfiguration config, BinderOptions options) { // ICollection<T> is guaranteed to have exactly one parameter Type itemType = collectionType.GenericTypeArguments[0]; MethodInfo? addMethod = collectionType.GetMethod("Add", DeclaredOnlyLookup); foreach (IConfigurationSection section in config.GetChildren()) { try { object? item = BindInstance( type: itemType, instance: null, config: section, options: options); if (item != null) { addMethod?.Invoke(collection, new[] { item }); } } catch { } } } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the Array so its members may be trimmed.")] private static Array BindArray(Array source, IConfiguration config, BinderOptions options) { IConfigurationSection[] children = config.GetChildren().ToArray(); int arrayLength = source.Length; Type? elementType = source.GetType().GetElementType()!; var newArray = Array.CreateInstance(elementType, arrayLength + children.Length); // binding to array has to preserve already initialized arrays with values if (arrayLength > 0) { Array.Copy(source, newArray, arrayLength); } for (int i = 0; i < children.Length; i++) { try { object? item = BindInstance( type: elementType, instance: null, config: children[i], options: options); if (item != null) { newArray.SetValue(item, arrayLength + i); } } catch { } } return newArray; } [RequiresUnreferencedCode(TrimmingWarningMessage)] private static bool TryConvertValue( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string value, string? path, out object? result, out Exception? error) { error = null; result = null; if (type == typeof(object)) { result = value; return true; } if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) { if (string.IsNullOrEmpty(value)) { return true; } return TryConvertValue(Nullable.GetUnderlyingType(type)!, value, path, out result, out error); } TypeConverter converter = TypeDescriptor.GetConverter(type); if (converter.CanConvertFrom(typeof(string))) { try { result = converter.ConvertFromInvariantString(value); } catch (Exception ex) { error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, path, type), ex); } return true; } if (type == typeof(byte[])) { try { result = Convert.FromBase64String(value); } catch (FormatException ex) { error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, path, type), ex); } return true; } return false; } [RequiresUnreferencedCode(TrimmingWarningMessage)] private static object? ConvertValue( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string value, string? path) { TryConvertValue(type, value, path, out object? result, out Exception? error); if (error != null) { throw error; } return result; } private static Type? FindOpenGenericInterface( Type expected, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] Type actual) { if (actual.IsGenericType && actual.GetGenericTypeDefinition() == expected) { return actual; } Type[] interfaces = actual.GetInterfaces(); foreach (Type interfaceType in interfaces) { if (interfaceType.IsGenericType && interfaceType.GetGenericTypeDefinition() == expected) { return interfaceType; } } return null; } private static List<PropertyInfo> GetAllProperties( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) { var allProperties = new List<PropertyInfo>(); Type? baseType = type; do { allProperties.AddRange(baseType!.GetProperties(DeclaredOnlyLookup)); baseType = baseType.BaseType; } while (baseType != typeof(object)); return allProperties; } [RequiresUnreferencedCode(PropertyTrimmingWarningMessage)] private static object? GetPropertyValue(PropertyInfo property, object instance, IConfiguration config, BinderOptions options) { string propertyName = GetPropertyName(property); return BindInstance( property.PropertyType, property.GetValue(instance), config.GetSection(propertyName), options); } private static string GetPropertyName(MemberInfo property!!) { // Check for a custom property name used for configuration key binding foreach (var attributeData in property.GetCustomAttributesData()) { if (attributeData.AttributeType != typeof(ConfigurationKeyNameAttribute)) { continue; } // Ensure ConfigurationKeyName constructor signature matches expectations if (attributeData.ConstructorArguments.Count != 1) { break; } // Assumes ConfigurationKeyName constructor first arg is the string key name string? name = attributeData .ConstructorArguments[0] .Value? .ToString(); return !string.IsNullOrWhiteSpace(name) ? name : property.Name; } return property.Name; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; namespace Microsoft.Extensions.Configuration { /// <summary> /// Static helper class that allows binding strongly typed objects to configuration values. /// </summary> public static class ConfigurationBinder { private const BindingFlags DeclaredOnlyLookup = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; private const string TrimmingWarningMessage = "In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed."; private const string InstanceGetTypeTrimmingWarningMessage = "Cannot statically analyze the type of instance so its members may be trimmed"; private const string PropertyTrimmingWarningMessage = "Cannot statically analyze property.PropertyType so its members may be trimmed."; /// <summary> /// Attempts to bind the configuration instance to a new instance of type T. /// If this configuration section has a value, that will be used. /// Otherwise binding by matching property names against configuration keys recursively. /// </summary> /// <typeparam name="T">The type of the new instance to bind.</typeparam> /// <param name="configuration">The configuration instance to bind.</param> /// <returns>The new instance of T if successful, default(T) otherwise.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static T? Get<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration) => configuration.Get<T>(_ => { }); /// <summary> /// Attempts to bind the configuration instance to a new instance of type T. /// If this configuration section has a value, that will be used. /// Otherwise binding by matching property names against configuration keys recursively. /// </summary> /// <typeparam name="T">The type of the new instance to bind.</typeparam> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="configureOptions">Configures the binder options.</param> /// <returns>The new instance of T if successful, default(T) otherwise.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static T? Get<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration!!, Action<BinderOptions>? configureOptions) { object? result = configuration.Get(typeof(T), configureOptions); if (result == null) { return default(T); } return (T)result; } /// <summary> /// Attempts to bind the configuration instance to a new instance of type T. /// If this configuration section has a value, that will be used. /// Otherwise binding by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="type">The type of the new instance to bind.</param> /// <returns>The new instance if successful, null otherwise.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static object? Get(this IConfiguration configuration, Type type) => configuration.Get(type, _ => { }); /// <summary> /// Attempts to bind the configuration instance to a new instance of type T. /// If this configuration section has a value, that will be used. /// Otherwise binding by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="type">The type of the new instance to bind.</param> /// <param name="configureOptions">Configures the binder options.</param> /// <returns>The new instance if successful, null otherwise.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static object? Get( this IConfiguration configuration!!, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, Action<BinderOptions>? configureOptions) { var options = new BinderOptions(); configureOptions?.Invoke(options); return BindInstance(type, instance: null, config: configuration, options: options); } /// <summary> /// Attempts to bind the given object instance to the configuration section specified by the key by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="key">The key of the configuration section to bind.</param> /// <param name="instance">The object to bind.</param> [RequiresUnreferencedCode(InstanceGetTypeTrimmingWarningMessage)] public static void Bind(this IConfiguration configuration, string key, object? instance) => configuration.GetSection(key).Bind(instance); /// <summary> /// Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="instance">The object to bind.</param> [RequiresUnreferencedCode(InstanceGetTypeTrimmingWarningMessage)] public static void Bind(this IConfiguration configuration, object? instance) => configuration.Bind(instance, _ => { }); /// <summary> /// Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively. /// </summary> /// <param name="configuration">The configuration instance to bind.</param> /// <param name="instance">The object to bind.</param> /// <param name="configureOptions">Configures the binder options.</param> [RequiresUnreferencedCode(InstanceGetTypeTrimmingWarningMessage)] public static void Bind(this IConfiguration configuration!!, object? instance, Action<BinderOptions>? configureOptions) { if (instance != null) { var options = new BinderOptions(); configureOptions?.Invoke(options); BindInstance(instance.GetType(), instance, configuration, options); } } /// <summary> /// Extracts the value with the specified key and converts it to type T. /// </summary> /// <typeparam name="T">The type to convert the value to.</typeparam> /// <param name="configuration">The configuration.</param> /// <param name="key">The key of the configuration section's value to convert.</param> /// <returns>The converted value.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static T? GetValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration, string key) { return GetValue(configuration, key, default(T)); } /// <summary> /// Extracts the value with the specified key and converts it to type T. /// </summary> /// <typeparam name="T">The type to convert the value to.</typeparam> /// <param name="configuration">The configuration.</param> /// <param name="key">The key of the configuration section's value to convert.</param> /// <param name="defaultValue">The default value to use if no value is found.</param> /// <returns>The converted value.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static T? GetValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration, string key, T defaultValue) { return (T?)GetValue(configuration, typeof(T), key, defaultValue); } /// <summary> /// Extracts the value with the specified key and converts it to the specified type. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="type">The type to convert the value to.</param> /// <param name="key">The key of the configuration section's value to convert.</param> /// <returns>The converted value.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static object? GetValue( this IConfiguration configuration, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string key) { return GetValue(configuration, type, key, defaultValue: null); } /// <summary> /// Extracts the value with the specified key and converts it to the specified type. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="type">The type to convert the value to.</param> /// <param name="key">The key of the configuration section's value to convert.</param> /// <param name="defaultValue">The default value to use if no value is found.</param> /// <returns>The converted value.</returns> [RequiresUnreferencedCode(TrimmingWarningMessage)] public static object? GetValue( this IConfiguration configuration, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string key, object? defaultValue) { IConfigurationSection section = configuration.GetSection(key); string? value = section.Value; if (value != null) { return ConvertValue(type, value, section.Path); } return defaultValue; } [RequiresUnreferencedCode(PropertyTrimmingWarningMessage)] private static void BindNonScalar(this IConfiguration configuration, object? instance, BinderOptions options) { if (instance != null) { List<PropertyInfo> modelProperties = GetAllProperties(instance.GetType()); if (options.ErrorOnUnknownConfiguration) { HashSet<string> propertyNames = new(modelProperties.Select(mp => mp.Name), StringComparer.OrdinalIgnoreCase); IEnumerable<IConfigurationSection> configurationSections = configuration.GetChildren(); List<string> missingPropertyNames = configurationSections .Where(cs => !propertyNames.Contains(cs.Key)) .Select(mp => $"'{mp.Key}'") .ToList(); if (missingPropertyNames.Count > 0) { throw new InvalidOperationException(SR.Format(SR.Error_MissingConfig, nameof(options.ErrorOnUnknownConfiguration), nameof(BinderOptions), instance.GetType(), string.Join(", ", missingPropertyNames))); } } foreach (PropertyInfo property in modelProperties) { BindProperty(property, instance, configuration, options); } } } [RequiresUnreferencedCode(PropertyTrimmingWarningMessage)] private static void BindProperty(PropertyInfo property, object instance, IConfiguration config, BinderOptions options) { // We don't support set only, non public, or indexer properties if (property.GetMethod == null || (!options.BindNonPublicProperties && !property.GetMethod.IsPublic) || property.GetMethod.GetParameters().Length > 0) { return; } object? propertyValue = property.GetValue(instance); bool hasSetter = property.SetMethod != null && (property.SetMethod.IsPublic || options.BindNonPublicProperties); if (propertyValue == null && !hasSetter) { // Property doesn't have a value and we cannot set it so there is no // point in going further down the graph return; } propertyValue = GetPropertyValue(property, instance, config, options); if (propertyValue != null && hasSetter) { property.SetValue(instance, propertyValue); } } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the object collection in type so its members may be trimmed.")] private static object? BindToCollection(Type type, IConfiguration config, BinderOptions options) { Type genericType = typeof(List<>).MakeGenericType(type.GenericTypeArguments[0]); object? instance = Activator.CreateInstance(genericType); BindCollection(instance, genericType, config, options); return instance; } // Try to create an array/dictionary instance to back various collection interfaces [RequiresUnreferencedCode("In case type is a Dictionary, cannot statically analyze what the element type is of the value objects in the dictionary so its members may be trimmed.")] private static object? AttemptBindToCollectionInterfaces( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, IConfiguration config, BinderOptions options) { if (!type.IsInterface) { return null; } Type? collectionInterface = FindOpenGenericInterface(typeof(IReadOnlyList<>), type); if (collectionInterface != null) { // IEnumerable<T> is guaranteed to have exactly one parameter return BindToCollection(type, config, options); } collectionInterface = FindOpenGenericInterface(typeof(IReadOnlyDictionary<,>), type); if (collectionInterface != null) { Type dictionaryType = typeof(Dictionary<,>).MakeGenericType(type.GenericTypeArguments[0], type.GenericTypeArguments[1]); object? instance = Activator.CreateInstance(dictionaryType); BindDictionary(instance, dictionaryType, config, options); return instance; } collectionInterface = FindOpenGenericInterface(typeof(IDictionary<,>), type); if (collectionInterface != null) { object? instance = Activator.CreateInstance(typeof(Dictionary<,>).MakeGenericType(type.GenericTypeArguments[0], type.GenericTypeArguments[1])); BindDictionary(instance, collectionInterface, config, options); return instance; } collectionInterface = FindOpenGenericInterface(typeof(IReadOnlyCollection<>), type); if (collectionInterface != null) { // IReadOnlyCollection<T> is guaranteed to have exactly one parameter return BindToCollection(type, config, options); } collectionInterface = FindOpenGenericInterface(typeof(ICollection<>), type); if (collectionInterface != null) { // ICollection<T> is guaranteed to have exactly one parameter return BindToCollection(type, config, options); } collectionInterface = FindOpenGenericInterface(typeof(IEnumerable<>), type); if (collectionInterface != null) { // IEnumerable<T> is guaranteed to have exactly one parameter return BindToCollection(type, config, options); } return null; } [RequiresUnreferencedCode(TrimmingWarningMessage)] private static object? BindInstance( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, object? instance, IConfiguration config, BinderOptions options) { // if binding IConfigurationSection, break early if (type == typeof(IConfigurationSection)) { return config; } var section = config as IConfigurationSection; string? configValue = section?.Value; if (configValue != null && TryConvertValue(type, configValue, section?.Path, out object? convertedValue, out Exception? error)) { if (error != null) { throw error; } // Leaf nodes are always reinitialized return convertedValue; } if (config != null && config.GetChildren().Any()) { // If we don't have an instance, try to create one if (instance == null) { // We are already done if binding to a new collection instance worked instance = AttemptBindToCollectionInterfaces(type, config, options); if (instance != null) { return instance; } instance = CreateInstance(type); } // See if its a Dictionary Type? collectionInterface = FindOpenGenericInterface(typeof(IDictionary<,>), type); if (collectionInterface != null) { BindDictionary(instance, collectionInterface, config, options); } else if (type.IsArray) { instance = BindArray((Array)instance!, config, options); } else { // See if its an ICollection collectionInterface = FindOpenGenericInterface(typeof(ICollection<>), type); if (collectionInterface != null) { BindCollection(instance, collectionInterface, config, options); } else { // See if its an IEnumerable collectionInterface = FindOpenGenericInterface(typeof(IEnumerable<>), type); if (collectionInterface != null) { instance = BindExistingCollection((IEnumerable)instance!, config, options); } // Something else else { BindNonScalar(config, instance, options); } } } } return instance; } private static object? CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type) { if (type.IsInterface || type.IsAbstract) { throw new InvalidOperationException(SR.Format(SR.Error_CannotActivateAbstractOrInterface, type)); } if (type.IsArray) { if (type.GetArrayRank() > 1) { throw new InvalidOperationException(SR.Format(SR.Error_UnsupportedMultidimensionalArray, type)); } return Array.CreateInstance(type.GetElementType()!, 0); } if (!type.IsValueType) { bool hasDefaultConstructor = type.GetConstructors(DeclaredOnlyLookup).Any(ctor => ctor.IsPublic && ctor.GetParameters().Length == 0); if (!hasDefaultConstructor) { throw new InvalidOperationException(SR.Format(SR.Error_MissingParameterlessConstructor, type)); } } try { return Activator.CreateInstance(type); } catch (Exception ex) { throw new InvalidOperationException(SR.Format(SR.Error_FailedToActivate, type), ex); } } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the value objects in the dictionary so its members may be trimmed.")] private static void BindDictionary( object? dictionary, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties)] Type dictionaryType, IConfiguration config, BinderOptions options) { // IDictionary<K,V> is guaranteed to have exactly two parameters Type keyType = dictionaryType.GenericTypeArguments[0]; Type valueType = dictionaryType.GenericTypeArguments[1]; bool keyTypeIsEnum = keyType.IsEnum; if (keyType != typeof(string) && !keyTypeIsEnum) { // We only support string and enum keys return; } MethodInfo tryGetValue = dictionaryType.GetMethod("TryGetValue")!; PropertyInfo setter = dictionaryType.GetProperty("Item", DeclaredOnlyLookup)!; foreach (IConfigurationSection child in config.GetChildren()) { try { object key = keyTypeIsEnum ? Enum.Parse(keyType, child.Key) : child.Key; var args = new object?[] { key, null }; _ = tryGetValue.Invoke(dictionary, args); object? item = BindInstance( type: valueType, instance: args[1], config: child, options: options); if (item != null) { setter.SetValue(dictionary, item, new object[] { key }); } } catch { } } } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the object collection so its members may be trimmed.")] private static void BindCollection( object? collection, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type collectionType, IConfiguration config, BinderOptions options) { // ICollection<T> is guaranteed to have exactly one parameter Type itemType = collectionType.GenericTypeArguments[0]; MethodInfo? addMethod = collectionType.GetMethod("Add", DeclaredOnlyLookup); foreach (IConfigurationSection section in config.GetChildren()) { try { object? item = BindInstance( type: itemType, instance: null, config: section, options: options); if (item != null) { addMethod?.Invoke(collection, new[] { item }); } } catch { } } } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the object collection so its members may be trimmed.")] private static IEnumerable BindExistingCollection(IEnumerable source, IConfiguration config, BinderOptions options) { // find the interface that is IEnumerable<T> Type type = source.GetType().GetInterface("IEnumerable`1", false)!; Type elementType = type.GenericTypeArguments[0]; Type genericType = typeof(List<>).MakeGenericType(elementType); IList newList = (IList)Activator.CreateInstance(genericType, source)!; IConfigurationSection[] children = config.GetChildren().ToArray(); for (int i = 0; i < children.Length; i++) { try { object? item = BindInstance( type: elementType, instance: null, config: children[i], options: options); if (item != null) { newList.Add(item); } } catch { } } return newList; } [RequiresUnreferencedCode("Cannot statically analyze what the element type is of the Array so its members may be trimmed.")] private static Array BindArray(Array source, IConfiguration config, BinderOptions options) { IConfigurationSection[] children = config.GetChildren().ToArray(); int arrayLength = source.Length; Type? elementType = source.GetType().GetElementType()!; var newArray = Array.CreateInstance(elementType, arrayLength + children.Length); // binding to array has to preserve already initialized arrays with values if (arrayLength > 0) { Array.Copy(source, newArray, arrayLength); } for (int i = 0; i < children.Length; i++) { try { object? item = BindInstance( type: elementType, instance: null, config: children[i], options: options); if (item != null) { newArray.SetValue(item, arrayLength + i); } } catch { } } return newArray; } [RequiresUnreferencedCode(TrimmingWarningMessage)] private static bool TryConvertValue( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string value, string? path, out object? result, out Exception? error) { error = null; result = null; if (type == typeof(object)) { result = value; return true; } if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>)) { if (string.IsNullOrEmpty(value)) { return true; } return TryConvertValue(Nullable.GetUnderlyingType(type)!, value, path, out result, out error); } TypeConverter converter = TypeDescriptor.GetConverter(type); if (converter.CanConvertFrom(typeof(string))) { try { result = converter.ConvertFromInvariantString(value); } catch (Exception ex) { error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, path, type), ex); } return true; } if (type == typeof(byte[])) { try { result = Convert.FromBase64String(value); } catch (FormatException ex) { error = new InvalidOperationException(SR.Format(SR.Error_FailedBinding, path, type), ex); } return true; } return false; } [RequiresUnreferencedCode(TrimmingWarningMessage)] private static object? ConvertValue( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, string value, string? path) { TryConvertValue(type, value, path, out object? result, out Exception? error); if (error != null) { throw error; } return result; } private static Type? FindOpenGenericInterface( Type expected, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.Interfaces)] Type actual) { if (actual.IsGenericType && actual.GetGenericTypeDefinition() == expected) { return actual; } Type[] interfaces = actual.GetInterfaces(); foreach (Type interfaceType in interfaces) { if (interfaceType.IsGenericType && interfaceType.GetGenericTypeDefinition() == expected) { return interfaceType; } } return null; } private static List<PropertyInfo> GetAllProperties( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) { var allProperties = new List<PropertyInfo>(); Type? baseType = type; do { allProperties.AddRange(baseType!.GetProperties(DeclaredOnlyLookup)); baseType = baseType.BaseType; } while (baseType != typeof(object)); return allProperties; } [RequiresUnreferencedCode(PropertyTrimmingWarningMessage)] private static object? GetPropertyValue(PropertyInfo property, object instance, IConfiguration config, BinderOptions options) { string propertyName = GetPropertyName(property); return BindInstance( property.PropertyType, property.GetValue(instance), config.GetSection(propertyName), options); } private static string GetPropertyName(MemberInfo property!!) { // Check for a custom property name used for configuration key binding foreach (var attributeData in property.GetCustomAttributesData()) { if (attributeData.AttributeType != typeof(ConfigurationKeyNameAttribute)) { continue; } // Ensure ConfigurationKeyName constructor signature matches expectations if (attributeData.ConstructorArguments.Count != 1) { break; } // Assumes ConfigurationKeyName constructor first arg is the string key name string? name = attributeData .ConstructorArguments[0] .Value? .ToString(); return !string.IsNullOrWhiteSpace(name) ? name : property.Name; } return property.Name; } } }
1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/Microsoft.Extensions.Configuration.Binder/tests/ConfigurationBinderTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; using Xunit; namespace Microsoft.Extensions.Configuration.Binder.Test { public class ConfigurationBinderTests { public class ComplexOptions { public ComplexOptions() { Nested = new NestedOptions(); Virtual = "complex"; } public NestedOptions Nested { get; set; } public int Integer { get; set; } public bool Boolean { get; set; } public virtual string Virtual { get; set; } public object Object { get; set; } public string PrivateSetter { get; private set; } public string ProtectedSetter { get; protected set; } public string InternalSetter { get; internal set; } public static string StaticProperty { get; set; } private string PrivateProperty { get; set; } internal string InternalProperty { get; set; } protected string ProtectedProperty { get; set; } [ConfigurationKeyName("Named_Property")] public string NamedProperty { get; set; } protected string ProtectedPrivateSet { get; private set; } private string PrivateReadOnly { get; } internal string InternalReadOnly { get; } protected string ProtectedReadOnly { get; } public string ReadOnly { get { return null; } } } public class NestedOptions { public int Integer { get; set; } } public class DerivedOptions : ComplexOptions { public override string Virtual { get { return base.Virtual; } set { base.Virtual = "Derived:" + value; } } } public class NullableOptions { public bool? MyNullableBool { get; set; } public int? MyNullableInt { get; set; } public DateTime? MyNullableDateTime { get; set; } } public class EnumOptions { public UriKind UriKind { get; set; } } public class GenericOptions<T> { public T Value { get; set; } } public class OptionsWithNesting { public NestedOptions Nested { get; set; } public class NestedOptions { public int Value { get; set; } } } public class ConfigurationInterfaceOptions { public IConfigurationSection Section { get; set; } } public class DerivedOptionsWithIConfigurationSection : DerivedOptions { public IConfigurationSection DerivedSection { get; set; } } public struct ValueTypeOptions { public int MyInt32 { get; set; } public string MyString { get; set; } } public class ByteArrayOptions { public byte[] MyByteArray { get; set; } } [Fact] public void CanBindIConfigurationSection() { var dic = new Dictionary<string, string> { {"Section:Integer", "-2"}, {"Section:Boolean", "TRUe"}, {"Section:Nested:Integer", "11"}, {"Section:Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ConfigurationInterfaceOptions>(); var childOptions = options.Section.Get<DerivedOptions>(); Assert.True(childOptions.Boolean); Assert.Equal(-2, childOptions.Integer); Assert.Equal(11, childOptions.Nested.Integer); Assert.Equal("Derived:Sup", childOptions.Virtual); Assert.Equal("Section", options.Section.Key); Assert.Equal("Section", options.Section.Path); Assert.Null(options.Section.Value); } [Fact] public void CanBindWithKeyOverload() { var dic = new Dictionary<string, string> { {"Section:Integer", "-2"}, {"Section:Boolean", "TRUe"}, {"Section:Nested:Integer", "11"}, {"Section:Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new DerivedOptions(); config.Bind("Section", options); Assert.True(options.Boolean); Assert.Equal(-2, options.Integer); Assert.Equal(11, options.Nested.Integer); Assert.Equal("Derived:Sup", options.Virtual); } [Fact] public void CanBindIConfigurationSectionWithDerivedOptionsSection() { var dic = new Dictionary<string, string> { {"Section:Integer", "-2"}, {"Section:Boolean", "TRUe"}, {"Section:Nested:Integer", "11"}, {"Section:Virtual", "Sup"}, {"Section:DerivedSection:Nested:Integer", "11"}, {"Section:DerivedSection:Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ConfigurationInterfaceOptions>(); var childOptions = options.Section.Get<DerivedOptionsWithIConfigurationSection>(); var childDerivedOptions = childOptions.DerivedSection.Get<DerivedOptions>(); Assert.True(childOptions.Boolean); Assert.Equal(-2, childOptions.Integer); Assert.Equal(11, childOptions.Nested.Integer); Assert.Equal("Derived:Sup", childOptions.Virtual); Assert.Equal(11, childDerivedOptions.Nested.Integer); Assert.Equal("Derived:Sup", childDerivedOptions.Virtual); Assert.Equal("Section", options.Section.Key); Assert.Equal("Section", options.Section.Path); Assert.Equal("DerivedSection", childOptions.DerivedSection.Key); Assert.Equal("Section:DerivedSection", childOptions.DerivedSection.Path); Assert.Null(options.Section.Value); } [Fact] public void CanBindConfigurationKeyNameAttributes() { var dic = new Dictionary<string, string> { {"Named_Property", "Yo"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>(); Assert.Equal("Yo", options.NamedProperty); } [Fact] public void EmptyStringIsNullable() { var dic = new Dictionary<string, string> { {"empty", ""}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); Assert.Null(config.GetValue<bool?>("empty")); Assert.Null(config.GetValue<int?>("empty")); } [Fact] public void GetScalarNullable() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); Assert.True(config.GetValue<bool?>("Boolean")); Assert.Equal(-2, config.GetValue<int?>("Integer")); Assert.Equal(11, config.GetValue<int?>("Nested:Integer")); } [Fact] public void CanBindToObjectProperty() { var dic = new Dictionary<string, string> { {"Object", "whatever" } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options); Assert.Equal("whatever", options.Object); } [Fact] public void GetNullValue() { var dic = new Dictionary<string, string> { {"Integer", null}, {"Boolean", null}, {"Nested:Integer", null}, {"Object", null } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); Assert.False(config.GetValue<bool>("Boolean")); Assert.Equal(0, config.GetValue<int>("Integer")); Assert.Equal(0, config.GetValue<int>("Nested:Integer")); Assert.Null(config.GetValue<ComplexOptions>("Object")); Assert.False(config.GetSection("Boolean").Get<bool>()); Assert.Equal(0, config.GetSection("Integer").Get<int>()); Assert.Equal(0, config.GetSection("Nested:Integer").Get<int>()); Assert.Null(config.GetSection("Object").Get<ComplexOptions>()); } [Fact] public void ThrowsIfPropertyInConfigMissingInModel() { var dic = new Dictionary<string, string> { {"ThisDoesNotExistInTheModel", "42"}, {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new ComplexOptions(); var ex = Assert.Throws<InvalidOperationException>( () => config.Bind(instance, o => o.ErrorOnUnknownConfiguration = true)); string expectedMessage = SR.Format(SR.Error_MissingConfig, nameof(BinderOptions.ErrorOnUnknownConfiguration), nameof(BinderOptions), typeof(ComplexOptions), "'ThisDoesNotExistInTheModel'"); Assert.Equal(expectedMessage, ex.Message); } [Fact] public void ThrowsIfPropertyInConfigMissingInNestedModel() { var dic = new Dictionary<string, string> { {"Nested:ThisDoesNotExistInTheModel", "42"}, {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new ComplexOptions(); string expectedMessage = SR.Format(SR.Error_MissingConfig, nameof(BinderOptions.ErrorOnUnknownConfiguration), nameof(BinderOptions), typeof(NestedOptions), "'ThisDoesNotExistInTheModel'"); var ex = Assert.Throws<InvalidOperationException>( () => config.Bind(instance, o => o.ErrorOnUnknownConfiguration = true)); Assert.Equal(expectedMessage, ex.Message); } [Fact] public void GetDefaultsWhenDataDoesNotExist() { var dic = new Dictionary<string, string> { }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); Assert.False(config.GetValue<bool>("Boolean")); Assert.Equal(0, config.GetValue<int>("Integer")); Assert.Equal(0, config.GetValue<int>("Nested:Integer")); Assert.Null(config.GetValue<ComplexOptions>("Object")); Assert.True(config.GetValue("Boolean", true)); Assert.Equal(3, config.GetValue("Integer", 3)); Assert.Equal(1, config.GetValue("Nested:Integer", 1)); var foo = new ComplexOptions(); Assert.Same(config.GetValue("Object", foo), foo); } [Fact] public void GetUri() { var dic = new Dictionary<string, string> { {"AnUri", "http://www.bing.com"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var uri = config.GetValue<Uri>("AnUri"); Assert.Equal("http://www.bing.com", uri.OriginalString); } [Theory] [InlineData("2147483647", typeof(int))] [InlineData("4294967295", typeof(uint))] [InlineData("32767", typeof(short))] [InlineData("65535", typeof(ushort))] [InlineData("-9223372036854775808", typeof(long))] [InlineData("18446744073709551615", typeof(ulong))] [InlineData("trUE", typeof(bool))] [InlineData("255", typeof(byte))] [InlineData("127", typeof(sbyte))] [InlineData("\uffff", typeof(char))] [InlineData("79228162514264337593543950335", typeof(decimal))] [InlineData("1.79769e+308", typeof(double))] [InlineData("3.40282347E+38", typeof(float))] [InlineData("2015-12-24T07:34:42-5:00", typeof(DateTime))] [InlineData("12/24/2015 13:44:55 +4", typeof(DateTimeOffset))] [InlineData("99.22:22:22.1234567", typeof(TimeSpan))] [InlineData("http://www.bing.com", typeof(Uri))] // enum test [InlineData("Constructor", typeof(AttributeTargets))] [InlineData("CA761232-ED42-11CE-BACD-00AA0057B223", typeof(Guid))] [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void CanReadAllSupportedTypes(string value, Type type) { // arrange var dic = new Dictionary<string, string> { {"Value", value} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var optionsType = typeof(GenericOptions<>).MakeGenericType(type); var options = Activator.CreateInstance(optionsType); var expectedValue = TypeDescriptor.GetConverter(type).ConvertFromInvariantString(value); // act config.Bind(options); var optionsValue = options.GetType().GetProperty("Value").GetValue(options); var getValueValue = config.GetValue(type, "Value"); var getValue = config.GetSection("Value").Get(type); // assert Assert.Equal(expectedValue, optionsValue); Assert.Equal(expectedValue, getValue); Assert.Equal(expectedValue, getValueValue); } [Theory] [InlineData(typeof(int))] [InlineData(typeof(uint))] [InlineData(typeof(short))] [InlineData(typeof(ushort))] [InlineData(typeof(long))] [InlineData(typeof(ulong))] [InlineData(typeof(bool))] [InlineData(typeof(byte))] [InlineData(typeof(sbyte))] [InlineData(typeof(char))] [InlineData(typeof(decimal))] [InlineData(typeof(double))] [InlineData(typeof(float))] [InlineData(typeof(DateTime))] [InlineData(typeof(DateTimeOffset))] [InlineData(typeof(TimeSpan))] [InlineData(typeof(AttributeTargets))] [InlineData(typeof(Guid))] [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void ConsistentExceptionOnFailedBinding(Type type) { // arrange const string IncorrectValue = "Invalid data"; const string ConfigKey = "Value"; var dic = new Dictionary<string, string> { {ConfigKey, IncorrectValue} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var optionsType = typeof(GenericOptions<>).MakeGenericType(type); var options = Activator.CreateInstance(optionsType); // act var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(options)); var getValueException = Assert.Throws<InvalidOperationException>( () => config.GetValue(type, "Value")); var getException = Assert.Throws<InvalidOperationException>( () => config.GetSection("Value").Get(type)); // assert Assert.NotNull(exception.InnerException); Assert.NotNull(getException.InnerException); Assert.Equal( SR.Format(SR.Error_FailedBinding, ConfigKey, type), exception.Message); Assert.Equal( SR.Format(SR.Error_FailedBinding, ConfigKey, type), getException.Message); Assert.Equal( SR.Format(SR.Error_FailedBinding, ConfigKey, type), getValueException.Message); } [Fact] public void ExceptionOnFailedBindingIncludesPath() { const string IncorrectValue = "Invalid data"; const string ConfigKey = "Nested:Value"; var dic = new Dictionary<string, string> { {ConfigKey, IncorrectValue} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new OptionsWithNesting(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(options)); Assert.Equal(SR.Format(SR.Error_FailedBinding, ConfigKey, typeof(int)), exception.Message); } [Fact] public void BinderIgnoresIndexerProperties() { var configurationBuilder = new ConfigurationBuilder(); var config = configurationBuilder.Build(); config.Bind(new List<string>()); } [Fact] public void BindCanReadComplexProperties() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new ComplexOptions(); config.Bind(instance); Assert.True(instance.Boolean); Assert.Equal(-2, instance.Integer); Assert.Equal(11, instance.Nested.Integer); } [Fact] public void GetCanReadComplexProperties() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options); Assert.True(options.Boolean); Assert.Equal(-2, options.Integer); Assert.Equal(11, options.Nested.Integer); } [Fact] public void BindCanReadInheritedProperties() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"}, {"Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new DerivedOptions(); config.Bind(instance); Assert.True(instance.Boolean); Assert.Equal(-2, instance.Integer); Assert.Equal(11, instance.Nested.Integer); Assert.Equal("Derived:Sup", instance.Virtual); } [Fact] public void GetCanReadInheritedProperties() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"}, {"Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new DerivedOptions(); config.Bind(options); Assert.True(options.Boolean); Assert.Equal(-2, options.Integer); Assert.Equal(11, options.Nested.Integer); Assert.Equal("Derived:Sup", options.Virtual); } [Fact] public void GetCanReadStaticProperty() { var dic = new Dictionary<string, string> { {"StaticProperty", "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options); Assert.Equal("stuff", ComplexOptions.StaticProperty); } [Fact] public void BindCanReadStaticProperty() { var dic = new Dictionary<string, string> { {"StaticProperty", "other stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new ComplexOptions(); config.Bind(instance); Assert.Equal("other stuff", ComplexOptions.StaticProperty); } [Fact] public void CanGetComplexOptionsWhichHasAlsoHasValue() { var dic = new Dictionary<string, string> { {"obj", "whut" }, {"obj:Integer", "-2"}, {"obj:Boolean", "TRUe"}, {"obj:Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.GetSection("obj").Get<ComplexOptions>(); Assert.NotNull(options); Assert.True(options.Boolean); Assert.Equal(-2, options.Integer); Assert.Equal(11, options.Nested.Integer); } [Theory] [InlineData("ReadOnly")] [InlineData("PrivateSetter")] [InlineData("ProtectedSetter")] [InlineData("InternalSetter")] [InlineData("InternalProperty")] [InlineData("PrivateProperty")] [InlineData("ProtectedProperty")] [InlineData("ProtectedPrivateSet")] public void GetIgnoresTests(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>(); Assert.Null(options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("PrivateSetter")] [InlineData("ProtectedSetter")] [InlineData("InternalSetter")] [InlineData("InternalProperty")] [InlineData("PrivateProperty")] [InlineData("ProtectedProperty")] [InlineData("ProtectedPrivateSet")] public void GetCanSetNonPublicWhenSet(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>(o => o.BindNonPublicProperties = true); Assert.Equal("stuff", options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("InternalReadOnly")] [InlineData("PrivateReadOnly")] [InlineData("ProtectedReadOnly")] public void NonPublicModeGetStillIgnoresReadonly(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>(o => o.BindNonPublicProperties = true); Assert.Null(options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("ReadOnly")] [InlineData("PrivateSetter")] [InlineData("ProtectedSetter")] [InlineData("InternalSetter")] [InlineData("InternalProperty")] [InlineData("PrivateProperty")] [InlineData("ProtectedProperty")] [InlineData("ProtectedPrivateSet")] public void BindIgnoresTests(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options); Assert.Null(options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("PrivateSetter")] [InlineData("ProtectedSetter")] [InlineData("InternalSetter")] [InlineData("InternalProperty")] [InlineData("PrivateProperty")] [InlineData("ProtectedProperty")] [InlineData("ProtectedPrivateSet")] public void BindCanSetNonPublicWhenSet(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options, o => o.BindNonPublicProperties = true ); Assert.Equal("stuff", options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("InternalReadOnly")] [InlineData("PrivateReadOnly")] [InlineData("ProtectedReadOnly")] public void NonPublicModeBindStillIgnoresReadonly(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options, o => o.BindNonPublicProperties = true); Assert.Null(options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Fact] public void ExceptionWhenTryingToBindToInterface() { var input = new Dictionary<string, string> { {"ISomeInterfaceProperty:Subkey", "x"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(new TestOptions())); Assert.Equal( SR.Format(SR.Error_CannotActivateAbstractOrInterface, typeof(ISomeInterface)), exception.Message); } [Fact] public void ExceptionWhenTryingToBindClassWithoutParameterlessConstructor() { var input = new Dictionary<string, string> { {"ClassWithoutPublicConstructorProperty:Subkey", "x"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(new TestOptions())); Assert.Equal( SR.Format(SR.Error_MissingParameterlessConstructor, typeof(ClassWithoutPublicConstructor)), exception.Message); } [Fact] public void ExceptionWhenTryingToBindToTypeThrowsWhenActivated() { var input = new Dictionary<string, string> { {"ThrowsWhenActivatedProperty:subkey", "x"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(new TestOptions())); Assert.NotNull(exception.InnerException); Assert.Equal( SR.Format(SR.Error_FailedToActivate, typeof(ThrowsWhenActivated)), exception.Message); } [Fact] public void ExceptionIncludesKeyOfFailedBinding() { var input = new Dictionary<string, string> { {"NestedOptionsProperty:NestedOptions2Property:ISomeInterfaceProperty:subkey", "x"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(new TestOptions())); Assert.Equal( SR.Format(SR.Error_CannotActivateAbstractOrInterface, typeof(ISomeInterface)), exception.Message); } [Fact] public void CanBindValueTypeOptions() { var dic = new Dictionary<string, string> { {"MyInt32", "42"}, {"MyString", "hello world"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ValueTypeOptions>(); Assert.Equal(42, options.MyInt32); Assert.Equal("hello world", options.MyString); } [Fact] public void CanBindByteArray() { var bytes = new byte[] { 1, 2, 3, 4 }; var dic = new Dictionary<string, string> { { "MyByteArray", Convert.ToBase64String(bytes) } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ByteArrayOptions>(); Assert.Equal(bytes, options.MyByteArray); } [Fact] public void CanBindByteArrayWhenValueIsNull() { var dic = new Dictionary<string, string> { { "MyByteArray", null } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ByteArrayOptions>(); Assert.Null(options.MyByteArray); } [Fact] public void ExceptionWhenTryingToBindToByteArray() { var dic = new Dictionary<string, string> { { "MyByteArray", "(not a valid base64 string)" } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Get<ByteArrayOptions>()); Assert.Equal( SR.Format(SR.Error_FailedBinding, "MyByteArray", typeof(byte[])), exception.Message); } private interface ISomeInterface { } private class ClassWithoutPublicConstructor { private ClassWithoutPublicConstructor() { } } private class ThrowsWhenActivated { public ThrowsWhenActivated() { throw new Exception(); } } private class NestedOptions1 { public NestedOptions2 NestedOptions2Property { get; set; } } private class NestedOptions2 { public ISomeInterface ISomeInterfaceProperty { get; set; } } private class TestOptions { public ISomeInterface ISomeInterfaceProperty { get; set; } public ClassWithoutPublicConstructor ClassWithoutPublicConstructorProperty { get; set; } public int IntProperty { get; set; } public ThrowsWhenActivated ThrowsWhenActivatedProperty { get; set; } public NestedOptions1 NestedOptionsProperty { get; set; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using Xunit; namespace Microsoft.Extensions.Configuration.Binder.Test { public class ConfigurationBinderTests { public class ComplexOptions { public ComplexOptions() { Nested = new NestedOptions(); Virtual = "complex"; } public NestedOptions Nested { get; set; } public int Integer { get; set; } public bool Boolean { get; set; } public virtual string Virtual { get; set; } public object Object { get; set; } public string PrivateSetter { get; private set; } public string ProtectedSetter { get; protected set; } public string InternalSetter { get; internal set; } public static string StaticProperty { get; set; } private string PrivateProperty { get; set; } internal string InternalProperty { get; set; } protected string ProtectedProperty { get; set; } [ConfigurationKeyName("Named_Property")] public string NamedProperty { get; set; } protected string ProtectedPrivateSet { get; private set; } private string PrivateReadOnly { get; } internal string InternalReadOnly { get; } protected string ProtectedReadOnly { get; } public string ReadOnly { get { return null; } } public IEnumerable<string> NonInstantiatedIEnumerable { get; set; } = null!; public IEnumerable<string> InstantiatedIEnumerable { get; set; } = new List<string>(); public ICollection<string> InstantiatedICollection { get; set; } = new List<string>(); public IReadOnlyCollection<string> InstantiatedIReadOnlyCollection { get; set; } = new List<string>(); } public class NestedOptions { public int Integer { get; set; } } public class DerivedOptions : ComplexOptions { public override string Virtual { get { return base.Virtual; } set { base.Virtual = "Derived:" + value; } } } public class NullableOptions { public bool? MyNullableBool { get; set; } public int? MyNullableInt { get; set; } public DateTime? MyNullableDateTime { get; set; } } public class EnumOptions { public UriKind UriKind { get; set; } } public class GenericOptions<T> { public T Value { get; set; } } public class OptionsWithNesting { public NestedOptions Nested { get; set; } public class NestedOptions { public int Value { get; set; } } } public class ConfigurationInterfaceOptions { public IConfigurationSection Section { get; set; } } public class DerivedOptionsWithIConfigurationSection : DerivedOptions { public IConfigurationSection DerivedSection { get; set; } } public struct ValueTypeOptions { public int MyInt32 { get; set; } public string MyString { get; set; } } public class ByteArrayOptions { public byte[] MyByteArray { get; set; } } [Fact] public void CanBindIConfigurationSection() { var dic = new Dictionary<string, string> { {"Section:Integer", "-2"}, {"Section:Boolean", "TRUe"}, {"Section:Nested:Integer", "11"}, {"Section:Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ConfigurationInterfaceOptions>(); var childOptions = options.Section.Get<DerivedOptions>(); Assert.True(childOptions.Boolean); Assert.Equal(-2, childOptions.Integer); Assert.Equal(11, childOptions.Nested.Integer); Assert.Equal("Derived:Sup", childOptions.Virtual); Assert.Equal("Section", options.Section.Key); Assert.Equal("Section", options.Section.Path); Assert.Null(options.Section.Value); } [Fact] public void CanBindWithKeyOverload() { var dic = new Dictionary<string, string> { {"Section:Integer", "-2"}, {"Section:Boolean", "TRUe"}, {"Section:Nested:Integer", "11"}, {"Section:Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new DerivedOptions(); config.Bind("Section", options); Assert.True(options.Boolean); Assert.Equal(-2, options.Integer); Assert.Equal(11, options.Nested.Integer); Assert.Equal("Derived:Sup", options.Virtual); } [Fact] public void CanBindIConfigurationSectionWithDerivedOptionsSection() { var dic = new Dictionary<string, string> { {"Section:Integer", "-2"}, {"Section:Boolean", "TRUe"}, {"Section:Nested:Integer", "11"}, {"Section:Virtual", "Sup"}, {"Section:DerivedSection:Nested:Integer", "11"}, {"Section:DerivedSection:Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ConfigurationInterfaceOptions>(); var childOptions = options.Section.Get<DerivedOptionsWithIConfigurationSection>(); var childDerivedOptions = childOptions.DerivedSection.Get<DerivedOptions>(); Assert.True(childOptions.Boolean); Assert.Equal(-2, childOptions.Integer); Assert.Equal(11, childOptions.Nested.Integer); Assert.Equal("Derived:Sup", childOptions.Virtual); Assert.Equal(11, childDerivedOptions.Nested.Integer); Assert.Equal("Derived:Sup", childDerivedOptions.Virtual); Assert.Equal("Section", options.Section.Key); Assert.Equal("Section", options.Section.Path); Assert.Equal("DerivedSection", childOptions.DerivedSection.Key); Assert.Equal("Section:DerivedSection", childOptions.DerivedSection.Path); Assert.Null(options.Section.Value); } [Fact] public void CanBindConfigurationKeyNameAttributes() { var dic = new Dictionary<string, string> { {"Named_Property", "Yo"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>(); Assert.Equal("Yo", options.NamedProperty); } [Fact] public void CanBindNonInstantiatedIEnumerableWithItems() { var dic = new Dictionary<string, string> { {"NonInstantiatedIEnumerable:0", "Yo1"}, {"NonInstantiatedIEnumerable:1", "Yo2"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>()!; Assert.Equal(2, options.NonInstantiatedIEnumerable.Count()); Assert.Equal("Yo1", options.NonInstantiatedIEnumerable.ElementAt(0)); Assert.Equal("Yo2", options.NonInstantiatedIEnumerable.ElementAt(1)); } [Fact] public void CanBindInstantiatedIEnumerableWithItems() { var dic = new Dictionary<string, string> { {"InstantiatedIEnumerable:0", "Yo1"}, {"InstantiatedIEnumerable:1", "Yo2"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>()!; Assert.Equal(2, options.InstantiatedIEnumerable.Count()); Assert.Equal("Yo1", options.InstantiatedIEnumerable.ElementAt(0)); Assert.Equal("Yo2", options.InstantiatedIEnumerable.ElementAt(1)); } [Fact] public void CanBindInstantiatedICollectionWithItems() { var dic = new Dictionary<string, string> { {"InstantiatedICollection:0", "Yo1"}, {"InstantiatedICollection:1", "Yo2"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>()!; Assert.Equal(2, options.InstantiatedICollection.Count()); Assert.Equal("Yo1", options.InstantiatedICollection.ElementAt(0)); Assert.Equal("Yo2", options.InstantiatedICollection.ElementAt(1)); } [Fact] public void CanBindInstantiatedIReadOnlyCollectionWithItems() { var dic = new Dictionary<string, string> { {"InstantiatedIReadOnlyCollection:0", "Yo1"}, {"InstantiatedIReadOnlyCollection:1", "Yo2"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>()!; Assert.Equal(2, options.InstantiatedIReadOnlyCollection.Count); Assert.Equal("Yo1", options.InstantiatedIReadOnlyCollection.ElementAt(0)); Assert.Equal("Yo2", options.InstantiatedIReadOnlyCollection.ElementAt(1)); } [Fact] public void CanBindInstantiatedIEnumerableWithNullItems() { var dic = new Dictionary<string, string> { {"InstantiatedIEnumerable:0", null}, {"InstantiatedIEnumerable:1", "Yo1"}, {"InstantiatedIEnumerable:2", "Yo2"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>()!; Assert.Equal(2, options.InstantiatedIEnumerable.Count()); Assert.Equal("Yo1", options.InstantiatedIEnumerable.ElementAt(0)); Assert.Equal("Yo2", options.InstantiatedIEnumerable.ElementAt(1)); } [Fact] public void EmptyStringIsNullable() { var dic = new Dictionary<string, string> { {"empty", ""}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); Assert.Null(config.GetValue<bool?>("empty")); Assert.Null(config.GetValue<int?>("empty")); } [Fact] public void GetScalarNullable() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); Assert.True(config.GetValue<bool?>("Boolean")); Assert.Equal(-2, config.GetValue<int?>("Integer")); Assert.Equal(11, config.GetValue<int?>("Nested:Integer")); } [Fact] public void CanBindToObjectProperty() { var dic = new Dictionary<string, string> { {"Object", "whatever" } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options); Assert.Equal("whatever", options.Object); } [Fact] public void GetNullValue() { var dic = new Dictionary<string, string> { {"Integer", null}, {"Boolean", null}, {"Nested:Integer", null}, {"Object", null } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); Assert.False(config.GetValue<bool>("Boolean")); Assert.Equal(0, config.GetValue<int>("Integer")); Assert.Equal(0, config.GetValue<int>("Nested:Integer")); Assert.Null(config.GetValue<ComplexOptions>("Object")); Assert.False(config.GetSection("Boolean").Get<bool>()); Assert.Equal(0, config.GetSection("Integer").Get<int>()); Assert.Equal(0, config.GetSection("Nested:Integer").Get<int>()); Assert.Null(config.GetSection("Object").Get<ComplexOptions>()); } [Fact] public void ThrowsIfPropertyInConfigMissingInModel() { var dic = new Dictionary<string, string> { {"ThisDoesNotExistInTheModel", "42"}, {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new ComplexOptions(); var ex = Assert.Throws<InvalidOperationException>( () => config.Bind(instance, o => o.ErrorOnUnknownConfiguration = true)); string expectedMessage = SR.Format(SR.Error_MissingConfig, nameof(BinderOptions.ErrorOnUnknownConfiguration), nameof(BinderOptions), typeof(ComplexOptions), "'ThisDoesNotExistInTheModel'"); Assert.Equal(expectedMessage, ex.Message); } [Fact] public void ThrowsIfPropertyInConfigMissingInNestedModel() { var dic = new Dictionary<string, string> { {"Nested:ThisDoesNotExistInTheModel", "42"}, {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new ComplexOptions(); string expectedMessage = SR.Format(SR.Error_MissingConfig, nameof(BinderOptions.ErrorOnUnknownConfiguration), nameof(BinderOptions), typeof(NestedOptions), "'ThisDoesNotExistInTheModel'"); var ex = Assert.Throws<InvalidOperationException>( () => config.Bind(instance, o => o.ErrorOnUnknownConfiguration = true)); Assert.Equal(expectedMessage, ex.Message); } [Fact] public void GetDefaultsWhenDataDoesNotExist() { var dic = new Dictionary<string, string> { }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); Assert.False(config.GetValue<bool>("Boolean")); Assert.Equal(0, config.GetValue<int>("Integer")); Assert.Equal(0, config.GetValue<int>("Nested:Integer")); Assert.Null(config.GetValue<ComplexOptions>("Object")); Assert.True(config.GetValue("Boolean", true)); Assert.Equal(3, config.GetValue("Integer", 3)); Assert.Equal(1, config.GetValue("Nested:Integer", 1)); var foo = new ComplexOptions(); Assert.Same(config.GetValue("Object", foo), foo); } [Fact] public void GetUri() { var dic = new Dictionary<string, string> { {"AnUri", "http://www.bing.com"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var uri = config.GetValue<Uri>("AnUri"); Assert.Equal("http://www.bing.com", uri.OriginalString); } [Theory] [InlineData("2147483647", typeof(int))] [InlineData("4294967295", typeof(uint))] [InlineData("32767", typeof(short))] [InlineData("65535", typeof(ushort))] [InlineData("-9223372036854775808", typeof(long))] [InlineData("18446744073709551615", typeof(ulong))] [InlineData("trUE", typeof(bool))] [InlineData("255", typeof(byte))] [InlineData("127", typeof(sbyte))] [InlineData("\uffff", typeof(char))] [InlineData("79228162514264337593543950335", typeof(decimal))] [InlineData("1.79769e+308", typeof(double))] [InlineData("3.40282347E+38", typeof(float))] [InlineData("2015-12-24T07:34:42-5:00", typeof(DateTime))] [InlineData("12/24/2015 13:44:55 +4", typeof(DateTimeOffset))] [InlineData("99.22:22:22.1234567", typeof(TimeSpan))] [InlineData("http://www.bing.com", typeof(Uri))] // enum test [InlineData("Constructor", typeof(AttributeTargets))] [InlineData("CA761232-ED42-11CE-BACD-00AA0057B223", typeof(Guid))] [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void CanReadAllSupportedTypes(string value, Type type) { // arrange var dic = new Dictionary<string, string> { {"Value", value} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var optionsType = typeof(GenericOptions<>).MakeGenericType(type); var options = Activator.CreateInstance(optionsType); var expectedValue = TypeDescriptor.GetConverter(type).ConvertFromInvariantString(value); // act config.Bind(options); var optionsValue = options.GetType().GetProperty("Value").GetValue(options); var getValueValue = config.GetValue(type, "Value"); var getValue = config.GetSection("Value").Get(type); // assert Assert.Equal(expectedValue, optionsValue); Assert.Equal(expectedValue, getValue); Assert.Equal(expectedValue, getValueValue); } [Theory] [InlineData(typeof(int))] [InlineData(typeof(uint))] [InlineData(typeof(short))] [InlineData(typeof(ushort))] [InlineData(typeof(long))] [InlineData(typeof(ulong))] [InlineData(typeof(bool))] [InlineData(typeof(byte))] [InlineData(typeof(sbyte))] [InlineData(typeof(char))] [InlineData(typeof(decimal))] [InlineData(typeof(double))] [InlineData(typeof(float))] [InlineData(typeof(DateTime))] [InlineData(typeof(DateTimeOffset))] [InlineData(typeof(TimeSpan))] [InlineData(typeof(AttributeTargets))] [InlineData(typeof(Guid))] [ActiveIssue("https://github.com/dotnet/runtime/issues/51211", typeof(PlatformDetection), nameof(PlatformDetection.IsBuiltWithAggressiveTrimming), nameof(PlatformDetection.IsBrowser))] public void ConsistentExceptionOnFailedBinding(Type type) { // arrange const string IncorrectValue = "Invalid data"; const string ConfigKey = "Value"; var dic = new Dictionary<string, string> { {ConfigKey, IncorrectValue} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var optionsType = typeof(GenericOptions<>).MakeGenericType(type); var options = Activator.CreateInstance(optionsType); // act var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(options)); var getValueException = Assert.Throws<InvalidOperationException>( () => config.GetValue(type, "Value")); var getException = Assert.Throws<InvalidOperationException>( () => config.GetSection("Value").Get(type)); // assert Assert.NotNull(exception.InnerException); Assert.NotNull(getException.InnerException); Assert.Equal( SR.Format(SR.Error_FailedBinding, ConfigKey, type), exception.Message); Assert.Equal( SR.Format(SR.Error_FailedBinding, ConfigKey, type), getException.Message); Assert.Equal( SR.Format(SR.Error_FailedBinding, ConfigKey, type), getValueException.Message); } [Fact] public void ExceptionOnFailedBindingIncludesPath() { const string IncorrectValue = "Invalid data"; const string ConfigKey = "Nested:Value"; var dic = new Dictionary<string, string> { {ConfigKey, IncorrectValue} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new OptionsWithNesting(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(options)); Assert.Equal(SR.Format(SR.Error_FailedBinding, ConfigKey, typeof(int)), exception.Message); } [Fact] public void BinderIgnoresIndexerProperties() { var configurationBuilder = new ConfigurationBuilder(); var config = configurationBuilder.Build(); config.Bind(new List<string>()); } [Fact] public void BindCanReadComplexProperties() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new ComplexOptions(); config.Bind(instance); Assert.True(instance.Boolean); Assert.Equal(-2, instance.Integer); Assert.Equal(11, instance.Nested.Integer); } [Fact] public void GetCanReadComplexProperties() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options); Assert.True(options.Boolean); Assert.Equal(-2, options.Integer); Assert.Equal(11, options.Nested.Integer); } [Fact] public void BindCanReadInheritedProperties() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"}, {"Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new DerivedOptions(); config.Bind(instance); Assert.True(instance.Boolean); Assert.Equal(-2, instance.Integer); Assert.Equal(11, instance.Nested.Integer); Assert.Equal("Derived:Sup", instance.Virtual); } [Fact] public void GetCanReadInheritedProperties() { var dic = new Dictionary<string, string> { {"Integer", "-2"}, {"Boolean", "TRUe"}, {"Nested:Integer", "11"}, {"Virtual", "Sup"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new DerivedOptions(); config.Bind(options); Assert.True(options.Boolean); Assert.Equal(-2, options.Integer); Assert.Equal(11, options.Nested.Integer); Assert.Equal("Derived:Sup", options.Virtual); } [Fact] public void GetCanReadStaticProperty() { var dic = new Dictionary<string, string> { {"StaticProperty", "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options); Assert.Equal("stuff", ComplexOptions.StaticProperty); } [Fact] public void BindCanReadStaticProperty() { var dic = new Dictionary<string, string> { {"StaticProperty", "other stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var instance = new ComplexOptions(); config.Bind(instance); Assert.Equal("other stuff", ComplexOptions.StaticProperty); } [Fact] public void CanGetComplexOptionsWhichHasAlsoHasValue() { var dic = new Dictionary<string, string> { {"obj", "whut" }, {"obj:Integer", "-2"}, {"obj:Boolean", "TRUe"}, {"obj:Nested:Integer", "11"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.GetSection("obj").Get<ComplexOptions>(); Assert.NotNull(options); Assert.True(options.Boolean); Assert.Equal(-2, options.Integer); Assert.Equal(11, options.Nested.Integer); } [Theory] [InlineData("ReadOnly")] [InlineData("PrivateSetter")] [InlineData("ProtectedSetter")] [InlineData("InternalSetter")] [InlineData("InternalProperty")] [InlineData("PrivateProperty")] [InlineData("ProtectedProperty")] [InlineData("ProtectedPrivateSet")] public void GetIgnoresTests(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>(); Assert.Null(options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("PrivateSetter")] [InlineData("ProtectedSetter")] [InlineData("InternalSetter")] [InlineData("InternalProperty")] [InlineData("PrivateProperty")] [InlineData("ProtectedProperty")] [InlineData("ProtectedPrivateSet")] public void GetCanSetNonPublicWhenSet(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>(o => o.BindNonPublicProperties = true); Assert.Equal("stuff", options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("InternalReadOnly")] [InlineData("PrivateReadOnly")] [InlineData("ProtectedReadOnly")] public void NonPublicModeGetStillIgnoresReadonly(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ComplexOptions>(o => o.BindNonPublicProperties = true); Assert.Null(options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("ReadOnly")] [InlineData("PrivateSetter")] [InlineData("ProtectedSetter")] [InlineData("InternalSetter")] [InlineData("InternalProperty")] [InlineData("PrivateProperty")] [InlineData("ProtectedProperty")] [InlineData("ProtectedPrivateSet")] public void BindIgnoresTests(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options); Assert.Null(options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("PrivateSetter")] [InlineData("ProtectedSetter")] [InlineData("InternalSetter")] [InlineData("InternalProperty")] [InlineData("PrivateProperty")] [InlineData("ProtectedProperty")] [InlineData("ProtectedPrivateSet")] public void BindCanSetNonPublicWhenSet(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options, o => o.BindNonPublicProperties = true ); Assert.Equal("stuff", options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Theory] [InlineData("InternalReadOnly")] [InlineData("PrivateReadOnly")] [InlineData("ProtectedReadOnly")] public void NonPublicModeBindStillIgnoresReadonly(string property) { var dic = new Dictionary<string, string> { {property, "stuff"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = new ComplexOptions(); config.Bind(options, o => o.BindNonPublicProperties = true); Assert.Null(options.GetType().GetTypeInfo().GetDeclaredProperty(property).GetValue(options)); } [Fact] public void ExceptionWhenTryingToBindToInterface() { var input = new Dictionary<string, string> { {"ISomeInterfaceProperty:Subkey", "x"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(new TestOptions())); Assert.Equal( SR.Format(SR.Error_CannotActivateAbstractOrInterface, typeof(ISomeInterface)), exception.Message); } [Fact] public void ExceptionWhenTryingToBindClassWithoutParameterlessConstructor() { var input = new Dictionary<string, string> { {"ClassWithoutPublicConstructorProperty:Subkey", "x"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(new TestOptions())); Assert.Equal( SR.Format(SR.Error_MissingParameterlessConstructor, typeof(ClassWithoutPublicConstructor)), exception.Message); } [Fact] public void ExceptionWhenTryingToBindToTypeThrowsWhenActivated() { var input = new Dictionary<string, string> { {"ThrowsWhenActivatedProperty:subkey", "x"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(new TestOptions())); Assert.NotNull(exception.InnerException); Assert.Equal( SR.Format(SR.Error_FailedToActivate, typeof(ThrowsWhenActivated)), exception.Message); } [Fact] public void ExceptionIncludesKeyOfFailedBinding() { var input = new Dictionary<string, string> { {"NestedOptionsProperty:NestedOptions2Property:ISomeInterfaceProperty:subkey", "x"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(new TestOptions())); Assert.Equal( SR.Format(SR.Error_CannotActivateAbstractOrInterface, typeof(ISomeInterface)), exception.Message); } [Fact] public void CanBindValueTypeOptions() { var dic = new Dictionary<string, string> { {"MyInt32", "42"}, {"MyString", "hello world"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ValueTypeOptions>(); Assert.Equal(42, options.MyInt32); Assert.Equal("hello world", options.MyString); } [Fact] public void CanBindByteArray() { var bytes = new byte[] { 1, 2, 3, 4 }; var dic = new Dictionary<string, string> { { "MyByteArray", Convert.ToBase64String(bytes) } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ByteArrayOptions>(); Assert.Equal(bytes, options.MyByteArray); } [Fact] public void CanBindByteArrayWhenValueIsNull() { var dic = new Dictionary<string, string> { { "MyByteArray", null } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var options = config.Get<ByteArrayOptions>(); Assert.Null(options.MyByteArray); } [Fact] public void ExceptionWhenTryingToBindToByteArray() { var dic = new Dictionary<string, string> { { "MyByteArray", "(not a valid base64 string)" } }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(dic); var config = configurationBuilder.Build(); var exception = Assert.Throws<InvalidOperationException>( () => config.Get<ByteArrayOptions>()); Assert.Equal( SR.Format(SR.Error_FailedBinding, "MyByteArray", typeof(byte[])), exception.Message); } private interface ISomeInterface { } private class ClassWithoutPublicConstructor { private ClassWithoutPublicConstructor() { } } private class ThrowsWhenActivated { public ThrowsWhenActivated() { throw new Exception(); } } private class NestedOptions1 { public NestedOptions2 NestedOptions2Property { get; set; } } private class NestedOptions2 { public ISomeInterface ISomeInterfaceProperty { get; set; } } private class TestOptions { public ISomeInterface ISomeInterfaceProperty { get; set; } public ClassWithoutPublicConstructor ClassWithoutPublicConstructorProperty { get; set; } public int IntProperty { get; set; } public ThrowsWhenActivated ThrowsWhenActivatedProperty { get; set; } public NestedOptions1 NestedOptionsProperty { get; set; } } } }
1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/Microsoft.Extensions.Configuration.Binder/tests/ConfigurationCollectionBindingTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace Microsoft.Extensions.Configuration.Binder.Test { public class ConfigurationCollectionBinding { [Fact] public void GetList() { var input = new Dictionary<string, string> { {"StringList:0", "val0"}, {"StringList:1", "val1"}, {"StringList:2", "val2"}, {"StringList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var list = new List<string>(); config.GetSection("StringList").Bind(list); Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void GetListNullValues() { var input = new Dictionary<string, string> { {"StringList:0", null}, {"StringList:1", null}, {"StringList:2", null}, {"StringList:x", null} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var list = new List<string>(); config.GetSection("StringList").Bind(list); Assert.Empty(list); } [Fact] public void GetListInvalidValues() { var input = new Dictionary<string, string> { {"InvalidList:0", "true"}, {"InvalidList:1", "invalid"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var list = new List<bool>(); config.GetSection("InvalidList").Bind(list); Assert.Single(list); Assert.True(list[0]); } [Fact] public void GetDictionaryInvalidValues() { var input = new Dictionary<string, string> { {"InvalidDictionary:0", "true"}, {"InvalidDictionary:1", "invalid"}, }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var dict = new Dictionary<string, bool>(); config.Bind("InvalidDictionary", dict); Assert.Single(dict); Assert.True(dict["0"]); } [Fact] public void BindList() { var input = new Dictionary<string, string> { {"StringList:0", "val0"}, {"StringList:1", "val1"}, {"StringList:2", "val2"}, {"StringList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var list = new List<string>(); config.GetSection("StringList").Bind(list); Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void GetObjectList() { var input = new Dictionary<string, string> { {"ObjectList:0:Integer", "30"}, {"ObjectList:1:Integer", "31"}, {"ObjectList:2:Integer", "32"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new List<NestedOptions>(); config.GetSection("ObjectList").Bind(options); Assert.Equal(3, options.Count); Assert.Equal(30, options[0].Integer); Assert.Equal(31, options[1].Integer); Assert.Equal(32, options[2].Integer); } [Fact] public void GetStringDictionary() { var input = new Dictionary<string, string> { {"StringDictionary:abc", "val_1"}, {"StringDictionary:def", "val_2"}, {"StringDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new Dictionary<string, string>(); config.GetSection("StringDictionary").Bind(options); Assert.Equal(3, options.Count); Assert.Equal("val_1", options["abc"]); Assert.Equal("val_2", options["def"]); Assert.Equal("val_3", options["ghi"]); } [Fact] public void GetEnumDictionary() { var input = new Dictionary<string, string> { {"EnumDictionary:abc", "val_1"}, {"EnumDictionary:def", "val_2"}, {"EnumDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new Dictionary<KeyEnum, string>(); config.GetSection("EnumDictionary").Bind(options); Assert.Equal(3, options.Count); Assert.Equal("val_1", options[KeyEnum.abc]); Assert.Equal("val_2", options[KeyEnum.def]); Assert.Equal("val_3", options[KeyEnum.ghi]); } [Fact] public void GetUintEnumDictionary() { var input = new Dictionary<string, string> { {"EnumDictionary:abc", "val_1"}, {"EnumDictionary:def", "val_2"}, {"EnumDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new Dictionary<KeyUintEnum, string>(); config.GetSection("EnumDictionary").Bind(options); Assert.Equal(3, options.Count); Assert.Equal("val_1", options[KeyUintEnum.abc]); Assert.Equal("val_2", options[KeyUintEnum.def]); Assert.Equal("val_3", options[KeyUintEnum.ghi]); } [Fact] public void GetStringList() { var input = new Dictionary<string, string> { {"StringList:0", "val0"}, {"StringList:1", "val1"}, {"StringList:2", "val2"}, {"StringList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.StringList; Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void BindStringList() { var input = new Dictionary<string, string> { {"StringList:0", "val0"}, {"StringList:1", "val1"}, {"StringList:2", "val2"}, {"StringList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.StringList; Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void GetIntList() { var input = new Dictionary<string, string> { {"IntList:0", "42"}, {"IntList:1", "43"}, {"IntList:2", "44"}, {"IntList:x", "45"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.IntList; Assert.Equal(4, list.Count); Assert.Equal(42, list[0]); Assert.Equal(43, list[1]); Assert.Equal(44, list[2]); Assert.Equal(45, list[3]); } [Fact] public void BindIntList() { var input = new Dictionary<string, string> { {"IntList:0", "42"}, {"IntList:1", "43"}, {"IntList:2", "44"}, {"IntList:x", "45"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.IntList; Assert.Equal(4, list.Count); Assert.Equal(42, list[0]); Assert.Equal(43, list[1]); Assert.Equal(44, list[2]); Assert.Equal(45, list[3]); } [Fact] public void AlreadyInitializedListBinding() { var input = new Dictionary<string, string> { {"AlreadyInitializedList:0", "val0"}, {"AlreadyInitializedList:1", "val1"}, {"AlreadyInitializedList:2", "val2"}, {"AlreadyInitializedList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.AlreadyInitializedList; Assert.Equal(5, list.Count); Assert.Equal("This was here before", list[0]); Assert.Equal("val0", list[1]); Assert.Equal("val1", list[2]); Assert.Equal("val2", list[3]); Assert.Equal("valx", list[4]); } [Fact] public void AlreadyInitializedListInterfaceBinding() { var input = new Dictionary<string, string> { {"AlreadyInitializedListInterface:0", "val0"}, {"AlreadyInitializedListInterface:1", "val1"}, {"AlreadyInitializedListInterface:2", "val2"}, {"AlreadyInitializedListInterface:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.AlreadyInitializedListInterface; Assert.Equal(5, list.Count); Assert.Equal("This was here too", list[0]); Assert.Equal("val0", list[1]); Assert.Equal("val1", list[2]); Assert.Equal("val2", list[3]); Assert.Equal("valx", list[4]); } [Fact] public void CustomListBinding() { var input = new Dictionary<string, string> { {"CustomList:0", "val0"}, {"CustomList:1", "val1"}, {"CustomList:2", "val2"}, {"CustomList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.CustomList; Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void ObjectListBinding() { var input = new Dictionary<string, string> { {"ObjectList:0:Integer", "30"}, {"ObjectList:1:Integer", "31"}, {"ObjectList:2:Integer", "32"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); Assert.Equal(3, options.ObjectList.Count); Assert.Equal(30, options.ObjectList[0].Integer); Assert.Equal(31, options.ObjectList[1].Integer); Assert.Equal(32, options.ObjectList[2].Integer); } [Fact] public void NestedListsBinding() { var input = new Dictionary<string, string> { {"NestedLists:0:0", "val00"}, {"NestedLists:0:1", "val01"}, {"NestedLists:1:0", "val10"}, {"NestedLists:1:1", "val11"}, {"NestedLists:1:2", "val12"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); Assert.Equal(2, options.NestedLists.Count); Assert.Equal(2, options.NestedLists[0].Count); Assert.Equal(3, options.NestedLists[1].Count); Assert.Equal("val00", options.NestedLists[0][0]); Assert.Equal("val01", options.NestedLists[0][1]); Assert.Equal("val10", options.NestedLists[1][0]); Assert.Equal("val11", options.NestedLists[1][1]); Assert.Equal("val12", options.NestedLists[1][2]); } [Fact] public void StringDictionaryBinding() { var input = new Dictionary<string, string> { {"StringDictionary:abc", "val_1"}, {"StringDictionary:def", "val_2"}, {"StringDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Equal(3, options.StringDictionary.Count); Assert.Equal("val_1", options.StringDictionary["abc"]); Assert.Equal("val_2", options.StringDictionary["def"]); Assert.Equal("val_3", options.StringDictionary["ghi"]); } [Fact] public void ShouldPreserveExistingKeysInDictionary() { var input = new Dictionary<string, string> { { "ascii:b", "98" } }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var origin = new Dictionary<string, int> { ["a"] = 97 }; config.Bind("ascii", origin); Assert.Equal(2, origin.Count); Assert.Equal(97, origin["a"]); Assert.Equal(98, origin["b"]); } [Fact] public void ShouldPreserveExistingKeysInNestedDictionary() { var input = new Dictionary<string, string> { ["ascii:b"] = "98" }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var origin = new Dictionary<string, IDictionary<string, int>> { ["ascii"] = new Dictionary<string, int> { ["a"] = 97 } }; config.Bind(origin); Assert.Equal(2, origin["ascii"].Count); Assert.Equal(97, origin["ascii"]["a"]); Assert.Equal(98, origin["ascii"]["b"]); } [Fact] public void ShouldPreserveExistingKeysInDictionaryWithEnumAsKeyType() { var input = new Dictionary<string, string> { ["abc:def"] = "val_2", ["abc:ghi"] = "val_3" }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var origin = new Dictionary<KeyEnum, IDictionary<KeyUintEnum, string>> { [KeyEnum.abc] = new Dictionary<KeyUintEnum, string> { [KeyUintEnum.abc] = "val_1" } }; config.Bind(origin); Assert.Equal(3, origin[KeyEnum.abc].Count); Assert.Equal("val_1", origin[KeyEnum.abc][KeyUintEnum.abc]); Assert.Equal("val_2", origin[KeyEnum.abc][KeyUintEnum.def]); Assert.Equal("val_3", origin[KeyEnum.abc][KeyUintEnum.ghi]); } [Fact] public void ShouldPreserveExistingValuesInArrayWhenItIsDictionaryElement() { var input = new Dictionary<string, string> { ["ascii:b"] = "98", }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var origin = new Dictionary<string, int[]> { ["ascii"] = new int[] { 97 } }; config.Bind(origin); Assert.Equal(new int[] { 97, 98 }, origin["ascii"]); } [Fact] public void AlreadyInitializedStringDictionaryBinding() { var input = new Dictionary<string, string> { {"AlreadyInitializedStringDictionaryInterface:abc", "val_1"}, {"AlreadyInitializedStringDictionaryInterface:def", "val_2"}, {"AlreadyInitializedStringDictionaryInterface:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.NotNull(options.AlreadyInitializedStringDictionaryInterface); Assert.Equal(4, options.AlreadyInitializedStringDictionaryInterface.Count); Assert.Equal("This was already here", options.AlreadyInitializedStringDictionaryInterface["123"]); Assert.Equal("val_1", options.AlreadyInitializedStringDictionaryInterface["abc"]); Assert.Equal("val_2", options.AlreadyInitializedStringDictionaryInterface["def"]); Assert.Equal("val_3", options.AlreadyInitializedStringDictionaryInterface["ghi"]); } [Fact] public void CanOverrideExistingDictionaryKey() { var input = new Dictionary<string, string> { {"abc", "override"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new Dictionary<string, string> { {"abc", "default"} }; config.Bind(options); var optionsCount = options.Count; Assert.Equal(1, optionsCount); Assert.Equal("override", options["abc"]); } [Fact] public void IntDictionaryBinding() { var input = new Dictionary<string, string> { {"IntDictionary:abc", "42"}, {"IntDictionary:def", "43"}, {"IntDictionary:ghi", "44"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Equal(3, options.IntDictionary.Count); Assert.Equal(42, options.IntDictionary["abc"]); Assert.Equal(43, options.IntDictionary["def"]); Assert.Equal(44, options.IntDictionary["ghi"]); } [Fact] public void ObjectDictionary() { var input = new Dictionary<string, string> { {"ObjectDictionary:abc:Integer", "1"}, {"ObjectDictionary:def:Integer", "2"}, {"ObjectDictionary:ghi:Integer", "3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Equal(3, options.ObjectDictionary.Count); Assert.Equal(1, options.ObjectDictionary["abc"].Integer); Assert.Equal(2, options.ObjectDictionary["def"].Integer); Assert.Equal(3, options.ObjectDictionary["ghi"].Integer); } [Fact] public void ListDictionary() { var input = new Dictionary<string, string> { {"ListDictionary:abc:0", "abc_0"}, {"ListDictionary:abc:1", "abc_1"}, {"ListDictionary:def:0", "def_0"}, {"ListDictionary:def:1", "def_1"}, {"ListDictionary:def:2", "def_2"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Equal(2, options.ListDictionary.Count); Assert.Equal(2, options.ListDictionary["abc"].Count); Assert.Equal(3, options.ListDictionary["def"].Count); Assert.Equal("abc_0", options.ListDictionary["abc"][0]); Assert.Equal("abc_1", options.ListDictionary["abc"][1]); Assert.Equal("def_0", options.ListDictionary["def"][0]); Assert.Equal("def_1", options.ListDictionary["def"][1]); Assert.Equal("def_2", options.ListDictionary["def"][2]); } [Fact] public void ListInNestedOptionBinding() { var input = new Dictionary<string, string> { {"ObjectList:0:ListInNestedOption:0", "00"}, {"ObjectList:0:ListInNestedOption:1", "01"}, {"ObjectList:1:ListInNestedOption:0", "10"}, {"ObjectList:1:ListInNestedOption:1", "11"}, {"ObjectList:1:ListInNestedOption:2", "12"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); Assert.Equal(2, options.ObjectList.Count); Assert.Equal(2, options.ObjectList[0].ListInNestedOption.Count); Assert.Equal(3, options.ObjectList[1].ListInNestedOption.Count); Assert.Equal("00", options.ObjectList[0].ListInNestedOption[0]); Assert.Equal("01", options.ObjectList[0].ListInNestedOption[1]); Assert.Equal("10", options.ObjectList[1].ListInNestedOption[0]); Assert.Equal("11", options.ObjectList[1].ListInNestedOption[1]); Assert.Equal("12", options.ObjectList[1].ListInNestedOption[2]); } [Fact] public void NonStringKeyDictionaryBinding() { var input = new Dictionary<string, string> { {"NonStringKeyDictionary:abc", "val_1"}, {"NonStringKeyDictionary:def", "val_2"}, {"NonStringKeyDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Empty(options.NonStringKeyDictionary); } [Fact] public void GetStringArray() { var input = new Dictionary<string, string> { {"StringArray:0", "val0"}, {"StringArray:1", "val1"}, {"StringArray:2", "val2"}, {"StringArray:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); var array = options.StringArray; Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void BindStringArray() { var input = new Dictionary<string, string> { {"StringArray:0", "val0"}, {"StringArray:1", "val1"}, {"StringArray:2", "val2"}, {"StringArray:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var instance = new OptionsWithArrays(); config.Bind(instance); var array = instance.StringArray; Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void GetAlreadyInitializedArray() { var input = new Dictionary<string, string> { {"AlreadyInitializedArray:0", "val0"}, {"AlreadyInitializedArray:1", "val1"}, {"AlreadyInitializedArray:2", "val2"}, {"AlreadyInitializedArray:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); var array = options.AlreadyInitializedArray; Assert.Equal(7, array.Length); Assert.Equal(OptionsWithArrays.InitialValue, array[0]); Assert.Null(array[1]); Assert.Null(array[2]); Assert.Equal("val0", array[3]); Assert.Equal("val1", array[4]); Assert.Equal("val2", array[5]); Assert.Equal("valx", array[6]); } [Fact] public void BindAlreadyInitializedArray() { var input = new Dictionary<string, string> { {"AlreadyInitializedArray:0", "val0"}, {"AlreadyInitializedArray:1", "val1"}, {"AlreadyInitializedArray:2", "val2"}, {"AlreadyInitializedArray:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); var array = options.AlreadyInitializedArray; Assert.Equal(7, array.Length); Assert.Equal(OptionsWithArrays.InitialValue, array[0]); Assert.Null(array[1]); Assert.Null(array[2]); Assert.Equal("val0", array[3]); Assert.Equal("val1", array[4]); Assert.Equal("val2", array[5]); Assert.Equal("valx", array[6]); } [Fact] public void ArrayInNestedOptionBinding() { var input = new Dictionary<string, string> { {"ObjectArray:0:ArrayInNestedOption:0", "0"}, {"ObjectArray:0:ArrayInNestedOption:1", "1"}, {"ObjectArray:1:ArrayInNestedOption:0", "10"}, {"ObjectArray:1:ArrayInNestedOption:1", "11"}, {"ObjectArray:1:ArrayInNestedOption:2", "12"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); Assert.Equal(2, options.ObjectArray.Length); Assert.Equal(2, options.ObjectArray[0].ArrayInNestedOption.Length); Assert.Equal(3, options.ObjectArray[1].ArrayInNestedOption.Length); Assert.Equal(0, options.ObjectArray[0].ArrayInNestedOption[0]); Assert.Equal(1, options.ObjectArray[0].ArrayInNestedOption[1]); Assert.Equal(10, options.ObjectArray[1].ArrayInNestedOption[0]); Assert.Equal(11, options.ObjectArray[1].ArrayInNestedOption[1]); Assert.Equal(12, options.ObjectArray[1].ArrayInNestedOption[2]); } [Fact] public void UnsupportedMultidimensionalArrays() { var input = new Dictionary<string, string> { {"DimensionalArray:0:0", "a"}, {"DimensionalArray:0:1", "b"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(options)); Assert.Equal( SR.Format(SR.Error_UnsupportedMultidimensionalArray, typeof(string[,])), exception.Message); } [Fact] public void JaggedArrayBinding() { var input = new Dictionary<string, string> { {"JaggedArray:0:0", "00"}, {"JaggedArray:0:1", "01"}, {"JaggedArray:1:0", "10"}, {"JaggedArray:1:1", "11"}, {"JaggedArray:1:2", "12"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); Assert.Equal(2, options.JaggedArray.Length); Assert.Equal(2, options.JaggedArray[0].Length); Assert.Equal(3, options.JaggedArray[1].Length); Assert.Equal("00", options.JaggedArray[0][0]); Assert.Equal("01", options.JaggedArray[0][1]); Assert.Equal("10", options.JaggedArray[1][0]); Assert.Equal("11", options.JaggedArray[1][1]); Assert.Equal("12", options.JaggedArray[1][2]); } [Fact] public void CanBindUninitializedIEnumerable() { var input = new Dictionary<string, string> { {"IEnumerable:0", "val0"}, {"IEnumerable:1", "val1"}, {"IEnumerable:2", "val2"}, {"IEnumerable:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); var array = options.IEnumerable.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void CanBindUninitializedICollection() { var input = new Dictionary<string, string> { {"ICollection:0", "val0"}, {"ICollection:1", "val1"}, {"ICollection:2", "val2"}, {"ICollection:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); var array = options.ICollection.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void CanBindUninitializedIReadOnlyCollection() { var input = new Dictionary<string, string> { {"IReadOnlyCollection:0", "val0"}, {"IReadOnlyCollection:1", "val1"}, {"IReadOnlyCollection:2", "val2"}, {"IReadOnlyCollection:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); var array = options.IReadOnlyCollection.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void CanBindUninitializedIReadOnlyList() { var input = new Dictionary<string, string> { {"IReadOnlyList:0", "val0"}, {"IReadOnlyList:1", "val1"}, {"IReadOnlyList:2", "val2"}, {"IReadOnlyList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); var array = options.IReadOnlyList.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void CanBindUninitializedIDictionary() { var input = new Dictionary<string, string> { {"IDictionary:abc", "val_1"}, {"IDictionary:def", "val_2"}, {"IDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); Assert.Equal(3, options.IDictionary.Count); Assert.Equal("val_1", options.IDictionary["abc"]); Assert.Equal("val_2", options.IDictionary["def"]); Assert.Equal("val_3", options.IDictionary["ghi"]); } [Fact] public void CanBindUninitializedIReadOnlyDictionary() { var input = new Dictionary<string, string> { {"IReadOnlyDictionary:abc", "val_1"}, {"IReadOnlyDictionary:def", "val_2"}, {"IReadOnlyDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); Assert.Equal(3, options.IReadOnlyDictionary.Count); Assert.Equal("val_1", options.IReadOnlyDictionary["abc"]); Assert.Equal("val_2", options.IReadOnlyDictionary["def"]); Assert.Equal("val_3", options.IReadOnlyDictionary["ghi"]); } private class UnintializedCollectionsOptions { public IEnumerable<string> IEnumerable { get; set; } public IDictionary<string, string> IDictionary { get; set; } public ICollection<string> ICollection { get; set; } public IList<string> IList { get; set; } public IReadOnlyCollection<string> IReadOnlyCollection { get; set; } public IReadOnlyList<string> IReadOnlyList { get; set; } public IReadOnlyDictionary<string, string> IReadOnlyDictionary { get; set; } } private class CustomList : List<string> { // Add an overload, just to make sure binding picks the right Add method public void Add(string a, string b) { } } private class CustomDictionary<T> : Dictionary<string, T> { } private class NestedOptions { public int Integer { get; set; } public List<string> ListInNestedOption { get; set; } public int[] ArrayInNestedOption { get; set; } } private enum KeyEnum { abc, def, ghi } private enum KeyUintEnum : uint { abc, def, ghi } private class OptionsWithArrays { public const string InitialValue = "This was here before"; public OptionsWithArrays() { AlreadyInitializedArray = new string[] { InitialValue, null, null }; } public string[] AlreadyInitializedArray { get; set; } public string[] StringArray { get; set; } // this should throw becase we do not support multidimensional arrays public string[,] DimensionalArray { get; set; } public string[][] JaggedArray { get; set; } public NestedOptions[] ObjectArray { get; set; } } private class OptionsWithLists { public OptionsWithLists() { AlreadyInitializedList = new List<string> { "This was here before" }; AlreadyInitializedListInterface = new List<string> { "This was here too" }; } public CustomList CustomList { get; set; } public List<string> StringList { get; set; } public List<int> IntList { get; set; } // This cannot be initialized because we cannot // activate an interface public IList<string> StringListInterface { get; set; } public List<List<string>> NestedLists { get; set; } public List<string> AlreadyInitializedList { get; set; } public List<NestedOptions> ObjectList { get; set; } public IList<string> AlreadyInitializedListInterface { get; set; } } private class OptionsWithDictionary { public OptionsWithDictionary() { AlreadyInitializedStringDictionaryInterface = new Dictionary<string, string> { ["123"] = "This was already here" }; } public Dictionary<string, int> IntDictionary { get; set; } public Dictionary<string, string> StringDictionary { get; set; } public Dictionary<string, NestedOptions> ObjectDictionary { get; set; } public Dictionary<string, List<string>> ListDictionary { get; set; } public Dictionary<NestedOptions, string> NonStringKeyDictionary { get; set; } // This cannot be initialized because we cannot // activate an interface public IDictionary<string, string> StringDictionaryInterface { get; set; } public IDictionary<string, string> AlreadyInitializedStringDictionaryInterface { get; set; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Xunit; namespace Microsoft.Extensions.Configuration.Binder.Test { public class ConfigurationCollectionBinding { [Fact] public void GetList() { var input = new Dictionary<string, string> { {"StringList:0", "val0"}, {"StringList:1", "val1"}, {"StringList:2", "val2"}, {"StringList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var list = new List<string>(); config.GetSection("StringList").Bind(list); Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void GetListNullValues() { var input = new Dictionary<string, string> { {"StringList:0", null}, {"StringList:1", null}, {"StringList:2", null}, {"StringList:x", null} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var list = new List<string>(); config.GetSection("StringList").Bind(list); Assert.Empty(list); } [Fact] public void GetListInvalidValues() { var input = new Dictionary<string, string> { {"InvalidList:0", "true"}, {"InvalidList:1", "invalid"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var list = new List<bool>(); config.GetSection("InvalidList").Bind(list); Assert.Single(list); Assert.True(list[0]); } [Fact] public void GetDictionaryInvalidValues() { var input = new Dictionary<string, string> { {"InvalidDictionary:0", "true"}, {"InvalidDictionary:1", "invalid"}, }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var dict = new Dictionary<string, bool>(); config.Bind("InvalidDictionary", dict); Assert.Single(dict); Assert.True(dict["0"]); } [Fact] public void BindList() { var input = new Dictionary<string, string> { {"StringList:0", "val0"}, {"StringList:1", "val1"}, {"StringList:2", "val2"}, {"StringList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var list = new List<string>(); config.GetSection("StringList").Bind(list); Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void GetObjectList() { var input = new Dictionary<string, string> { {"ObjectList:0:Integer", "30"}, {"ObjectList:1:Integer", "31"}, {"ObjectList:2:Integer", "32"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new List<NestedOptions>(); config.GetSection("ObjectList").Bind(options); Assert.Equal(3, options.Count); Assert.Equal(30, options[0].Integer); Assert.Equal(31, options[1].Integer); Assert.Equal(32, options[2].Integer); } [Fact] public void GetStringDictionary() { var input = new Dictionary<string, string> { {"StringDictionary:abc", "val_1"}, {"StringDictionary:def", "val_2"}, {"StringDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new Dictionary<string, string>(); config.GetSection("StringDictionary").Bind(options); Assert.Equal(3, options.Count); Assert.Equal("val_1", options["abc"]); Assert.Equal("val_2", options["def"]); Assert.Equal("val_3", options["ghi"]); } [Fact] public void GetEnumDictionary() { var input = new Dictionary<string, string> { {"EnumDictionary:abc", "val_1"}, {"EnumDictionary:def", "val_2"}, {"EnumDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new Dictionary<KeyEnum, string>(); config.GetSection("EnumDictionary").Bind(options); Assert.Equal(3, options.Count); Assert.Equal("val_1", options[KeyEnum.abc]); Assert.Equal("val_2", options[KeyEnum.def]); Assert.Equal("val_3", options[KeyEnum.ghi]); } [Fact] public void GetUintEnumDictionary() { var input = new Dictionary<string, string> { {"EnumDictionary:abc", "val_1"}, {"EnumDictionary:def", "val_2"}, {"EnumDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new Dictionary<KeyUintEnum, string>(); config.GetSection("EnumDictionary").Bind(options); Assert.Equal(3, options.Count); Assert.Equal("val_1", options[KeyUintEnum.abc]); Assert.Equal("val_2", options[KeyUintEnum.def]); Assert.Equal("val_3", options[KeyUintEnum.ghi]); } [Fact] public void GetStringList() { var input = new Dictionary<string, string> { {"StringList:0", "val0"}, {"StringList:1", "val1"}, {"StringList:2", "val2"}, {"StringList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.StringList; Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void BindStringList() { var input = new Dictionary<string, string> { {"StringList:0", "val0"}, {"StringList:1", "val1"}, {"StringList:2", "val2"}, {"StringList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.StringList; Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void GetIntList() { var input = new Dictionary<string, string> { {"IntList:0", "42"}, {"IntList:1", "43"}, {"IntList:2", "44"}, {"IntList:x", "45"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.IntList; Assert.Equal(4, list.Count); Assert.Equal(42, list[0]); Assert.Equal(43, list[1]); Assert.Equal(44, list[2]); Assert.Equal(45, list[3]); } [Fact] public void BindIntList() { var input = new Dictionary<string, string> { {"IntList:0", "42"}, {"IntList:1", "43"}, {"IntList:2", "44"}, {"IntList:x", "45"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.IntList; Assert.Equal(4, list.Count); Assert.Equal(42, list[0]); Assert.Equal(43, list[1]); Assert.Equal(44, list[2]); Assert.Equal(45, list[3]); } [Fact] public void AlreadyInitializedListBinding() { var input = new Dictionary<string, string> { {"AlreadyInitializedList:0", "val0"}, {"AlreadyInitializedList:1", "val1"}, {"AlreadyInitializedList:2", "val2"}, {"AlreadyInitializedList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.AlreadyInitializedList; Assert.Equal(5, list.Count); Assert.Equal("This was here before", list[0]); Assert.Equal("val0", list[1]); Assert.Equal("val1", list[2]); Assert.Equal("val2", list[3]); Assert.Equal("valx", list[4]); } [Fact] public void AlreadyInitializedListInterfaceBinding() { var input = new Dictionary<string, string> { {"AlreadyInitializedListInterface:0", "val0"}, {"AlreadyInitializedListInterface:1", "val1"}, {"AlreadyInitializedListInterface:2", "val2"}, {"AlreadyInitializedListInterface:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.AlreadyInitializedListInterface; Assert.Equal(5, list.Count); Assert.Equal("This was here too", list[0]); Assert.Equal("val0", list[1]); Assert.Equal("val1", list[2]); Assert.Equal("val2", list[3]); Assert.Equal("valx", list[4]); } [Fact] public void CustomListBinding() { var input = new Dictionary<string, string> { {"CustomList:0", "val0"}, {"CustomList:1", "val1"}, {"CustomList:2", "val2"}, {"CustomList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); var list = options.CustomList; Assert.Equal(4, list.Count); Assert.Equal("val0", list[0]); Assert.Equal("val1", list[1]); Assert.Equal("val2", list[2]); Assert.Equal("valx", list[3]); } [Fact] public void ObjectListBinding() { var input = new Dictionary<string, string> { {"ObjectList:0:Integer", "30"}, {"ObjectList:1:Integer", "31"}, {"ObjectList:2:Integer", "32"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); Assert.Equal(3, options.ObjectList.Count); Assert.Equal(30, options.ObjectList[0].Integer); Assert.Equal(31, options.ObjectList[1].Integer); Assert.Equal(32, options.ObjectList[2].Integer); } [Fact] public void NestedListsBinding() { var input = new Dictionary<string, string> { {"NestedLists:0:0", "val00"}, {"NestedLists:0:1", "val01"}, {"NestedLists:1:0", "val10"}, {"NestedLists:1:1", "val11"}, {"NestedLists:1:2", "val12"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); Assert.Equal(2, options.NestedLists.Count); Assert.Equal(2, options.NestedLists[0].Count); Assert.Equal(3, options.NestedLists[1].Count); Assert.Equal("val00", options.NestedLists[0][0]); Assert.Equal("val01", options.NestedLists[0][1]); Assert.Equal("val10", options.NestedLists[1][0]); Assert.Equal("val11", options.NestedLists[1][1]); Assert.Equal("val12", options.NestedLists[1][2]); } [Fact] public void StringDictionaryBinding() { var input = new Dictionary<string, string> { {"StringDictionary:abc", "val_1"}, {"StringDictionary:def", "val_2"}, {"StringDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Equal(3, options.StringDictionary.Count); Assert.Equal("val_1", options.StringDictionary["abc"]); Assert.Equal("val_2", options.StringDictionary["def"]); Assert.Equal("val_3", options.StringDictionary["ghi"]); } [Fact] public void ShouldPreserveExistingKeysInDictionary() { var input = new Dictionary<string, string> { { "ascii:b", "98" } }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var origin = new Dictionary<string, int> { ["a"] = 97 }; config.Bind("ascii", origin); Assert.Equal(2, origin.Count); Assert.Equal(97, origin["a"]); Assert.Equal(98, origin["b"]); } [Fact] public void ShouldPreserveExistingKeysInNestedDictionary() { var input = new Dictionary<string, string> { ["ascii:b"] = "98" }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var origin = new Dictionary<string, IDictionary<string, int>> { ["ascii"] = new Dictionary<string, int> { ["a"] = 97 } }; config.Bind(origin); Assert.Equal(2, origin["ascii"].Count); Assert.Equal(97, origin["ascii"]["a"]); Assert.Equal(98, origin["ascii"]["b"]); } [Fact] public void ShouldPreserveExistingKeysInDictionaryWithEnumAsKeyType() { var input = new Dictionary<string, string> { ["abc:def"] = "val_2", ["abc:ghi"] = "val_3" }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var origin = new Dictionary<KeyEnum, IDictionary<KeyUintEnum, string>> { [KeyEnum.abc] = new Dictionary<KeyUintEnum, string> { [KeyUintEnum.abc] = "val_1" } }; config.Bind(origin); Assert.Equal(3, origin[KeyEnum.abc].Count); Assert.Equal("val_1", origin[KeyEnum.abc][KeyUintEnum.abc]); Assert.Equal("val_2", origin[KeyEnum.abc][KeyUintEnum.def]); Assert.Equal("val_3", origin[KeyEnum.abc][KeyUintEnum.ghi]); } [Fact] public void ShouldPreserveExistingValuesInArrayWhenItIsDictionaryElement() { var input = new Dictionary<string, string> { ["ascii:b"] = "98", }; var config = new ConfigurationBuilder().AddInMemoryCollection(input).Build(); var origin = new Dictionary<string, int[]> { ["ascii"] = new int[] { 97 } }; config.Bind(origin); Assert.Equal(new int[] { 97, 98 }, origin["ascii"]); } [Fact] public void AlreadyInitializedStringDictionaryBinding() { var input = new Dictionary<string, string> { {"AlreadyInitializedStringDictionaryInterface:abc", "val_1"}, {"AlreadyInitializedStringDictionaryInterface:def", "val_2"}, {"AlreadyInitializedStringDictionaryInterface:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.NotNull(options.AlreadyInitializedStringDictionaryInterface); Assert.Equal(4, options.AlreadyInitializedStringDictionaryInterface.Count); Assert.Equal("This was already here", options.AlreadyInitializedStringDictionaryInterface["123"]); Assert.Equal("val_1", options.AlreadyInitializedStringDictionaryInterface["abc"]); Assert.Equal("val_2", options.AlreadyInitializedStringDictionaryInterface["def"]); Assert.Equal("val_3", options.AlreadyInitializedStringDictionaryInterface["ghi"]); } [Fact] public void CanOverrideExistingDictionaryKey() { var input = new Dictionary<string, string> { {"abc", "override"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new Dictionary<string, string> { {"abc", "default"} }; config.Bind(options); var optionsCount = options.Count; Assert.Equal(1, optionsCount); Assert.Equal("override", options["abc"]); } [Fact] public void IntDictionaryBinding() { var input = new Dictionary<string, string> { {"IntDictionary:abc", "42"}, {"IntDictionary:def", "43"}, {"IntDictionary:ghi", "44"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Equal(3, options.IntDictionary.Count); Assert.Equal(42, options.IntDictionary["abc"]); Assert.Equal(43, options.IntDictionary["def"]); Assert.Equal(44, options.IntDictionary["ghi"]); } [Fact] public void ObjectDictionary() { var input = new Dictionary<string, string> { {"ObjectDictionary:abc:Integer", "1"}, {"ObjectDictionary:def:Integer", "2"}, {"ObjectDictionary:ghi:Integer", "3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Equal(3, options.ObjectDictionary.Count); Assert.Equal(1, options.ObjectDictionary["abc"].Integer); Assert.Equal(2, options.ObjectDictionary["def"].Integer); Assert.Equal(3, options.ObjectDictionary["ghi"].Integer); } [Fact] public void ListDictionary() { var input = new Dictionary<string, string> { {"ListDictionary:abc:0", "abc_0"}, {"ListDictionary:abc:1", "abc_1"}, {"ListDictionary:def:0", "def_0"}, {"ListDictionary:def:1", "def_1"}, {"ListDictionary:def:2", "def_2"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Equal(2, options.ListDictionary.Count); Assert.Equal(2, options.ListDictionary["abc"].Count); Assert.Equal(3, options.ListDictionary["def"].Count); Assert.Equal("abc_0", options.ListDictionary["abc"][0]); Assert.Equal("abc_1", options.ListDictionary["abc"][1]); Assert.Equal("def_0", options.ListDictionary["def"][0]); Assert.Equal("def_1", options.ListDictionary["def"][1]); Assert.Equal("def_2", options.ListDictionary["def"][2]); } [Fact] public void ListInNestedOptionBinding() { var input = new Dictionary<string, string> { {"ObjectList:0:ListInNestedOption:0", "00"}, {"ObjectList:0:ListInNestedOption:1", "01"}, {"ObjectList:1:ListInNestedOption:0", "10"}, {"ObjectList:1:ListInNestedOption:1", "11"}, {"ObjectList:1:ListInNestedOption:2", "12"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithLists(); config.Bind(options); Assert.Equal(2, options.ObjectList.Count); Assert.Equal(2, options.ObjectList[0].ListInNestedOption.Count); Assert.Equal(3, options.ObjectList[1].ListInNestedOption.Count); Assert.Equal("00", options.ObjectList[0].ListInNestedOption[0]); Assert.Equal("01", options.ObjectList[0].ListInNestedOption[1]); Assert.Equal("10", options.ObjectList[1].ListInNestedOption[0]); Assert.Equal("11", options.ObjectList[1].ListInNestedOption[1]); Assert.Equal("12", options.ObjectList[1].ListInNestedOption[2]); } [Fact] public void NonStringKeyDictionaryBinding() { var input = new Dictionary<string, string> { {"NonStringKeyDictionary:abc", "val_1"}, {"NonStringKeyDictionary:def", "val_2"}, {"NonStringKeyDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithDictionary(); config.Bind(options); Assert.Empty(options.NonStringKeyDictionary); } [Fact] public void GetStringArray() { var input = new Dictionary<string, string> { {"StringArray:0", "val0"}, {"StringArray:1", "val1"}, {"StringArray:2", "val2"}, {"StringArray:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); var array = options.StringArray; Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void BindStringArray() { var input = new Dictionary<string, string> { {"StringArray:0", "val0"}, {"StringArray:1", "val1"}, {"StringArray:2", "val2"}, {"StringArray:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var instance = new OptionsWithArrays(); config.Bind(instance); var array = instance.StringArray; Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void GetAlreadyInitializedArray() { var input = new Dictionary<string, string> { {"AlreadyInitializedArray:0", "val0"}, {"AlreadyInitializedArray:1", "val1"}, {"AlreadyInitializedArray:2", "val2"}, {"AlreadyInitializedArray:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); var array = options.AlreadyInitializedArray; Assert.Equal(7, array.Length); Assert.Equal(OptionsWithArrays.InitialValue, array[0]); Assert.Null(array[1]); Assert.Null(array[2]); Assert.Equal("val0", array[3]); Assert.Equal("val1", array[4]); Assert.Equal("val2", array[5]); Assert.Equal("valx", array[6]); } [Fact] public void BindAlreadyInitializedArray() { var input = new Dictionary<string, string> { {"AlreadyInitializedArray:0", "val0"}, {"AlreadyInitializedArray:1", "val1"}, {"AlreadyInitializedArray:2", "val2"}, {"AlreadyInitializedArray:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); var array = options.AlreadyInitializedArray; Assert.Equal(7, array.Length); Assert.Equal(OptionsWithArrays.InitialValue, array[0]); Assert.Null(array[1]); Assert.Null(array[2]); Assert.Equal("val0", array[3]); Assert.Equal("val1", array[4]); Assert.Equal("val2", array[5]); Assert.Equal("valx", array[6]); } [Fact] public void ArrayInNestedOptionBinding() { var input = new Dictionary<string, string> { {"ObjectArray:0:ArrayInNestedOption:0", "0"}, {"ObjectArray:0:ArrayInNestedOption:1", "1"}, {"ObjectArray:1:ArrayInNestedOption:0", "10"}, {"ObjectArray:1:ArrayInNestedOption:1", "11"}, {"ObjectArray:1:ArrayInNestedOption:2", "12"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); Assert.Equal(2, options.ObjectArray.Length); Assert.Equal(2, options.ObjectArray[0].ArrayInNestedOption.Length); Assert.Equal(3, options.ObjectArray[1].ArrayInNestedOption.Length); Assert.Equal(0, options.ObjectArray[0].ArrayInNestedOption[0]); Assert.Equal(1, options.ObjectArray[0].ArrayInNestedOption[1]); Assert.Equal(10, options.ObjectArray[1].ArrayInNestedOption[0]); Assert.Equal(11, options.ObjectArray[1].ArrayInNestedOption[1]); Assert.Equal(12, options.ObjectArray[1].ArrayInNestedOption[2]); } [Fact] public void UnsupportedMultidimensionalArrays() { var input = new Dictionary<string, string> { {"DimensionalArray:0:0", "a"}, {"DimensionalArray:0:1", "b"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); var exception = Assert.Throws<InvalidOperationException>( () => config.Bind(options)); Assert.Equal( SR.Format(SR.Error_UnsupportedMultidimensionalArray, typeof(string[,])), exception.Message); } [Fact] public void JaggedArrayBinding() { var input = new Dictionary<string, string> { {"JaggedArray:0:0", "00"}, {"JaggedArray:0:1", "01"}, {"JaggedArray:1:0", "10"}, {"JaggedArray:1:1", "11"}, {"JaggedArray:1:2", "12"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new OptionsWithArrays(); config.Bind(options); Assert.Equal(2, options.JaggedArray.Length); Assert.Equal(2, options.JaggedArray[0].Length); Assert.Equal(3, options.JaggedArray[1].Length); Assert.Equal("00", options.JaggedArray[0][0]); Assert.Equal("01", options.JaggedArray[0][1]); Assert.Equal("10", options.JaggedArray[1][0]); Assert.Equal("11", options.JaggedArray[1][1]); Assert.Equal("12", options.JaggedArray[1][2]); } [Fact] public void CanBindUninitializedIEnumerable() { var input = new Dictionary<string, string> { {"IEnumerable:0", "val0"}, {"IEnumerable:1", "val1"}, {"IEnumerable:2", "val2"}, {"IEnumerable:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); var array = options.IEnumerable.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void CanBindInitializedIEnumerableAndTheOriginalItemsAreNotMutated() { var input = new Dictionary<string, string> { {"AlreadyInitializedIEnumerableInterface:0", "val0"}, {"AlreadyInitializedIEnumerableInterface:1", "val1"}, {"AlreadyInitializedIEnumerableInterface:2", "val2"}, {"AlreadyInitializedIEnumerableInterface:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new InitializedCollectionsOptions(); config.Bind(options); var array = options.AlreadyInitializedIEnumerableInterface.ToArray(); Assert.Equal(6, array.Length); Assert.Equal("This was here too", array[0]); Assert.Equal("Don't touch me!", array[1]); Assert.Equal("val0", array[2]); Assert.Equal("val1", array[3]); Assert.Equal("val2", array[4]); Assert.Equal("valx", array[5]); // the original list hasn't been touched Assert.Equal(2, options.ListUsedInIEnumerableFieldAndShouldNotBeTouched.Count); Assert.Equal("This was here too", options.ListUsedInIEnumerableFieldAndShouldNotBeTouched.ElementAt(0)); Assert.Equal("Don't touch me!", options.ListUsedInIEnumerableFieldAndShouldNotBeTouched.ElementAt(1)); } [Fact] public void CanBindInitializedCustomIEnumerableBasedList() { // A field declared as IEnumerable<T> that is instantiated with a class // that directly implements IEnumerable<T> is still bound, but with // a new List<T> with the original values copied over. var input = new Dictionary<string, string> { {"AlreadyInitializedCustomListDerivedFromIEnumerable:0", "val0"}, {"AlreadyInitializedCustomListDerivedFromIEnumerable:1", "val1"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new InitializedCollectionsOptions(); config.Bind(options); var array = options.AlreadyInitializedCustomListDerivedFromIEnumerable.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("Item1", array[0]); Assert.Equal("Item2", array[1]); Assert.Equal("val0", array[2]); Assert.Equal("val1", array[3]); } [Fact] public void CanBindInitializedCustomIndirectlyDerivedIEnumerableList() { // A field declared as IEnumerable<T> that is instantiated with a class // that indirectly implements IEnumerable<T> is still bound, but with // a new List<T> with the original values copied over. var input = new Dictionary<string, string> { {"AlreadyInitializedCustomListIndirectlyDerivedFromIEnumerable:0", "val0"}, {"AlreadyInitializedCustomListIndirectlyDerivedFromIEnumerable:1", "val1"}, }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new InitializedCollectionsOptions(); config.Bind(options); var array = options.AlreadyInitializedCustomListIndirectlyDerivedFromIEnumerable.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("Item1", array[0]); Assert.Equal("Item2", array[1]); Assert.Equal("val0", array[2]); Assert.Equal("val1", array[3]); } [Fact] public void CanBindUninitializedICollection() { var input = new Dictionary<string, string> { {"ICollection:0", "val0"}, {"ICollection:1", "val1"}, {"ICollection:2", "val2"}, {"ICollection:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); var array = options.ICollection.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void CanBindUninitializedIReadOnlyCollection() { var input = new Dictionary<string, string> { {"IReadOnlyCollection:0", "val0"}, {"IReadOnlyCollection:1", "val1"}, {"IReadOnlyCollection:2", "val2"}, {"IReadOnlyCollection:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); var array = options.IReadOnlyCollection.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void CanBindUninitializedIReadOnlyList() { var input = new Dictionary<string, string> { {"IReadOnlyList:0", "val0"}, {"IReadOnlyList:1", "val1"}, {"IReadOnlyList:2", "val2"}, {"IReadOnlyList:x", "valx"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); var array = options.IReadOnlyList.ToArray(); Assert.Equal(4, array.Length); Assert.Equal("val0", array[0]); Assert.Equal("val1", array[1]); Assert.Equal("val2", array[2]); Assert.Equal("valx", array[3]); } [Fact] public void CanBindUninitializedIDictionary() { var input = new Dictionary<string, string> { {"IDictionary:abc", "val_1"}, {"IDictionary:def", "val_2"}, {"IDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); Assert.Equal(3, options.IDictionary.Count); Assert.Equal("val_1", options.IDictionary["abc"]); Assert.Equal("val_2", options.IDictionary["def"]); Assert.Equal("val_3", options.IDictionary["ghi"]); } [Fact] public void CanBindUninitializedIReadOnlyDictionary() { var input = new Dictionary<string, string> { {"IReadOnlyDictionary:abc", "val_1"}, {"IReadOnlyDictionary:def", "val_2"}, {"IReadOnlyDictionary:ghi", "val_3"} }; var configurationBuilder = new ConfigurationBuilder(); configurationBuilder.AddInMemoryCollection(input); var config = configurationBuilder.Build(); var options = new UnintializedCollectionsOptions(); config.Bind(options); Assert.Equal(3, options.IReadOnlyDictionary.Count); Assert.Equal("val_1", options.IReadOnlyDictionary["abc"]); Assert.Equal("val_2", options.IReadOnlyDictionary["def"]); Assert.Equal("val_3", options.IReadOnlyDictionary["ghi"]); } private class UnintializedCollectionsOptions { public IEnumerable<string> IEnumerable { get; set; } public IDictionary<string, string> IDictionary { get; set; } public ICollection<string> ICollection { get; set; } public IList<string> IList { get; set; } public IReadOnlyCollection<string> IReadOnlyCollection { get; set; } public IReadOnlyList<string> IReadOnlyList { get; set; } public IReadOnlyDictionary<string, string> IReadOnlyDictionary { get; set; } } private class InitializedCollectionsOptions { public InitializedCollectionsOptions() { AlreadyInitializedIEnumerableInterface = ListUsedInIEnumerableFieldAndShouldNotBeTouched; } public List<string> ListUsedInIEnumerableFieldAndShouldNotBeTouched = new List<string> { "This was here too", "Don't touch me!" }; public IEnumerable<string> AlreadyInitializedIEnumerableInterface { get; set; } public IEnumerable<string> AlreadyInitializedCustomListDerivedFromIEnumerable { get; set; } = new CustomListDerivedFromIEnumerable(); public IEnumerable<string> AlreadyInitializedCustomListIndirectlyDerivedFromIEnumerable { get; set; } = new CustomListIndirectlyDerivedFromIEnumerable(); } private class CustomList : List<string> { // Add an overload, just to make sure binding picks the right Add method public void Add(string a, string b) { } } private class CustomListDerivedFromIEnumerable : IEnumerable<string> { private readonly List<string> _items = new List<string> { "Item1", "Item2" }; public IEnumerator<string> GetEnumerator() => _items.GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); } internal interface IDerivedOne : IDerivedTwo { } internal interface IDerivedTwo : IEnumerable<string> { } private class CustomListIndirectlyDerivedFromIEnumerable : IDerivedOne { private readonly List<string> _items = new List<string> { "Item1", "Item2" }; public IEnumerator<string> GetEnumerator() => _items.GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); } private class CustomDictionary<T> : Dictionary<string, T> { } private class NestedOptions { public int Integer { get; set; } public List<string> ListInNestedOption { get; set; } public int[] ArrayInNestedOption { get; set; } } private enum KeyEnum { abc, def, ghi } private enum KeyUintEnum : uint { abc, def, ghi } private class OptionsWithArrays { public const string InitialValue = "This was here before"; public OptionsWithArrays() { AlreadyInitializedArray = new string[] { InitialValue, null, null }; } public string[] AlreadyInitializedArray { get; set; } public string[] StringArray { get; set; } // this should throw becase we do not support multidimensional arrays public string[,] DimensionalArray { get; set; } public string[][] JaggedArray { get; set; } public NestedOptions[] ObjectArray { get; set; } } private class OptionsWithLists { public OptionsWithLists() { AlreadyInitializedList = new List<string> { "This was here before" }; AlreadyInitializedListInterface = new List<string> { "This was here too" }; } public CustomList CustomList { get; set; } public List<string> StringList { get; set; } public List<int> IntList { get; set; } // This cannot be initialized because we cannot // activate an interface public IList<string> StringListInterface { get; set; } public List<List<string>> NestedLists { get; set; } public List<string> AlreadyInitializedList { get; set; } public List<NestedOptions> ObjectList { get; set; } public IList<string> AlreadyInitializedListInterface { get; set; } } private class OptionsWithDictionary { public OptionsWithDictionary() { AlreadyInitializedStringDictionaryInterface = new Dictionary<string, string> { ["123"] = "This was already here" }; } public Dictionary<string, int> IntDictionary { get; set; } public Dictionary<string, string> StringDictionary { get; set; } public Dictionary<string, NestedOptions> ObjectDictionary { get; set; } public Dictionary<string, List<string>> ListDictionary { get; set; } public Dictionary<NestedOptions, string> NonStringKeyDictionary { get; set; } // This cannot be initialized because we cannot // activate an interface public IDictionary<string, string> StringDictionaryInterface { get; set; } public IDictionary<string, string> AlreadyInitializedStringDictionaryInterface { get; set; } } } }
1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/Loader/classloader/generics/Instantiation/Positive/NestedStruct01.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; public struct ValX0 {} public struct ValY0 {} public struct ValX1<T> {} public struct ValY1<T> {} public struct ValX2<T,U> {} public struct ValY2<T,U>{} public struct ValX3<T,U,V>{} public struct ValY3<T,U,V>{} public class RefX0 {} public class RefY0 {} public class RefX1<T> {} public class RefY1<T> {} public class RefX2<T,U> {} public class RefY2<T,U>{} public class RefX3<T,U,V>{} public class RefY3<T,U,V>{} public class Outer { public struct GenInner<T> { public T Fld1; public GenInner(T fld1) { Fld1 = fld1; } public bool InstVerify(System.Type t1) { bool result = true; if (!(Fld1.GetType().Equals(t1))) { result = false; Console.WriteLine("Failed to verify type of Fld1 in: " + typeof(Outer.GenInner<T>) ); } return result; } } } public class Test_NestedStruct01 { public static int counter = 0; public static bool result = true; public static void Eval(bool exp) { counter++; if (!exp) { result = exp; Console.WriteLine("Test Failed at location: " + counter); } } public static int Main() { Eval((new Outer.GenInner<int>(new int())).InstVerify(typeof(int))); Eval((new Outer.GenInner<double>(new double())).InstVerify(typeof(double))); Eval((new Outer.GenInner<string>("string")).InstVerify(typeof(string))); Eval((new Outer.GenInner<object>(new object())).InstVerify(typeof(object))); Eval((new Outer.GenInner<Guid>(new Guid())).InstVerify(typeof(Guid))); Eval((new Outer.GenInner<int[]>(new int[1])).InstVerify(typeof(int[]))); Eval((new Outer.GenInner<double[,]>(new double[1,1])).InstVerify(typeof(double[,]))); Eval((new Outer.GenInner<string[][][]>(new string[1][][])).InstVerify(typeof(string[][][]))); Eval((new Outer.GenInner<object[,,,]>(new object[1,1,1,1])).InstVerify(typeof(object[,,,]))); Eval((new Outer.GenInner<Guid[][,,,][]>(new Guid[1][,,,][])).InstVerify(typeof(Guid[][,,,][]))); Eval((new Outer.GenInner<RefX1<int>[]>(new RefX1<int>[]{})).InstVerify(typeof(RefX1<int>[]))); Eval((new Outer.GenInner<RefX1<double>[,]>(new RefX1<double>[1,1])).InstVerify(typeof(RefX1<double>[,]))); Eval((new Outer.GenInner<RefX1<string>[][][]>(new RefX1<string>[1][][])).InstVerify(typeof(RefX1<string>[][][]))); Eval((new Outer.GenInner<RefX1<object>[,,,]>(new RefX1<object>[1,1,1,1])).InstVerify(typeof(RefX1<object>[,,,]))); Eval((new Outer.GenInner<RefX1<Guid>[][,,,][]>(new RefX1<Guid>[1][,,,][])).InstVerify(typeof(RefX1<Guid>[][,,,][]))); Eval((new Outer.GenInner<RefX2<int,int>[]>(new RefX2<int,int>[]{})).InstVerify(typeof(RefX2<int,int>[]))); Eval((new Outer.GenInner<RefX2<double,double>[,]>(new RefX2<double,double>[1,1])).InstVerify(typeof(RefX2<double,double>[,]))); Eval((new Outer.GenInner<RefX2<string,string>[][][]>(new RefX2<string,string>[1][][])).InstVerify(typeof(RefX2<string,string>[][][]))); Eval((new Outer.GenInner<RefX2<object,object>[,,,]>(new RefX2<object,object>[1,1,1,1])).InstVerify(typeof(RefX2<object,object>[,,,]))); Eval((new Outer.GenInner<RefX2<Guid,Guid>[][,,,][]>(new RefX2<Guid,Guid>[1][,,,][])).InstVerify(typeof(RefX2<Guid,Guid>[][,,,][]))); Eval((new Outer.GenInner<ValX1<int>[]>(new ValX1<int>[]{})).InstVerify(typeof(ValX1<int>[]))); Eval((new Outer.GenInner<ValX1<double>[,]>(new ValX1<double>[1,1])).InstVerify(typeof(ValX1<double>[,]))); Eval((new Outer.GenInner<ValX1<string>[][][]>(new ValX1<string>[1][][])).InstVerify(typeof(ValX1<string>[][][]))); Eval((new Outer.GenInner<ValX1<object>[,,,]>(new ValX1<object>[1,1,1,1])).InstVerify(typeof(ValX1<object>[,,,]))); Eval((new Outer.GenInner<ValX1<Guid>[][,,,][]>(new ValX1<Guid>[1][,,,][])).InstVerify(typeof(ValX1<Guid>[][,,,][]))); Eval((new Outer.GenInner<ValX2<int,int>[]>(new ValX2<int,int>[]{})).InstVerify(typeof(ValX2<int,int>[]))); Eval((new Outer.GenInner<ValX2<double,double>[,]>(new ValX2<double,double>[1,1])).InstVerify(typeof(ValX2<double,double>[,]))); Eval((new Outer.GenInner<ValX2<string,string>[][][]>(new ValX2<string,string>[1][][])).InstVerify(typeof(ValX2<string,string>[][][]))); Eval((new Outer.GenInner<ValX2<object,object>[,,,]>(new ValX2<object,object>[1,1,1,1])).InstVerify(typeof(ValX2<object,object>[,,,]))); Eval((new Outer.GenInner<ValX2<Guid,Guid>[][,,,][]>(new ValX2<Guid,Guid>[1][,,,][])).InstVerify(typeof(ValX2<Guid,Guid>[][,,,][]))); Eval((new Outer.GenInner<RefX1<int>>(new RefX1<int>())).InstVerify(typeof(RefX1<int>))); Eval((new Outer.GenInner<RefX1<ValX1<int>>>(new RefX1<ValX1<int>>())).InstVerify(typeof(RefX1<ValX1<int>>))); Eval((new Outer.GenInner<RefX2<int,string>>(new RefX2<int,string>())).InstVerify(typeof(RefX2<int,string>))); Eval((new Outer.GenInner<RefX3<int,string,Guid>>(new RefX3<int,string,Guid>())).InstVerify(typeof(RefX3<int,string,Guid>))); Eval((new Outer.GenInner<RefX1<RefX1<int>>>(new RefX1<RefX1<int>>())).InstVerify(typeof(RefX1<RefX1<int>>))); Eval((new Outer.GenInner<RefX1<RefX1<RefX1<string>>>>(new RefX1<RefX1<RefX1<string>>>())).InstVerify(typeof(RefX1<RefX1<RefX1<string>>>))); Eval((new Outer.GenInner<RefX1<RefX1<RefX1<RefX1<Guid>>>>>(new RefX1<RefX1<RefX1<RefX1<Guid>>>>())).InstVerify(typeof(RefX1<RefX1<RefX1<RefX1<Guid>>>>))); Eval((new Outer.GenInner<RefX1<RefX2<int,string>>>(new RefX1<RefX2<int,string>>())).InstVerify(typeof(RefX1<RefX2<int,string>>))); Eval((new Outer.GenInner<RefX2<RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>,RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>>>(new RefX2<RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>,RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>>())).InstVerify(typeof(RefX2<RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>,RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>>))); Eval((new Outer.GenInner<RefX3<RefX1<int[][,,,]>,RefX2<object[,,,][][],Guid[][][]>,RefX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>>(new RefX3<RefX1<int[][,,,]>,RefX2<object[,,,][][],Guid[][][]>,RefX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>())).InstVerify(typeof(RefX3<RefX1<int[][,,,]>,RefX2<object[,,,][][],Guid[][][]>,RefX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>))); Eval((new Outer.GenInner<ValX1<int>>(new ValX1<int>())).InstVerify(typeof(ValX1<int>))); Eval((new Outer.GenInner<ValX1<RefX1<int>>>(new ValX1<RefX1<int>>())).InstVerify(typeof(ValX1<RefX1<int>>))); Eval((new Outer.GenInner<ValX2<int,string>>(new ValX2<int,string>())).InstVerify(typeof(ValX2<int,string>))); Eval((new Outer.GenInner<ValX3<int,string,Guid>>(new ValX3<int,string,Guid>())).InstVerify(typeof(ValX3<int,string,Guid>))); Eval((new Outer.GenInner<ValX1<ValX1<int>>>(new ValX1<ValX1<int>>())).InstVerify(typeof(ValX1<ValX1<int>>))); Eval((new Outer.GenInner<ValX1<ValX1<ValX1<string>>>>(new ValX1<ValX1<ValX1<string>>>())).InstVerify(typeof(ValX1<ValX1<ValX1<string>>>))); Eval((new Outer.GenInner<ValX1<ValX1<ValX1<ValX1<Guid>>>>>(new ValX1<ValX1<ValX1<ValX1<Guid>>>>())).InstVerify(typeof(ValX1<ValX1<ValX1<ValX1<Guid>>>>))); Eval((new Outer.GenInner<ValX1<ValX2<int,string>>>(new ValX1<ValX2<int,string>>())).InstVerify(typeof(ValX1<ValX2<int,string>>))); Eval((new Outer.GenInner<ValX2<ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>,ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>>>(new ValX2<ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>,ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>>())).InstVerify(typeof(ValX2<ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>,ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>>))); Eval((new Outer.GenInner<ValX3<ValX1<int[][,,,]>,ValX2<object[,,,][][],Guid[][][]>,ValX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>>(new ValX3<ValX1<int[][,,,]>,ValX2<object[,,,][][],Guid[][][]>,ValX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>())).InstVerify(typeof(ValX3<ValX1<int[][,,,]>,ValX2<object[,,,][][],Guid[][][]>,ValX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>))); if (result) { Console.WriteLine("Test Passed"); return 100; } else { Console.WriteLine("Test Failed"); return 1; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; public struct ValX0 {} public struct ValY0 {} public struct ValX1<T> {} public struct ValY1<T> {} public struct ValX2<T,U> {} public struct ValY2<T,U>{} public struct ValX3<T,U,V>{} public struct ValY3<T,U,V>{} public class RefX0 {} public class RefY0 {} public class RefX1<T> {} public class RefY1<T> {} public class RefX2<T,U> {} public class RefY2<T,U>{} public class RefX3<T,U,V>{} public class RefY3<T,U,V>{} public class Outer { public struct GenInner<T> { public T Fld1; public GenInner(T fld1) { Fld1 = fld1; } public bool InstVerify(System.Type t1) { bool result = true; if (!(Fld1.GetType().Equals(t1))) { result = false; Console.WriteLine("Failed to verify type of Fld1 in: " + typeof(Outer.GenInner<T>) ); } return result; } } } public class Test_NestedStruct01 { public static int counter = 0; public static bool result = true; public static void Eval(bool exp) { counter++; if (!exp) { result = exp; Console.WriteLine("Test Failed at location: " + counter); } } public static int Main() { Eval((new Outer.GenInner<int>(new int())).InstVerify(typeof(int))); Eval((new Outer.GenInner<double>(new double())).InstVerify(typeof(double))); Eval((new Outer.GenInner<string>("string")).InstVerify(typeof(string))); Eval((new Outer.GenInner<object>(new object())).InstVerify(typeof(object))); Eval((new Outer.GenInner<Guid>(new Guid())).InstVerify(typeof(Guid))); Eval((new Outer.GenInner<int[]>(new int[1])).InstVerify(typeof(int[]))); Eval((new Outer.GenInner<double[,]>(new double[1,1])).InstVerify(typeof(double[,]))); Eval((new Outer.GenInner<string[][][]>(new string[1][][])).InstVerify(typeof(string[][][]))); Eval((new Outer.GenInner<object[,,,]>(new object[1,1,1,1])).InstVerify(typeof(object[,,,]))); Eval((new Outer.GenInner<Guid[][,,,][]>(new Guid[1][,,,][])).InstVerify(typeof(Guid[][,,,][]))); Eval((new Outer.GenInner<RefX1<int>[]>(new RefX1<int>[]{})).InstVerify(typeof(RefX1<int>[]))); Eval((new Outer.GenInner<RefX1<double>[,]>(new RefX1<double>[1,1])).InstVerify(typeof(RefX1<double>[,]))); Eval((new Outer.GenInner<RefX1<string>[][][]>(new RefX1<string>[1][][])).InstVerify(typeof(RefX1<string>[][][]))); Eval((new Outer.GenInner<RefX1<object>[,,,]>(new RefX1<object>[1,1,1,1])).InstVerify(typeof(RefX1<object>[,,,]))); Eval((new Outer.GenInner<RefX1<Guid>[][,,,][]>(new RefX1<Guid>[1][,,,][])).InstVerify(typeof(RefX1<Guid>[][,,,][]))); Eval((new Outer.GenInner<RefX2<int,int>[]>(new RefX2<int,int>[]{})).InstVerify(typeof(RefX2<int,int>[]))); Eval((new Outer.GenInner<RefX2<double,double>[,]>(new RefX2<double,double>[1,1])).InstVerify(typeof(RefX2<double,double>[,]))); Eval((new Outer.GenInner<RefX2<string,string>[][][]>(new RefX2<string,string>[1][][])).InstVerify(typeof(RefX2<string,string>[][][]))); Eval((new Outer.GenInner<RefX2<object,object>[,,,]>(new RefX2<object,object>[1,1,1,1])).InstVerify(typeof(RefX2<object,object>[,,,]))); Eval((new Outer.GenInner<RefX2<Guid,Guid>[][,,,][]>(new RefX2<Guid,Guid>[1][,,,][])).InstVerify(typeof(RefX2<Guid,Guid>[][,,,][]))); Eval((new Outer.GenInner<ValX1<int>[]>(new ValX1<int>[]{})).InstVerify(typeof(ValX1<int>[]))); Eval((new Outer.GenInner<ValX1<double>[,]>(new ValX1<double>[1,1])).InstVerify(typeof(ValX1<double>[,]))); Eval((new Outer.GenInner<ValX1<string>[][][]>(new ValX1<string>[1][][])).InstVerify(typeof(ValX1<string>[][][]))); Eval((new Outer.GenInner<ValX1<object>[,,,]>(new ValX1<object>[1,1,1,1])).InstVerify(typeof(ValX1<object>[,,,]))); Eval((new Outer.GenInner<ValX1<Guid>[][,,,][]>(new ValX1<Guid>[1][,,,][])).InstVerify(typeof(ValX1<Guid>[][,,,][]))); Eval((new Outer.GenInner<ValX2<int,int>[]>(new ValX2<int,int>[]{})).InstVerify(typeof(ValX2<int,int>[]))); Eval((new Outer.GenInner<ValX2<double,double>[,]>(new ValX2<double,double>[1,1])).InstVerify(typeof(ValX2<double,double>[,]))); Eval((new Outer.GenInner<ValX2<string,string>[][][]>(new ValX2<string,string>[1][][])).InstVerify(typeof(ValX2<string,string>[][][]))); Eval((new Outer.GenInner<ValX2<object,object>[,,,]>(new ValX2<object,object>[1,1,1,1])).InstVerify(typeof(ValX2<object,object>[,,,]))); Eval((new Outer.GenInner<ValX2<Guid,Guid>[][,,,][]>(new ValX2<Guid,Guid>[1][,,,][])).InstVerify(typeof(ValX2<Guid,Guid>[][,,,][]))); Eval((new Outer.GenInner<RefX1<int>>(new RefX1<int>())).InstVerify(typeof(RefX1<int>))); Eval((new Outer.GenInner<RefX1<ValX1<int>>>(new RefX1<ValX1<int>>())).InstVerify(typeof(RefX1<ValX1<int>>))); Eval((new Outer.GenInner<RefX2<int,string>>(new RefX2<int,string>())).InstVerify(typeof(RefX2<int,string>))); Eval((new Outer.GenInner<RefX3<int,string,Guid>>(new RefX3<int,string,Guid>())).InstVerify(typeof(RefX3<int,string,Guid>))); Eval((new Outer.GenInner<RefX1<RefX1<int>>>(new RefX1<RefX1<int>>())).InstVerify(typeof(RefX1<RefX1<int>>))); Eval((new Outer.GenInner<RefX1<RefX1<RefX1<string>>>>(new RefX1<RefX1<RefX1<string>>>())).InstVerify(typeof(RefX1<RefX1<RefX1<string>>>))); Eval((new Outer.GenInner<RefX1<RefX1<RefX1<RefX1<Guid>>>>>(new RefX1<RefX1<RefX1<RefX1<Guid>>>>())).InstVerify(typeof(RefX1<RefX1<RefX1<RefX1<Guid>>>>))); Eval((new Outer.GenInner<RefX1<RefX2<int,string>>>(new RefX1<RefX2<int,string>>())).InstVerify(typeof(RefX1<RefX2<int,string>>))); Eval((new Outer.GenInner<RefX2<RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>,RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>>>(new RefX2<RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>,RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>>())).InstVerify(typeof(RefX2<RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>,RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>>))); Eval((new Outer.GenInner<RefX3<RefX1<int[][,,,]>,RefX2<object[,,,][][],Guid[][][]>,RefX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>>(new RefX3<RefX1<int[][,,,]>,RefX2<object[,,,][][],Guid[][][]>,RefX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>())).InstVerify(typeof(RefX3<RefX1<int[][,,,]>,RefX2<object[,,,][][],Guid[][][]>,RefX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>))); Eval((new Outer.GenInner<ValX1<int>>(new ValX1<int>())).InstVerify(typeof(ValX1<int>))); Eval((new Outer.GenInner<ValX1<RefX1<int>>>(new ValX1<RefX1<int>>())).InstVerify(typeof(ValX1<RefX1<int>>))); Eval((new Outer.GenInner<ValX2<int,string>>(new ValX2<int,string>())).InstVerify(typeof(ValX2<int,string>))); Eval((new Outer.GenInner<ValX3<int,string,Guid>>(new ValX3<int,string,Guid>())).InstVerify(typeof(ValX3<int,string,Guid>))); Eval((new Outer.GenInner<ValX1<ValX1<int>>>(new ValX1<ValX1<int>>())).InstVerify(typeof(ValX1<ValX1<int>>))); Eval((new Outer.GenInner<ValX1<ValX1<ValX1<string>>>>(new ValX1<ValX1<ValX1<string>>>())).InstVerify(typeof(ValX1<ValX1<ValX1<string>>>))); Eval((new Outer.GenInner<ValX1<ValX1<ValX1<ValX1<Guid>>>>>(new ValX1<ValX1<ValX1<ValX1<Guid>>>>())).InstVerify(typeof(ValX1<ValX1<ValX1<ValX1<Guid>>>>))); Eval((new Outer.GenInner<ValX1<ValX2<int,string>>>(new ValX1<ValX2<int,string>>())).InstVerify(typeof(ValX1<ValX2<int,string>>))); Eval((new Outer.GenInner<ValX2<ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>,ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>>>(new ValX2<ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>,ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>>())).InstVerify(typeof(ValX2<ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>,ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>>))); Eval((new Outer.GenInner<ValX3<ValX1<int[][,,,]>,ValX2<object[,,,][][],Guid[][][]>,ValX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>>(new ValX3<ValX1<int[][,,,]>,ValX2<object[,,,][][],Guid[][][]>,ValX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>())).InstVerify(typeof(ValX3<ValX1<int[][,,,]>,ValX2<object[,,,][][],Guid[][][]>,ValX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>))); if (result) { Console.WriteLine("Test Passed"); return 100; } else { Console.WriteLine("Test Failed"); return 1; } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/JIT/HardwareIntrinsics/X86/Sse2/AndNot.UInt16.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { private static void AndNotUInt16() { var test = new SimpleBinaryOpTest__AndNotUInt16(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (Sse2.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); // Validates basic functionality works, using LoadAligned test.RunBasicScenario_LoadAligned(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (Sse2.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); // Validates calling via reflection works, using LoadAligned test.RunReflectionScenario_LoadAligned(); } // Validates passing a static member works test.RunClsVarScenario(); if (Sse2.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (Sse2.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); // Validates passing a local works, using LoadAligned test.RunLclVarScenario_LoadAligned(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (Sse2.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (Sse2.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (Sse2.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (Sse2.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleBinaryOpTest__AndNotUInt16 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(UInt16[] inArray1, UInt16[] inArray2, UInt16[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>(); if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector128<UInt16> _fld1; public Vector128<UInt16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__AndNotUInt16 testClass) { var result = Sse2.AndNot(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__AndNotUInt16 testClass) { fixed (Vector128<UInt16>* pFld1 = &_fld1) fixed (Vector128<UInt16>* pFld2 = &_fld2) { var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(pFld1)), Sse2.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static UInt16[] _data1 = new UInt16[Op1ElementCount]; private static UInt16[] _data2 = new UInt16[Op2ElementCount]; private static Vector128<UInt16> _clsVar1; private static Vector128<UInt16> _clsVar2; private Vector128<UInt16> _fld1; private Vector128<UInt16> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__AndNotUInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); } public SimpleBinaryOpTest__AndNotUInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new DataTable(_data1, _data2, new UInt16[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Sse2.AndNot( Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); var result = Sse2.AndNot( Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray1Ptr)), Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Sse2).GetMethod(nameof(Sse2.AndNot), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Sse2).GetMethod(nameof(Sse2.AndNot), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { Sse2.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(Sse2).GetMethod(nameof(Sse2.AndNot), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray1Ptr)), Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Sse2.AndNot( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<UInt16>* pClsVar1 = &_clsVar1) fixed (Vector128<UInt16>* pClsVar2 = &_clsVar2) { var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(pClsVar1)), Sse2.LoadVector128((UInt16*)(pClsVar2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr); var result = Sse2.AndNot(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = Sse2.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = Sse2.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); var result = Sse2.AndNot(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var op1 = Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray2Ptr)); var result = Sse2.AndNot(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__AndNotUInt16(); var result = Sse2.AndNot(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleBinaryOpTest__AndNotUInt16(); fixed (Vector128<UInt16>* pFld1 = &test._fld1) fixed (Vector128<UInt16>* pFld2 = &test._fld2) { var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(pFld1)), Sse2.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Sse2.AndNot(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<UInt16>* pFld1 = &_fld1) fixed (Vector128<UInt16>* pFld2 = &_fld2) { var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(pFld1)), Sse2.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Sse2.AndNot(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(&test._fld1)), Sse2.LoadVector128((UInt16*)(&test._fld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector128<UInt16> op1, Vector128<UInt16> op2, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(UInt16[] left, UInt16[] right, UInt16[] result, [CallerMemberName] string method = "") { bool succeeded = true; if ((ushort)(~left[0] & right[0]) != result[0]) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if ((ushort)(~left[i] & right[i]) != result[i]) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Sse2)}.{nameof(Sse2.AndNot)}<UInt16>(Vector128<UInt16>, Vector128<UInt16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { private static void AndNotUInt16() { var test = new SimpleBinaryOpTest__AndNotUInt16(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (Sse2.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); // Validates basic functionality works, using LoadAligned test.RunBasicScenario_LoadAligned(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (Sse2.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); // Validates calling via reflection works, using LoadAligned test.RunReflectionScenario_LoadAligned(); } // Validates passing a static member works test.RunClsVarScenario(); if (Sse2.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (Sse2.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); // Validates passing a local works, using LoadAligned test.RunLclVarScenario_LoadAligned(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (Sse2.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (Sse2.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (Sse2.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (Sse2.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleBinaryOpTest__AndNotUInt16 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(UInt16[] inArray1, UInt16[] inArray2, UInt16[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>(); if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector128<UInt16> _fld1; public Vector128<UInt16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); return testStruct; } public void RunStructFldScenario(SimpleBinaryOpTest__AndNotUInt16 testClass) { var result = Sse2.AndNot(_fld1, _fld2); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleBinaryOpTest__AndNotUInt16 testClass) { fixed (Vector128<UInt16>* pFld1 = &_fld1) fixed (Vector128<UInt16>* pFld2 = &_fld2) { var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(pFld1)), Sse2.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<UInt16>>() / sizeof(UInt16); private static UInt16[] _data1 = new UInt16[Op1ElementCount]; private static UInt16[] _data2 = new UInt16[Op2ElementCount]; private static Vector128<UInt16> _clsVar1; private static Vector128<UInt16> _clsVar2; private Vector128<UInt16> _fld1; private Vector128<UInt16> _fld2; private DataTable _dataTable; static SimpleBinaryOpTest__AndNotUInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); } public SimpleBinaryOpTest__AndNotUInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new DataTable(_data1, _data2, new UInt16[RetElementCount], LargestVectorSize); } public bool IsSupported => Sse2.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Sse2.AndNot( Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); var result = Sse2.AndNot( Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray1Ptr)), Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray2Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Sse2).GetMethod(nameof(Sse2.AndNot), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Sse2).GetMethod(nameof(Sse2.AndNot), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { Sse2.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(Sse2).GetMethod(nameof(Sse2.AndNot), new Type[] { typeof(Vector128<UInt16>), typeof(Vector128<UInt16>) }) .Invoke(null, new object[] { Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray1Ptr)), Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray2Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Sse2.AndNot( _clsVar1, _clsVar2 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector128<UInt16>* pClsVar1 = &_clsVar1) fixed (Vector128<UInt16>* pClsVar2 = &_clsVar2) { var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(pClsVar1)), Sse2.LoadVector128((UInt16*)(pClsVar2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<UInt16>>(_dataTable.inArray2Ptr); var result = Sse2.AndNot(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = Sse2.LoadVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = Sse2.LoadVector128((UInt16*)(_dataTable.inArray2Ptr)); var result = Sse2.AndNot(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var op1 = Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray1Ptr)); var op2 = Sse2.LoadAlignedVector128((UInt16*)(_dataTable.inArray2Ptr)); var result = Sse2.AndNot(op1, op2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleBinaryOpTest__AndNotUInt16(); var result = Sse2.AndNot(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleBinaryOpTest__AndNotUInt16(); fixed (Vector128<UInt16>* pFld1 = &test._fld1) fixed (Vector128<UInt16>* pFld2 = &test._fld2) { var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(pFld1)), Sse2.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Sse2.AndNot(_fld1, _fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector128<UInt16>* pFld1 = &_fld1) fixed (Vector128<UInt16>* pFld2 = &_fld2) { var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(pFld1)), Sse2.LoadVector128((UInt16*)(pFld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Sse2.AndNot(test._fld1, test._fld2); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = Sse2.AndNot( Sse2.LoadVector128((UInt16*)(&test._fld1)), Sse2.LoadVector128((UInt16*)(&test._fld2)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector128<UInt16> op1, Vector128<UInt16> op2, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* op1, void* op2, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<UInt16>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(UInt16[] left, UInt16[] right, UInt16[] result, [CallerMemberName] string method = "") { bool succeeded = true; if ((ushort)(~left[0] & right[0]) != result[0]) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if ((ushort)(~left[i] & right[i]) != result[i]) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Sse2)}.{nameof(Sse2.AndNot)}<UInt16>(Vector128<UInt16>, Vector128<UInt16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Data.Common/tests/System/Data/SqlTypes/SqlInt16Test.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // (C) 2002 Ville Palo // (C) 2003 Martin Willemoes Hansen // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. using Xunit; using System.Xml; using System.Data.SqlTypes; using System.Xml.Serialization; using System.IO; namespace System.Data.Tests.SqlTypes { public class SqlInt16Test { // Test constructor [Fact] public void Create() { SqlInt16 testShort = new SqlInt16(29); Assert.Equal((short)29, testShort.Value); testShort = new SqlInt16(-9000); Assert.Equal((short)-9000, testShort.Value); } // Test public fields [Fact] public void PublicFields() { Assert.Equal((SqlInt16)32767, SqlInt16.MaxValue); Assert.Equal((SqlInt16)(-32768), SqlInt16.MinValue); Assert.True(SqlInt16.Null.IsNull); Assert.Equal((short)0, SqlInt16.Zero.Value); } // Test properties [Fact] public void Properties() { SqlInt16 test5443 = new SqlInt16(5443); SqlInt16 test1 = new SqlInt16(1); Assert.True(SqlInt16.Null.IsNull); Assert.Equal((short)5443, test5443.Value); Assert.Equal((short)1, test1.Value); } // PUBLIC METHODS [Fact] public void ArithmeticMethods() { SqlInt16 test64 = new SqlInt16(64); SqlInt16 test0 = new SqlInt16(0); SqlInt16 test164 = new SqlInt16(164); SqlInt16 testMax = new SqlInt16(SqlInt16.MaxValue.Value); // Add() Assert.Equal((short)64, SqlInt16.Add(test64, test0).Value); Assert.Equal((short)228, SqlInt16.Add(test64, test164).Value); Assert.Equal((short)164, SqlInt16.Add(test0, test164).Value); Assert.Equal((short)SqlInt16.MaxValue, SqlInt16.Add(testMax, test0).Value); Assert.Throws<OverflowException>(() => SqlInt16.Add(testMax, test64)); // Divide() Assert.Equal((short)2, SqlInt16.Divide(test164, test64).Value); Assert.Equal((short)0, SqlInt16.Divide(test64, test164).Value); Assert.Throws<DivideByZeroException>(() => SqlInt16.Divide(test64, test0)); // Mod() Assert.Equal((SqlInt16)36, SqlInt16.Mod(test164, test64)); Assert.Equal((SqlInt16)64, SqlInt16.Mod(test64, test164)); // Multiply() Assert.Equal((short)10496, SqlInt16.Multiply(test64, test164).Value); Assert.Equal((short)0, SqlInt16.Multiply(test64, test0).Value); Assert.Throws<OverflowException>(() => SqlInt16.Multiply(testMax, test64)); // Subtract() Assert.Equal((short)100, SqlInt16.Subtract(test164, test64).Value); Assert.Throws<OverflowException>(() => SqlInt16.Subtract(SqlInt16.MinValue, test164)); // Modulus () Assert.Equal((SqlInt16)36, SqlInt16.Modulus(test164, test64)); Assert.Equal((SqlInt16)64, SqlInt16.Modulus(test64, test164)); } [Fact] public void BitwiseMethods() { short MaxValue = SqlInt16.MaxValue.Value; SqlInt16 TestInt = new SqlInt16(0); SqlInt16 TestIntMax = new SqlInt16(MaxValue); SqlInt16 TestInt2 = new SqlInt16(10922); SqlInt16 TestInt3 = new SqlInt16(21845); // BitwiseAnd Assert.Equal((short)21845, SqlInt16.BitwiseAnd(TestInt3, TestIntMax).Value); Assert.Equal((short)0, SqlInt16.BitwiseAnd(TestInt2, TestInt3).Value); Assert.Equal((short)10922, SqlInt16.BitwiseAnd(TestInt2, TestIntMax).Value); //BitwiseOr Assert.Equal(MaxValue, SqlInt16.BitwiseOr(TestInt2, TestInt3).Value); Assert.Equal((short)21845, SqlInt16.BitwiseOr(TestInt, TestInt3).Value); Assert.Equal(MaxValue, SqlInt16.BitwiseOr(TestIntMax, TestInt2).Value); } [Fact] public void CompareTo() { SqlInt16 testInt4000 = new SqlInt16(4000); SqlInt16 testInt4000II = new SqlInt16(4000); SqlInt16 testInt10 = new SqlInt16(10); SqlInt16 testInt10000 = new SqlInt16(10000); SqlString testString = new SqlString("This is a test"); Assert.True(testInt4000.CompareTo(testInt10) > 0); Assert.True(testInt10.CompareTo(testInt4000) < 0); Assert.Equal(0, testInt4000II.CompareTo(testInt4000)); Assert.True(testInt4000II.CompareTo(SqlInt16.Null) > 0); Assert.Throws<ArgumentException>(() => testInt10.CompareTo(testString)); } [Fact] public void EqualsMethod() { SqlInt16 test0 = new SqlInt16(0); SqlInt16 test158 = new SqlInt16(158); SqlInt16 test180 = new SqlInt16(180); SqlInt16 test180II = new SqlInt16(180); Assert.False(test0.Equals(test158)); Assert.False(test0.Equals((object)test158)); Assert.False(test158.Equals(test180)); Assert.False(test158.Equals((object)test180)); Assert.False(test180.Equals(new SqlString("TEST"))); Assert.True(test180.Equals(test180II)); Assert.True(test180.Equals((object)test180II)); } [Fact] public void StaticEqualsMethod() { SqlInt16 test34 = new SqlInt16(34); SqlInt16 test34II = new SqlInt16(34); SqlInt16 test15 = new SqlInt16(15); Assert.True(SqlInt16.Equals(test34, test34II).Value); Assert.False(SqlInt16.Equals(test34, test15).Value); Assert.False(SqlInt16.Equals(test15, test34II).Value); } [Fact] public void GetHashCodeTest() { SqlInt16 test15 = new SqlInt16(15); // FIXME: Better way to test GetHashCode()-methods Assert.Equal(test15.GetHashCode(), test15.GetHashCode()); } [Fact] public void Greaters() { SqlInt16 test10 = new SqlInt16(10); SqlInt16 test10II = new SqlInt16(10); SqlInt16 test110 = new SqlInt16(110); // GreateThan () Assert.False(SqlInt16.GreaterThan(test10, test110).Value); Assert.True(SqlInt16.GreaterThan(test110, test10).Value); Assert.False(SqlInt16.GreaterThan(test10II, test10).Value); // GreaterTharOrEqual () Assert.False(SqlInt16.GreaterThanOrEqual(test10, test110).Value); Assert.True(SqlInt16.GreaterThanOrEqual(test110, test10).Value); Assert.True(SqlInt16.GreaterThanOrEqual(test10II, test10).Value); } [Fact] public void Lessers() { SqlInt16 test10 = new SqlInt16(10); SqlInt16 test10II = new SqlInt16(10); SqlInt16 test110 = new SqlInt16(110); // LessThan() Assert.True(SqlInt16.LessThan(test10, test110).Value); Assert.False(SqlInt16.LessThan(test110, test10).Value); Assert.False(SqlInt16.LessThan(test10II, test10).Value); // LessThanOrEqual () Assert.True(SqlInt16.LessThanOrEqual(test10, test110).Value); Assert.False(SqlInt16.LessThanOrEqual(test110, test10).Value); Assert.True(SqlInt16.LessThanOrEqual(test10II, test10).Value); Assert.True(SqlInt16.LessThanOrEqual(test10II, SqlInt16.Null).IsNull); } [Fact] public void NotEquals() { SqlInt16 test12 = new SqlInt16(12); SqlInt16 test128 = new SqlInt16(128); SqlInt16 test128II = new SqlInt16(128); Assert.True(SqlInt16.NotEquals(test12, test128).Value); Assert.True(SqlInt16.NotEquals(test128, test12).Value); Assert.True(SqlInt16.NotEquals(test128II, test12).Value); Assert.False(SqlInt16.NotEquals(test128II, test128).Value); Assert.False(SqlInt16.NotEquals(test128, test128II).Value); Assert.True(SqlInt16.NotEquals(SqlInt16.Null, test128II).IsNull); Assert.True(SqlInt16.NotEquals(SqlInt16.Null, test128II).IsNull); } [Fact] public void OnesComplement() { SqlInt16 test12 = new SqlInt16(12); SqlInt16 test128 = new SqlInt16(128); Assert.Equal((SqlInt16)(-13), SqlInt16.OnesComplement(test12)); Assert.Equal((SqlInt16)(-129), SqlInt16.OnesComplement(test128)); } [Fact] public void Parse() { Assert.Throws<ArgumentNullException>(() => SqlInt16.Parse(null)); Assert.Throws<FormatException>(() => SqlInt16.Parse("not-a-number")); Assert.Throws<OverflowException>(() => SqlInt16.Parse(((int)SqlInt16.MaxValue + 1).ToString())); Assert.Equal((short)150, SqlInt16.Parse("150").Value); } [Fact] public void Conversions() { SqlInt16 test12 = new SqlInt16(12); SqlInt16 test0 = new SqlInt16(0); SqlInt16 testNull = SqlInt16.Null; SqlInt16 test1000 = new SqlInt16(1000); SqlInt16 test288 = new SqlInt16(288); // ToSqlBoolean () Assert.True(test12.ToSqlBoolean().Value); Assert.False(test0.ToSqlBoolean().Value); Assert.True(testNull.ToSqlBoolean().IsNull); // ToSqlByte () Assert.Equal((byte)12, test12.ToSqlByte().Value); Assert.Equal((byte)0, test0.ToSqlByte().Value); Assert.Throws<OverflowException>(() => test1000.ToSqlByte()); // ToSqlDecimal () Assert.Equal(12, test12.ToSqlDecimal().Value); Assert.Equal(0, test0.ToSqlDecimal().Value); Assert.Equal(288, test288.ToSqlDecimal().Value); // ToSqlDouble () Assert.Equal(12, test12.ToSqlDouble().Value); Assert.Equal(0, test0.ToSqlDouble().Value); Assert.Equal(1000, test1000.ToSqlDouble().Value); // ToSqlInt32 () Assert.Equal(12, test12.ToSqlInt32().Value); Assert.Equal(0, test0.ToSqlInt32().Value); Assert.Equal(288, test288.ToSqlInt32().Value); // ToSqlInt64 () Assert.Equal(12, test12.ToSqlInt64().Value); Assert.Equal(0, test0.ToSqlInt64().Value); Assert.Equal(288, test288.ToSqlInt64().Value); // ToSqlMoney () Assert.Equal(12.0000M, test12.ToSqlMoney().Value); Assert.Equal(0, test0.ToSqlMoney().Value); Assert.Equal(288.0000M, test288.ToSqlMoney().Value); // ToSqlSingle () Assert.Equal(12, test12.ToSqlSingle().Value); Assert.Equal(0, test0.ToSqlSingle().Value); Assert.Equal(288, test288.ToSqlSingle().Value); // ToSqlString () Assert.Equal("12", test12.ToSqlString().Value); Assert.Equal("0", test0.ToSqlString().Value); Assert.Equal("288", test288.ToSqlString().Value); // ToString () Assert.Equal("12", test12.ToString()); Assert.Equal("0", test0.ToString()); Assert.Equal("288", test288.ToString()); } [Fact] public void Xor() { SqlInt16 test14 = new SqlInt16(14); SqlInt16 test58 = new SqlInt16(58); SqlInt16 test130 = new SqlInt16(130); SqlInt16 testMax = new SqlInt16(SqlInt16.MaxValue.Value); SqlInt16 test0 = new SqlInt16(0); Assert.Equal((short)52, SqlInt16.Xor(test14, test58).Value); Assert.Equal((short)140, SqlInt16.Xor(test14, test130).Value); Assert.Equal((short)184, SqlInt16.Xor(test58, test130).Value); Assert.Equal((short)0, SqlInt16.Xor(testMax, testMax).Value); Assert.Equal(testMax.Value, SqlInt16.Xor(testMax, test0).Value); } // OPERATORS [Fact] public void ArithmeticOperators() { SqlInt16 test24 = new SqlInt16(24); SqlInt16 test64 = new SqlInt16(64); SqlInt16 test2550 = new SqlInt16(2550); SqlInt16 test0 = new SqlInt16(0); // "+"-operator Assert.Equal((SqlInt16)2614, test2550 + test64); Assert.Throws<OverflowException>(() => test64 + SqlInt16.MaxValue); // "/"-operator Assert.Equal((SqlInt16)39, test2550 / test64); Assert.Equal((SqlInt16)0, test24 / test64); Assert.Throws<DivideByZeroException>(() => test2550 / test0); // "*"-operator Assert.Equal((SqlInt16)1536, test64 * test24); Assert.Throws<OverflowException>(() => SqlInt16.MaxValue * test64); // "-"-operator Assert.Equal((SqlInt16)2526, test2550 - test24); Assert.Throws<OverflowException>(() => SqlInt16.MinValue - test64); // "%"-operator Assert.Equal((SqlInt16)54, test2550 % test64); Assert.Equal((SqlInt16)24, test24 % test64); Assert.Equal((SqlInt16)0, new SqlInt16(100) % new SqlInt16(10)); } [Fact] public void BitwiseOperators() { SqlInt16 test2 = new SqlInt16(2); SqlInt16 test4 = new SqlInt16(4); SqlInt16 test2550 = new SqlInt16(2550); // & -operator Assert.Equal((SqlInt16)0, test2 & test4); Assert.Equal((SqlInt16)2, test2 & test2550); Assert.Equal((SqlInt16)0, SqlInt16.MaxValue & SqlInt16.MinValue); // | -operator Assert.Equal((SqlInt16)6, test2 | test4); Assert.Equal((SqlInt16)2550, test2 | test2550); Assert.Equal((SqlInt16)(-1), SqlInt16.MinValue | SqlInt16.MaxValue); // ^ -operator Assert.Equal((SqlInt16)2546, (test2550 ^ test4)); Assert.Equal((SqlInt16)6, (test2 ^ test4)); } [Fact] public void ThanOrEqualOperators() { SqlInt16 test165 = new SqlInt16(165); SqlInt16 test100 = new SqlInt16(100); SqlInt16 test100II = new SqlInt16(100); SqlInt16 test255 = new SqlInt16(2550); // == -operator Assert.True((test100 == test100II).Value); Assert.False((test165 == test100).Value); Assert.True((test165 == SqlInt16.Null).IsNull); // != -operator Assert.False((test100 != test100II).Value); Assert.True((test100 != test255).Value); Assert.True((test165 != test255).Value); Assert.True((test165 != SqlInt16.Null).IsNull); // > -operator Assert.True((test165 > test100).Value); Assert.False((test165 > test255).Value); Assert.False((test100 > test100II).Value); Assert.True((test165 > SqlInt16.Null).IsNull); // >= -operator Assert.False((test165 >= test255).Value); Assert.True((test255 >= test165).Value); Assert.True((test100 >= test100II).Value); Assert.True((test165 >= SqlInt16.Null).IsNull); // < -operator Assert.False((test165 < test100).Value); Assert.True((test165 < test255).Value); Assert.False((test100 < test100II).Value); Assert.True((test165 < SqlInt16.Null).IsNull); // <= -operator Assert.True((test165 <= test255).Value); Assert.False((test255 <= test165).Value); Assert.True((test100 <= test100II).Value); Assert.True((test165 <= SqlInt16.Null).IsNull); } [Fact] public void OnesComplementOperator() { SqlInt16 test12 = new SqlInt16(12); SqlInt16 test128 = new SqlInt16(128); Assert.Equal((SqlInt16)(-13), ~test12); Assert.Equal((SqlInt16)(-129), ~test128); Assert.Equal(SqlInt16.Null, ~SqlInt16.Null); } [Fact] public void UnaryNegation() { SqlInt16 test = new SqlInt16(2000); SqlInt16 testNeg = new SqlInt16(-3000); SqlInt16 result = -test; Assert.Equal((short)(-2000), result.Value); result = -testNeg; Assert.Equal((short)3000, result.Value); } [Fact] public void SqlBooleanToSqlInt16() { SqlBoolean testBoolean = new SqlBoolean(true); SqlInt16 result; result = (SqlInt16)testBoolean; Assert.Equal((short)1, result.Value); result = (SqlInt16)SqlBoolean.Null; Assert.True(result.IsNull); } [Fact] public void SqlDecimalToSqlInt16() { SqlDecimal testDecimal64 = new SqlDecimal(64); SqlDecimal testDecimal900 = new SqlDecimal(90000); Assert.Equal((short)64, ((SqlInt16)testDecimal64).Value); Assert.Equal(SqlInt16.Null, ((SqlInt16)SqlDecimal.Null)); Assert.Throws<OverflowException>(() => (SqlInt16)testDecimal900); } [Fact] public void SqlDoubleToSqlInt16() { SqlDouble testDouble64 = new SqlDouble(64); SqlDouble testDouble900 = new SqlDouble(90000); Assert.Equal((short)64, ((SqlInt16)testDouble64).Value); Assert.Equal(SqlInt16.Null, ((SqlInt16)SqlDouble.Null)); Assert.Throws<OverflowException>(() => (SqlInt16)testDouble900); } [Fact] public void SqlIntToInt16() { SqlInt16 test = new SqlInt16(12); short result = (short)test; Assert.Equal((short)12, result); } [Fact] public void SqlInt32ToSqlInt16() { SqlInt32 test64 = new SqlInt32(64); SqlInt32 test900 = new SqlInt32(90000); Assert.Equal((short)64, ((SqlInt16)test64).Value); Assert.Throws<OverflowException>(() =>(SqlInt16)test900); } [Fact] public void SqlInt64ToSqlInt16() { SqlInt64 test64 = new SqlInt64(64); SqlInt64 test900 = new SqlInt64(90000); Assert.Equal((short)64, ((SqlInt16)test64).Value); Assert.Throws<OverflowException>(() => (SqlInt16)test900); } [Fact] public void SqlMoneyToSqlInt16() { SqlMoney testMoney64 = new SqlMoney(64); SqlMoney testMoney900 = new SqlMoney(90000); Assert.Equal((short)64, ((SqlInt16)testMoney64).Value); Assert.Throws<OverflowException>(() => (SqlInt16)testMoney900); } [Fact] public void SqlSingleToSqlInt16() { SqlSingle testSingle64 = new SqlSingle(64); SqlSingle testSingle900 = new SqlSingle(90000); Assert.Equal((short)64, ((SqlInt16)testSingle64).Value); Assert.Throws<OverflowException>(() => (SqlInt16)testSingle900); } [Fact] public void SqlStringToSqlInt16() { SqlString testString = new SqlString("Test string"); SqlString testString100 = new SqlString("100"); SqlString testString1000 = new SqlString("100000"); Assert.Equal((short)100, ((SqlInt16)testString100).Value); Assert.Throws<OverflowException>(() => (SqlInt16)testString1000); Assert.Throws<FormatException>(() => (SqlInt16)testString); } [Fact] public void ByteToSqlInt16() { short testShort = 14; Assert.Equal((short)14, ((SqlInt16)testShort).Value); } [Fact] public void GetXsdTypeTest() { XmlQualifiedName qualifiedName = SqlInt16.GetXsdType(null); Assert.Equal("short", qualifiedName.Name); } internal void ReadWriteXmlTestInternal(string xml, short testval, string unit_test_id) { SqlInt16 test; SqlInt16 test1; XmlSerializer ser; StringWriter sw; XmlTextWriter xw; StringReader sr; XmlTextReader xr; test = new SqlInt16(testval); ser = new XmlSerializer(typeof(SqlInt16)); sw = new StringWriter(); xw = new XmlTextWriter(sw); ser.Serialize(xw, test); // Assert.Equal (xml, sw.ToString ()); sr = new StringReader(xml); xr = new XmlTextReader(sr); test1 = (SqlInt16)ser.Deserialize(xr); Assert.Equal(testval, test1.Value); } [Fact] //[Category ("MobileNotWorking")] public void ReadWriteXmlTest() { string xml1 = "<?xml version=\"1.0\" encoding=\"utf-16\"?><short>4556</short>"; string xml2 = "<?xml version=\"1.0\" encoding=\"utf-16\"?><short>-6445</short>"; string xml3 = "<?xml version=\"1.0\" encoding=\"utf-16\"?><short>0x455687AB3E4D56F</short>"; short test1 = 4556; short test2 = -6445; short test3 = 0x4F56; ReadWriteXmlTestInternal(xml1, test1, "BA01"); ReadWriteXmlTestInternal(xml2, test2, "BA02"); InvalidOperationException ex = Assert.Throws<InvalidOperationException>(() => ReadWriteXmlTestInternal(xml3, test3, "BA03")); Assert.Equal(typeof(FormatException), ex.InnerException.GetType()); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // (C) 2002 Ville Palo // (C) 2003 Martin Willemoes Hansen // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. using Xunit; using System.Xml; using System.Data.SqlTypes; using System.Xml.Serialization; using System.IO; namespace System.Data.Tests.SqlTypes { public class SqlInt16Test { // Test constructor [Fact] public void Create() { SqlInt16 testShort = new SqlInt16(29); Assert.Equal((short)29, testShort.Value); testShort = new SqlInt16(-9000); Assert.Equal((short)-9000, testShort.Value); } // Test public fields [Fact] public void PublicFields() { Assert.Equal((SqlInt16)32767, SqlInt16.MaxValue); Assert.Equal((SqlInt16)(-32768), SqlInt16.MinValue); Assert.True(SqlInt16.Null.IsNull); Assert.Equal((short)0, SqlInt16.Zero.Value); } // Test properties [Fact] public void Properties() { SqlInt16 test5443 = new SqlInt16(5443); SqlInt16 test1 = new SqlInt16(1); Assert.True(SqlInt16.Null.IsNull); Assert.Equal((short)5443, test5443.Value); Assert.Equal((short)1, test1.Value); } // PUBLIC METHODS [Fact] public void ArithmeticMethods() { SqlInt16 test64 = new SqlInt16(64); SqlInt16 test0 = new SqlInt16(0); SqlInt16 test164 = new SqlInt16(164); SqlInt16 testMax = new SqlInt16(SqlInt16.MaxValue.Value); // Add() Assert.Equal((short)64, SqlInt16.Add(test64, test0).Value); Assert.Equal((short)228, SqlInt16.Add(test64, test164).Value); Assert.Equal((short)164, SqlInt16.Add(test0, test164).Value); Assert.Equal((short)SqlInt16.MaxValue, SqlInt16.Add(testMax, test0).Value); Assert.Throws<OverflowException>(() => SqlInt16.Add(testMax, test64)); // Divide() Assert.Equal((short)2, SqlInt16.Divide(test164, test64).Value); Assert.Equal((short)0, SqlInt16.Divide(test64, test164).Value); Assert.Throws<DivideByZeroException>(() => SqlInt16.Divide(test64, test0)); // Mod() Assert.Equal((SqlInt16)36, SqlInt16.Mod(test164, test64)); Assert.Equal((SqlInt16)64, SqlInt16.Mod(test64, test164)); // Multiply() Assert.Equal((short)10496, SqlInt16.Multiply(test64, test164).Value); Assert.Equal((short)0, SqlInt16.Multiply(test64, test0).Value); Assert.Throws<OverflowException>(() => SqlInt16.Multiply(testMax, test64)); // Subtract() Assert.Equal((short)100, SqlInt16.Subtract(test164, test64).Value); Assert.Throws<OverflowException>(() => SqlInt16.Subtract(SqlInt16.MinValue, test164)); // Modulus () Assert.Equal((SqlInt16)36, SqlInt16.Modulus(test164, test64)); Assert.Equal((SqlInt16)64, SqlInt16.Modulus(test64, test164)); } [Fact] public void BitwiseMethods() { short MaxValue = SqlInt16.MaxValue.Value; SqlInt16 TestInt = new SqlInt16(0); SqlInt16 TestIntMax = new SqlInt16(MaxValue); SqlInt16 TestInt2 = new SqlInt16(10922); SqlInt16 TestInt3 = new SqlInt16(21845); // BitwiseAnd Assert.Equal((short)21845, SqlInt16.BitwiseAnd(TestInt3, TestIntMax).Value); Assert.Equal((short)0, SqlInt16.BitwiseAnd(TestInt2, TestInt3).Value); Assert.Equal((short)10922, SqlInt16.BitwiseAnd(TestInt2, TestIntMax).Value); //BitwiseOr Assert.Equal(MaxValue, SqlInt16.BitwiseOr(TestInt2, TestInt3).Value); Assert.Equal((short)21845, SqlInt16.BitwiseOr(TestInt, TestInt3).Value); Assert.Equal(MaxValue, SqlInt16.BitwiseOr(TestIntMax, TestInt2).Value); } [Fact] public void CompareTo() { SqlInt16 testInt4000 = new SqlInt16(4000); SqlInt16 testInt4000II = new SqlInt16(4000); SqlInt16 testInt10 = new SqlInt16(10); SqlInt16 testInt10000 = new SqlInt16(10000); SqlString testString = new SqlString("This is a test"); Assert.True(testInt4000.CompareTo(testInt10) > 0); Assert.True(testInt10.CompareTo(testInt4000) < 0); Assert.Equal(0, testInt4000II.CompareTo(testInt4000)); Assert.True(testInt4000II.CompareTo(SqlInt16.Null) > 0); Assert.Throws<ArgumentException>(() => testInt10.CompareTo(testString)); } [Fact] public void EqualsMethod() { SqlInt16 test0 = new SqlInt16(0); SqlInt16 test158 = new SqlInt16(158); SqlInt16 test180 = new SqlInt16(180); SqlInt16 test180II = new SqlInt16(180); Assert.False(test0.Equals(test158)); Assert.False(test0.Equals((object)test158)); Assert.False(test158.Equals(test180)); Assert.False(test158.Equals((object)test180)); Assert.False(test180.Equals(new SqlString("TEST"))); Assert.True(test180.Equals(test180II)); Assert.True(test180.Equals((object)test180II)); } [Fact] public void StaticEqualsMethod() { SqlInt16 test34 = new SqlInt16(34); SqlInt16 test34II = new SqlInt16(34); SqlInt16 test15 = new SqlInt16(15); Assert.True(SqlInt16.Equals(test34, test34II).Value); Assert.False(SqlInt16.Equals(test34, test15).Value); Assert.False(SqlInt16.Equals(test15, test34II).Value); } [Fact] public void GetHashCodeTest() { SqlInt16 test15 = new SqlInt16(15); // FIXME: Better way to test GetHashCode()-methods Assert.Equal(test15.GetHashCode(), test15.GetHashCode()); } [Fact] public void Greaters() { SqlInt16 test10 = new SqlInt16(10); SqlInt16 test10II = new SqlInt16(10); SqlInt16 test110 = new SqlInt16(110); // GreateThan () Assert.False(SqlInt16.GreaterThan(test10, test110).Value); Assert.True(SqlInt16.GreaterThan(test110, test10).Value); Assert.False(SqlInt16.GreaterThan(test10II, test10).Value); // GreaterTharOrEqual () Assert.False(SqlInt16.GreaterThanOrEqual(test10, test110).Value); Assert.True(SqlInt16.GreaterThanOrEqual(test110, test10).Value); Assert.True(SqlInt16.GreaterThanOrEqual(test10II, test10).Value); } [Fact] public void Lessers() { SqlInt16 test10 = new SqlInt16(10); SqlInt16 test10II = new SqlInt16(10); SqlInt16 test110 = new SqlInt16(110); // LessThan() Assert.True(SqlInt16.LessThan(test10, test110).Value); Assert.False(SqlInt16.LessThan(test110, test10).Value); Assert.False(SqlInt16.LessThan(test10II, test10).Value); // LessThanOrEqual () Assert.True(SqlInt16.LessThanOrEqual(test10, test110).Value); Assert.False(SqlInt16.LessThanOrEqual(test110, test10).Value); Assert.True(SqlInt16.LessThanOrEqual(test10II, test10).Value); Assert.True(SqlInt16.LessThanOrEqual(test10II, SqlInt16.Null).IsNull); } [Fact] public void NotEquals() { SqlInt16 test12 = new SqlInt16(12); SqlInt16 test128 = new SqlInt16(128); SqlInt16 test128II = new SqlInt16(128); Assert.True(SqlInt16.NotEquals(test12, test128).Value); Assert.True(SqlInt16.NotEquals(test128, test12).Value); Assert.True(SqlInt16.NotEquals(test128II, test12).Value); Assert.False(SqlInt16.NotEquals(test128II, test128).Value); Assert.False(SqlInt16.NotEquals(test128, test128II).Value); Assert.True(SqlInt16.NotEquals(SqlInt16.Null, test128II).IsNull); Assert.True(SqlInt16.NotEquals(SqlInt16.Null, test128II).IsNull); } [Fact] public void OnesComplement() { SqlInt16 test12 = new SqlInt16(12); SqlInt16 test128 = new SqlInt16(128); Assert.Equal((SqlInt16)(-13), SqlInt16.OnesComplement(test12)); Assert.Equal((SqlInt16)(-129), SqlInt16.OnesComplement(test128)); } [Fact] public void Parse() { Assert.Throws<ArgumentNullException>(() => SqlInt16.Parse(null)); Assert.Throws<FormatException>(() => SqlInt16.Parse("not-a-number")); Assert.Throws<OverflowException>(() => SqlInt16.Parse(((int)SqlInt16.MaxValue + 1).ToString())); Assert.Equal((short)150, SqlInt16.Parse("150").Value); } [Fact] public void Conversions() { SqlInt16 test12 = new SqlInt16(12); SqlInt16 test0 = new SqlInt16(0); SqlInt16 testNull = SqlInt16.Null; SqlInt16 test1000 = new SqlInt16(1000); SqlInt16 test288 = new SqlInt16(288); // ToSqlBoolean () Assert.True(test12.ToSqlBoolean().Value); Assert.False(test0.ToSqlBoolean().Value); Assert.True(testNull.ToSqlBoolean().IsNull); // ToSqlByte () Assert.Equal((byte)12, test12.ToSqlByte().Value); Assert.Equal((byte)0, test0.ToSqlByte().Value); Assert.Throws<OverflowException>(() => test1000.ToSqlByte()); // ToSqlDecimal () Assert.Equal(12, test12.ToSqlDecimal().Value); Assert.Equal(0, test0.ToSqlDecimal().Value); Assert.Equal(288, test288.ToSqlDecimal().Value); // ToSqlDouble () Assert.Equal(12, test12.ToSqlDouble().Value); Assert.Equal(0, test0.ToSqlDouble().Value); Assert.Equal(1000, test1000.ToSqlDouble().Value); // ToSqlInt32 () Assert.Equal(12, test12.ToSqlInt32().Value); Assert.Equal(0, test0.ToSqlInt32().Value); Assert.Equal(288, test288.ToSqlInt32().Value); // ToSqlInt64 () Assert.Equal(12, test12.ToSqlInt64().Value); Assert.Equal(0, test0.ToSqlInt64().Value); Assert.Equal(288, test288.ToSqlInt64().Value); // ToSqlMoney () Assert.Equal(12.0000M, test12.ToSqlMoney().Value); Assert.Equal(0, test0.ToSqlMoney().Value); Assert.Equal(288.0000M, test288.ToSqlMoney().Value); // ToSqlSingle () Assert.Equal(12, test12.ToSqlSingle().Value); Assert.Equal(0, test0.ToSqlSingle().Value); Assert.Equal(288, test288.ToSqlSingle().Value); // ToSqlString () Assert.Equal("12", test12.ToSqlString().Value); Assert.Equal("0", test0.ToSqlString().Value); Assert.Equal("288", test288.ToSqlString().Value); // ToString () Assert.Equal("12", test12.ToString()); Assert.Equal("0", test0.ToString()); Assert.Equal("288", test288.ToString()); } [Fact] public void Xor() { SqlInt16 test14 = new SqlInt16(14); SqlInt16 test58 = new SqlInt16(58); SqlInt16 test130 = new SqlInt16(130); SqlInt16 testMax = new SqlInt16(SqlInt16.MaxValue.Value); SqlInt16 test0 = new SqlInt16(0); Assert.Equal((short)52, SqlInt16.Xor(test14, test58).Value); Assert.Equal((short)140, SqlInt16.Xor(test14, test130).Value); Assert.Equal((short)184, SqlInt16.Xor(test58, test130).Value); Assert.Equal((short)0, SqlInt16.Xor(testMax, testMax).Value); Assert.Equal(testMax.Value, SqlInt16.Xor(testMax, test0).Value); } // OPERATORS [Fact] public void ArithmeticOperators() { SqlInt16 test24 = new SqlInt16(24); SqlInt16 test64 = new SqlInt16(64); SqlInt16 test2550 = new SqlInt16(2550); SqlInt16 test0 = new SqlInt16(0); // "+"-operator Assert.Equal((SqlInt16)2614, test2550 + test64); Assert.Throws<OverflowException>(() => test64 + SqlInt16.MaxValue); // "/"-operator Assert.Equal((SqlInt16)39, test2550 / test64); Assert.Equal((SqlInt16)0, test24 / test64); Assert.Throws<DivideByZeroException>(() => test2550 / test0); // "*"-operator Assert.Equal((SqlInt16)1536, test64 * test24); Assert.Throws<OverflowException>(() => SqlInt16.MaxValue * test64); // "-"-operator Assert.Equal((SqlInt16)2526, test2550 - test24); Assert.Throws<OverflowException>(() => SqlInt16.MinValue - test64); // "%"-operator Assert.Equal((SqlInt16)54, test2550 % test64); Assert.Equal((SqlInt16)24, test24 % test64); Assert.Equal((SqlInt16)0, new SqlInt16(100) % new SqlInt16(10)); } [Fact] public void BitwiseOperators() { SqlInt16 test2 = new SqlInt16(2); SqlInt16 test4 = new SqlInt16(4); SqlInt16 test2550 = new SqlInt16(2550); // & -operator Assert.Equal((SqlInt16)0, test2 & test4); Assert.Equal((SqlInt16)2, test2 & test2550); Assert.Equal((SqlInt16)0, SqlInt16.MaxValue & SqlInt16.MinValue); // | -operator Assert.Equal((SqlInt16)6, test2 | test4); Assert.Equal((SqlInt16)2550, test2 | test2550); Assert.Equal((SqlInt16)(-1), SqlInt16.MinValue | SqlInt16.MaxValue); // ^ -operator Assert.Equal((SqlInt16)2546, (test2550 ^ test4)); Assert.Equal((SqlInt16)6, (test2 ^ test4)); } [Fact] public void ThanOrEqualOperators() { SqlInt16 test165 = new SqlInt16(165); SqlInt16 test100 = new SqlInt16(100); SqlInt16 test100II = new SqlInt16(100); SqlInt16 test255 = new SqlInt16(2550); // == -operator Assert.True((test100 == test100II).Value); Assert.False((test165 == test100).Value); Assert.True((test165 == SqlInt16.Null).IsNull); // != -operator Assert.False((test100 != test100II).Value); Assert.True((test100 != test255).Value); Assert.True((test165 != test255).Value); Assert.True((test165 != SqlInt16.Null).IsNull); // > -operator Assert.True((test165 > test100).Value); Assert.False((test165 > test255).Value); Assert.False((test100 > test100II).Value); Assert.True((test165 > SqlInt16.Null).IsNull); // >= -operator Assert.False((test165 >= test255).Value); Assert.True((test255 >= test165).Value); Assert.True((test100 >= test100II).Value); Assert.True((test165 >= SqlInt16.Null).IsNull); // < -operator Assert.False((test165 < test100).Value); Assert.True((test165 < test255).Value); Assert.False((test100 < test100II).Value); Assert.True((test165 < SqlInt16.Null).IsNull); // <= -operator Assert.True((test165 <= test255).Value); Assert.False((test255 <= test165).Value); Assert.True((test100 <= test100II).Value); Assert.True((test165 <= SqlInt16.Null).IsNull); } [Fact] public void OnesComplementOperator() { SqlInt16 test12 = new SqlInt16(12); SqlInt16 test128 = new SqlInt16(128); Assert.Equal((SqlInt16)(-13), ~test12); Assert.Equal((SqlInt16)(-129), ~test128); Assert.Equal(SqlInt16.Null, ~SqlInt16.Null); } [Fact] public void UnaryNegation() { SqlInt16 test = new SqlInt16(2000); SqlInt16 testNeg = new SqlInt16(-3000); SqlInt16 result = -test; Assert.Equal((short)(-2000), result.Value); result = -testNeg; Assert.Equal((short)3000, result.Value); } [Fact] public void SqlBooleanToSqlInt16() { SqlBoolean testBoolean = new SqlBoolean(true); SqlInt16 result; result = (SqlInt16)testBoolean; Assert.Equal((short)1, result.Value); result = (SqlInt16)SqlBoolean.Null; Assert.True(result.IsNull); } [Fact] public void SqlDecimalToSqlInt16() { SqlDecimal testDecimal64 = new SqlDecimal(64); SqlDecimal testDecimal900 = new SqlDecimal(90000); Assert.Equal((short)64, ((SqlInt16)testDecimal64).Value); Assert.Equal(SqlInt16.Null, ((SqlInt16)SqlDecimal.Null)); Assert.Throws<OverflowException>(() => (SqlInt16)testDecimal900); } [Fact] public void SqlDoubleToSqlInt16() { SqlDouble testDouble64 = new SqlDouble(64); SqlDouble testDouble900 = new SqlDouble(90000); Assert.Equal((short)64, ((SqlInt16)testDouble64).Value); Assert.Equal(SqlInt16.Null, ((SqlInt16)SqlDouble.Null)); Assert.Throws<OverflowException>(() => (SqlInt16)testDouble900); } [Fact] public void SqlIntToInt16() { SqlInt16 test = new SqlInt16(12); short result = (short)test; Assert.Equal((short)12, result); } [Fact] public void SqlInt32ToSqlInt16() { SqlInt32 test64 = new SqlInt32(64); SqlInt32 test900 = new SqlInt32(90000); Assert.Equal((short)64, ((SqlInt16)test64).Value); Assert.Throws<OverflowException>(() =>(SqlInt16)test900); } [Fact] public void SqlInt64ToSqlInt16() { SqlInt64 test64 = new SqlInt64(64); SqlInt64 test900 = new SqlInt64(90000); Assert.Equal((short)64, ((SqlInt16)test64).Value); Assert.Throws<OverflowException>(() => (SqlInt16)test900); } [Fact] public void SqlMoneyToSqlInt16() { SqlMoney testMoney64 = new SqlMoney(64); SqlMoney testMoney900 = new SqlMoney(90000); Assert.Equal((short)64, ((SqlInt16)testMoney64).Value); Assert.Throws<OverflowException>(() => (SqlInt16)testMoney900); } [Fact] public void SqlSingleToSqlInt16() { SqlSingle testSingle64 = new SqlSingle(64); SqlSingle testSingle900 = new SqlSingle(90000); Assert.Equal((short)64, ((SqlInt16)testSingle64).Value); Assert.Throws<OverflowException>(() => (SqlInt16)testSingle900); } [Fact] public void SqlStringToSqlInt16() { SqlString testString = new SqlString("Test string"); SqlString testString100 = new SqlString("100"); SqlString testString1000 = new SqlString("100000"); Assert.Equal((short)100, ((SqlInt16)testString100).Value); Assert.Throws<OverflowException>(() => (SqlInt16)testString1000); Assert.Throws<FormatException>(() => (SqlInt16)testString); } [Fact] public void ByteToSqlInt16() { short testShort = 14; Assert.Equal((short)14, ((SqlInt16)testShort).Value); } [Fact] public void GetXsdTypeTest() { XmlQualifiedName qualifiedName = SqlInt16.GetXsdType(null); Assert.Equal("short", qualifiedName.Name); } internal void ReadWriteXmlTestInternal(string xml, short testval, string unit_test_id) { SqlInt16 test; SqlInt16 test1; XmlSerializer ser; StringWriter sw; XmlTextWriter xw; StringReader sr; XmlTextReader xr; test = new SqlInt16(testval); ser = new XmlSerializer(typeof(SqlInt16)); sw = new StringWriter(); xw = new XmlTextWriter(sw); ser.Serialize(xw, test); // Assert.Equal (xml, sw.ToString ()); sr = new StringReader(xml); xr = new XmlTextReader(sr); test1 = (SqlInt16)ser.Deserialize(xr); Assert.Equal(testval, test1.Value); } [Fact] //[Category ("MobileNotWorking")] public void ReadWriteXmlTest() { string xml1 = "<?xml version=\"1.0\" encoding=\"utf-16\"?><short>4556</short>"; string xml2 = "<?xml version=\"1.0\" encoding=\"utf-16\"?><short>-6445</short>"; string xml3 = "<?xml version=\"1.0\" encoding=\"utf-16\"?><short>0x455687AB3E4D56F</short>"; short test1 = 4556; short test2 = -6445; short test3 = 0x4F56; ReadWriteXmlTestInternal(xml1, test1, "BA01"); ReadWriteXmlTestInternal(xml2, test2, "BA02"); InvalidOperationException ex = Assert.Throws<InvalidOperationException>(() => ReadWriteXmlTestInternal(xml3, test3, "BA03")); Assert.Equal(typeof(FormatException), ex.InnerException.GetType()); } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Linq.Expressions/tests/Unary/UnaryArithmeticNegateNullableTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace System.Linq.Expressions.Tests { public static class UnaryArithmeticNegateNullableTests { #region Test methods [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableByteTest(bool useInterpreter) { byte?[] values = new byte?[] { null, 0, 1, byte.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableByte(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableCharTest(bool useInterpreter) { char?[] values = new char?[] { null, '\0', '\b', 'A', '\uffff' }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableChar(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableDecimalTest(bool useInterpreter) { decimal?[] values = new decimal?[] { null, decimal.Zero, decimal.One, decimal.MinusOne, decimal.MinValue, decimal.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableDecimal(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableDoubleTest(bool useInterpreter) { double?[] values = new double?[] { null, 0, 1, -1, double.MinValue, double.MaxValue, double.Epsilon, double.NegativeInfinity, double.PositiveInfinity, double.NaN }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableDouble(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableFloatTest(bool useInterpreter) { float?[] values = new float?[] { null, 0, 1, -1, float.MinValue, float.MaxValue, float.Epsilon, float.NegativeInfinity, float.PositiveInfinity, float.NaN }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableFloat(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableIntTest(bool useInterpreter) { int?[] values = new int?[] { null, 0, 1, -1, int.MinValue, int.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableInt(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableLongTest(bool useInterpreter) { long?[] values = new long?[] { null, 0, 1, -1, long.MinValue, long.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableLong(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableSByteTest(bool useInterpreter) { sbyte?[] values = new sbyte?[] { null, 0, 1, -1, sbyte.MinValue, sbyte.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableSByte(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableShortTest(bool useInterpreter) { short?[] values = new short?[] { null, 0, 1, -1, short.MinValue, short.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableShort(values[i], useInterpreter); } } #endregion #region Test verifiers private static void VerifyArithmeticNegateNullableByte(byte? value, bool useInterpreter) { Assert.Throws<InvalidOperationException>(() => Expression.Negate(Expression.Constant(value, typeof(byte?)))); } private static void VerifyArithmeticNegateNullableChar(char? value, bool useInterpreter) { Assert.Throws<InvalidOperationException>(() => Expression.Negate(Expression.Constant(value, typeof(char?)))); } private static void VerifyArithmeticNegateNullableDecimal(decimal? value, bool useInterpreter) { Expression<Func<decimal?>> e = Expression.Lambda<Func<decimal?>>( Expression.Negate(Expression.Constant(value, typeof(decimal?))), Enumerable.Empty<ParameterExpression>()); Func<decimal?> f = e.Compile(useInterpreter); Assert.Equal((decimal?)(-value), f()); } private static void VerifyArithmeticNegateNullableDouble(double? value, bool useInterpreter) { Expression<Func<double?>> e = Expression.Lambda<Func<double?>>( Expression.Negate(Expression.Constant(value, typeof(double?))), Enumerable.Empty<ParameterExpression>()); Func<double?> f = e.Compile(useInterpreter); Assert.Equal((double?)(-value), f()); } private static void VerifyArithmeticNegateNullableFloat(float? value, bool useInterpreter) { Expression<Func<float?>> e = Expression.Lambda<Func<float?>>( Expression.Negate(Expression.Constant(value, typeof(float?))), Enumerable.Empty<ParameterExpression>()); Func<float?> f = e.Compile(useInterpreter); Assert.Equal((float?)(-value), f()); } private static void VerifyArithmeticNegateNullableInt(int? value, bool useInterpreter) { Expression<Func<int?>> e = Expression.Lambda<Func<int?>>( Expression.Negate(Expression.Constant(value, typeof(int?))), Enumerable.Empty<ParameterExpression>()); Func<int?> f = e.Compile(useInterpreter); Assert.Equal(unchecked((int?)(-value)), f()); } private static void VerifyArithmeticNegateNullableLong(long? value, bool useInterpreter) { Expression<Func<long?>> e = Expression.Lambda<Func<long?>>( Expression.Negate(Expression.Constant(value, typeof(long?))), Enumerable.Empty<ParameterExpression>()); Func<long?> f = e.Compile(useInterpreter); Assert.Equal(unchecked((long?)(-value)), f()); } private static void VerifyArithmeticNegateNullableSByte(sbyte? value, bool useInterpreter) { Assert.Throws<InvalidOperationException>(() => Expression.Negate(Expression.Constant(value, typeof(sbyte?)))); } private static void VerifyArithmeticNegateNullableShort(short? value, bool useInterpreter) { Expression<Func<short?>> e = Expression.Lambda<Func<short?>>( Expression.Negate(Expression.Constant(value, typeof(short?))), Enumerable.Empty<ParameterExpression>()); Func<short?> f = e.Compile(useInterpreter); Assert.Equal(unchecked((short?)(-value)), f()); } #endregion } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace System.Linq.Expressions.Tests { public static class UnaryArithmeticNegateNullableTests { #region Test methods [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableByteTest(bool useInterpreter) { byte?[] values = new byte?[] { null, 0, 1, byte.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableByte(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableCharTest(bool useInterpreter) { char?[] values = new char?[] { null, '\0', '\b', 'A', '\uffff' }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableChar(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableDecimalTest(bool useInterpreter) { decimal?[] values = new decimal?[] { null, decimal.Zero, decimal.One, decimal.MinusOne, decimal.MinValue, decimal.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableDecimal(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableDoubleTest(bool useInterpreter) { double?[] values = new double?[] { null, 0, 1, -1, double.MinValue, double.MaxValue, double.Epsilon, double.NegativeInfinity, double.PositiveInfinity, double.NaN }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableDouble(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableFloatTest(bool useInterpreter) { float?[] values = new float?[] { null, 0, 1, -1, float.MinValue, float.MaxValue, float.Epsilon, float.NegativeInfinity, float.PositiveInfinity, float.NaN }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableFloat(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableIntTest(bool useInterpreter) { int?[] values = new int?[] { null, 0, 1, -1, int.MinValue, int.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableInt(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableLongTest(bool useInterpreter) { long?[] values = new long?[] { null, 0, 1, -1, long.MinValue, long.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableLong(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableSByteTest(bool useInterpreter) { sbyte?[] values = new sbyte?[] { null, 0, 1, -1, sbyte.MinValue, sbyte.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableSByte(values[i], useInterpreter); } } [Theory, ClassData(typeof(CompilationTypes))] public static void CheckUnaryArithmeticNegateNullableShortTest(bool useInterpreter) { short?[] values = new short?[] { null, 0, 1, -1, short.MinValue, short.MaxValue }; for (int i = 0; i < values.Length; i++) { VerifyArithmeticNegateNullableShort(values[i], useInterpreter); } } #endregion #region Test verifiers private static void VerifyArithmeticNegateNullableByte(byte? value, bool useInterpreter) { Assert.Throws<InvalidOperationException>(() => Expression.Negate(Expression.Constant(value, typeof(byte?)))); } private static void VerifyArithmeticNegateNullableChar(char? value, bool useInterpreter) { Assert.Throws<InvalidOperationException>(() => Expression.Negate(Expression.Constant(value, typeof(char?)))); } private static void VerifyArithmeticNegateNullableDecimal(decimal? value, bool useInterpreter) { Expression<Func<decimal?>> e = Expression.Lambda<Func<decimal?>>( Expression.Negate(Expression.Constant(value, typeof(decimal?))), Enumerable.Empty<ParameterExpression>()); Func<decimal?> f = e.Compile(useInterpreter); Assert.Equal((decimal?)(-value), f()); } private static void VerifyArithmeticNegateNullableDouble(double? value, bool useInterpreter) { Expression<Func<double?>> e = Expression.Lambda<Func<double?>>( Expression.Negate(Expression.Constant(value, typeof(double?))), Enumerable.Empty<ParameterExpression>()); Func<double?> f = e.Compile(useInterpreter); Assert.Equal((double?)(-value), f()); } private static void VerifyArithmeticNegateNullableFloat(float? value, bool useInterpreter) { Expression<Func<float?>> e = Expression.Lambda<Func<float?>>( Expression.Negate(Expression.Constant(value, typeof(float?))), Enumerable.Empty<ParameterExpression>()); Func<float?> f = e.Compile(useInterpreter); Assert.Equal((float?)(-value), f()); } private static void VerifyArithmeticNegateNullableInt(int? value, bool useInterpreter) { Expression<Func<int?>> e = Expression.Lambda<Func<int?>>( Expression.Negate(Expression.Constant(value, typeof(int?))), Enumerable.Empty<ParameterExpression>()); Func<int?> f = e.Compile(useInterpreter); Assert.Equal(unchecked((int?)(-value)), f()); } private static void VerifyArithmeticNegateNullableLong(long? value, bool useInterpreter) { Expression<Func<long?>> e = Expression.Lambda<Func<long?>>( Expression.Negate(Expression.Constant(value, typeof(long?))), Enumerable.Empty<ParameterExpression>()); Func<long?> f = e.Compile(useInterpreter); Assert.Equal(unchecked((long?)(-value)), f()); } private static void VerifyArithmeticNegateNullableSByte(sbyte? value, bool useInterpreter) { Assert.Throws<InvalidOperationException>(() => Expression.Negate(Expression.Constant(value, typeof(sbyte?)))); } private static void VerifyArithmeticNegateNullableShort(short? value, bool useInterpreter) { Expression<Func<short?>> e = Expression.Lambda<Func<short?>>( Expression.Negate(Expression.Constant(value, typeof(short?))), Enumerable.Empty<ParameterExpression>()); Func<short?> f = e.Compile(useInterpreter); Assert.Equal(unchecked((short?)(-value)), f()); } #endregion } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Security.Permissions/src/System/Net/PeerToPeer/PnrpPermission.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Security; using System.Security.Permissions; namespace System.Net.PeerToPeer { #if NETCOREAPP [Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)] #endif public sealed class PnrpPermission : CodeAccessPermission, IUnrestrictedPermission { public PnrpPermission(PermissionState state) { } public override IPermission Copy() { return null; } public override void FromXml(SecurityElement e) { } public override IPermission Intersect(IPermission target) { return null; } public override bool IsSubsetOf(IPermission target) => false; public bool IsUnrestricted() => false; public override SecurityElement ToXml() { return null; } public override IPermission Union(IPermission target) { return null; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Security; using System.Security.Permissions; namespace System.Net.PeerToPeer { #if NETCOREAPP [Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)] #endif public sealed class PnrpPermission : CodeAccessPermission, IUnrestrictedPermission { public PnrpPermission(PermissionState state) { } public override IPermission Copy() { return null; } public override void FromXml(SecurityElement e) { } public override IPermission Intersect(IPermission target) { return null; } public override bool IsSubsetOf(IPermission target) => false; public bool IsUnrestricted() => false; public override SecurityElement ToXml() { return null; } public override IPermission Union(IPermission target) { return null; } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/Microsoft.Extensions.Logging/tests/Common/DebugLoggerTest.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging.Test; using Xunit; namespace Microsoft.Extensions.Logging { public class DebugLoggerTest { [Fact] public void CallingBeginScopeOnLogger_ReturnsNonNullableInstance() { // Arrange var logger = CreateLogger(); // Act var disposable = logger.BeginScope("Scope1"); // Assert Assert.NotNull(disposable); } [Fact] public void CallingLogWithCurlyBracesAfterFormatter_DoesNotThrow() { // Arrange var logger = CreateLogger(); var message = "{test string}"; // Act logger.Log(LogLevel.Debug, 0, message, null, (s, e) => s); } [Fact] public static void IsEnabledReturnsCorrectValue() { // Arrange var logger = CreateLogger(); // Assert Assert.False(logger.IsEnabled(LogLevel.None)); } private static ILogger CreateLogger() { return TestLoggerBuilder.Create(builder => builder.AddDebug()).CreateLogger("Test"); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Logging.Test; using Xunit; namespace Microsoft.Extensions.Logging { public class DebugLoggerTest { [Fact] public void CallingBeginScopeOnLogger_ReturnsNonNullableInstance() { // Arrange var logger = CreateLogger(); // Act var disposable = logger.BeginScope("Scope1"); // Assert Assert.NotNull(disposable); } [Fact] public void CallingLogWithCurlyBracesAfterFormatter_DoesNotThrow() { // Arrange var logger = CreateLogger(); var message = "{test string}"; // Act logger.Log(LogLevel.Debug, 0, message, null, (s, e) => s); } [Fact] public static void IsEnabledReturnsCorrectValue() { // Arrange var logger = CreateLogger(); // Assert Assert.False(logger.IsEnabled(LogLevel.None)); } private static ILogger CreateLogger() { return TestLoggerBuilder.Create(builder => builder.AddDebug()).CreateLogger("Test"); } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/Common/src/Interop/Windows/Kernel32/Interop.CriticalSection.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Kernel32 { [StructLayout(LayoutKind.Sequential)] internal struct CRITICAL_SECTION { private IntPtr DebugInfo; private int LockCount; private int RecursionCount; private IntPtr OwningThread; private IntPtr LockSemaphore; private UIntPtr SpinCount; } [LibraryImport(Libraries.Kernel32)] internal static unsafe partial void InitializeCriticalSection(CRITICAL_SECTION* lpCriticalSection); [LibraryImport(Libraries.Kernel32)] internal static unsafe partial void EnterCriticalSection(CRITICAL_SECTION* lpCriticalSection); [LibraryImport(Libraries.Kernel32)] internal static unsafe partial void LeaveCriticalSection(CRITICAL_SECTION* lpCriticalSection); [LibraryImport(Libraries.Kernel32)] internal static unsafe partial void DeleteCriticalSection(CRITICAL_SECTION* lpCriticalSection); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Kernel32 { [StructLayout(LayoutKind.Sequential)] internal struct CRITICAL_SECTION { private IntPtr DebugInfo; private int LockCount; private int RecursionCount; private IntPtr OwningThread; private IntPtr LockSemaphore; private UIntPtr SpinCount; } [LibraryImport(Libraries.Kernel32)] internal static unsafe partial void InitializeCriticalSection(CRITICAL_SECTION* lpCriticalSection); [LibraryImport(Libraries.Kernel32)] internal static unsafe partial void EnterCriticalSection(CRITICAL_SECTION* lpCriticalSection); [LibraryImport(Libraries.Kernel32)] internal static unsafe partial void LeaveCriticalSection(CRITICAL_SECTION* lpCriticalSection); [LibraryImport(Libraries.Kernel32)] internal static unsafe partial void DeleteCriticalSection(CRITICAL_SECTION* lpCriticalSection); } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Web.HttpUtility/src/System/Web/HttpUtility.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Authors: // Patrik Torstensson ([email protected]) // Wictor Wilén (decode/encode functions) ([email protected]) // Tim Coleman ([email protected]) // Gonzalo Paniagua Javier ([email protected]) // // Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System.Collections.Specialized; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Text; using System.Web.Util; namespace System.Web { public sealed class HttpUtility { private sealed class HttpQSCollection : NameValueCollection { internal HttpQSCollection() : base(StringComparer.OrdinalIgnoreCase) { } public override string ToString() { int count = Count; if (count == 0) { return ""; } StringBuilder sb = new StringBuilder(); string?[] keys = AllKeys; for (int i = 0; i < count; i++) { string? key = keys[i]; string[]? values = GetValues(key); if (values != null) { foreach (string value in values) { if (!string.IsNullOrEmpty(key)) { sb.Append(key).Append('='); } sb.Append(UrlEncode(value)).Append('&'); } } } return sb.ToString(0, sb.Length - 1); } } public static NameValueCollection ParseQueryString(string query) => ParseQueryString(query, Encoding.UTF8); public static NameValueCollection ParseQueryString(string query!!, Encoding encoding!!) { HttpQSCollection result = new HttpQSCollection(); int queryLength = query.Length; int namePos = queryLength > 0 && query[0] == '?' ? 1 : 0; if (queryLength == namePos) { return result; } while (namePos <= queryLength) { int valuePos = -1, valueEnd = -1; for (int q = namePos; q < queryLength; q++) { if (valuePos == -1 && query[q] == '=') { valuePos = q + 1; } else if (query[q] == '&') { valueEnd = q; break; } } string? name; if (valuePos == -1) { name = null; valuePos = namePos; } else { name = UrlDecode(query.Substring(namePos, valuePos - namePos - 1), encoding); } if (valueEnd < 0) { valueEnd = query.Length; } namePos = valueEnd + 1; string value = UrlDecode(query.Substring(valuePos, valueEnd - valuePos), encoding); result.Add(name, value); } return result; } [return: NotNullIfNotNull("s")] public static string? HtmlDecode(string? s) => HttpEncoder.HtmlDecode(s); public static void HtmlDecode(string? s, TextWriter output) => HttpEncoder.HtmlDecode(s, output); [return: NotNullIfNotNull("s")] public static string? HtmlEncode(string? s) => HttpEncoder.HtmlEncode(s); [return: NotNullIfNotNull("value")] public static string? HtmlEncode(object? value) => value == null ? null : HtmlEncode(Convert.ToString(value, CultureInfo.CurrentCulture) ?? string.Empty); public static void HtmlEncode(string? s, TextWriter output) => HttpEncoder.HtmlEncode(s, output); [return: NotNullIfNotNull("s")] public static string? HtmlAttributeEncode(string? s) => HttpEncoder.HtmlAttributeEncode(s); public static void HtmlAttributeEncode(string? s, TextWriter output) => HttpEncoder.HtmlAttributeEncode(s, output); [return: NotNullIfNotNull("str")] public static string? UrlEncode(string? str) => UrlEncode(str, Encoding.UTF8); [return: NotNullIfNotNull("str")] public static string? UrlPathEncode(string? str) => HttpEncoder.UrlPathEncode(str); [return: NotNullIfNotNull("str")] public static string? UrlEncode(string? str, Encoding e) => str == null ? null : Encoding.ASCII.GetString(UrlEncodeToBytes(str, e)); [return: NotNullIfNotNull("bytes")] public static string? UrlEncode(byte[]? bytes) => bytes == null ? null : Encoding.ASCII.GetString(UrlEncodeToBytes(bytes)); [return: NotNullIfNotNull("bytes")] public static string? UrlEncode(byte[]? bytes, int offset, int count) => bytes == null ? null : Encoding.ASCII.GetString(UrlEncodeToBytes(bytes, offset, count)); [return: NotNullIfNotNull("str")] public static byte[]? UrlEncodeToBytes(string? str) => UrlEncodeToBytes(str, Encoding.UTF8); [return: NotNullIfNotNull("bytes")] public static byte[]? UrlEncodeToBytes(byte[]? bytes) => bytes == null ? null : UrlEncodeToBytes(bytes, 0, bytes.Length); [Obsolete("This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncodeToBytes(String).")] [return: NotNullIfNotNull("str")] public static byte[]? UrlEncodeUnicodeToBytes(string? str) => str == null ? null : Encoding.ASCII.GetBytes(UrlEncodeUnicode(str)); [return: NotNullIfNotNull("str")] public static string? UrlDecode(string? str) => UrlDecode(str, Encoding.UTF8); [return: NotNullIfNotNull("bytes")] public static string? UrlDecode(byte[]? bytes, Encoding e) => bytes == null ? null : UrlDecode(bytes, 0, bytes.Length, e); [return: NotNullIfNotNull("str")] public static byte[]? UrlDecodeToBytes(string? str) => UrlDecodeToBytes(str, Encoding.UTF8); [return: NotNullIfNotNull("str")] public static byte[]? UrlDecodeToBytes(string? str, Encoding e) => str == null ? null : UrlDecodeToBytes(e.GetBytes(str)); [return: NotNullIfNotNull("bytes")] public static byte[]? UrlDecodeToBytes(byte[]? bytes) => bytes == null ? null : UrlDecodeToBytes(bytes, 0, bytes.Length); [return: NotNullIfNotNull("str")] public static byte[]? UrlEncodeToBytes(string? str, Encoding e) { if (str == null) { return null; } byte[] bytes = e.GetBytes(str); return HttpEncoder.UrlEncode(bytes, 0, bytes.Length, alwaysCreateNewReturnValue: false); } [return: NotNullIfNotNull("bytes")] public static byte[]? UrlEncodeToBytes(byte[]? bytes, int offset, int count) => HttpEncoder.UrlEncode(bytes, offset, count, alwaysCreateNewReturnValue: true); [Obsolete("This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncode(String).")] [return: NotNullIfNotNull("str")] public static string? UrlEncodeUnicode(string? str) => HttpEncoder.UrlEncodeUnicode(str); [return: NotNullIfNotNull("str")] public static string? UrlDecode(string? str, Encoding e) => HttpEncoder.UrlDecode(str, e); [return: NotNullIfNotNull("bytes")] public static string? UrlDecode(byte[]? bytes, int offset, int count, Encoding e) => HttpEncoder.UrlDecode(bytes, offset, count, e); [return: NotNullIfNotNull("bytes")] public static byte[]? UrlDecodeToBytes(byte[]? bytes, int offset, int count) => HttpEncoder.UrlDecode(bytes, offset, count); public static string JavaScriptStringEncode(string? value) => HttpEncoder.JavaScriptStringEncode(value); public static string JavaScriptStringEncode(string? value, bool addDoubleQuotes) { string encoded = HttpEncoder.JavaScriptStringEncode(value); return addDoubleQuotes ? "\"" + encoded + "\"" : encoded; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Authors: // Patrik Torstensson ([email protected]) // Wictor Wilén (decode/encode functions) ([email protected]) // Tim Coleman ([email protected]) // Gonzalo Paniagua Javier ([email protected]) // // Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System.Collections.Specialized; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Text; using System.Web.Util; namespace System.Web { public sealed class HttpUtility { private sealed class HttpQSCollection : NameValueCollection { internal HttpQSCollection() : base(StringComparer.OrdinalIgnoreCase) { } public override string ToString() { int count = Count; if (count == 0) { return ""; } StringBuilder sb = new StringBuilder(); string?[] keys = AllKeys; for (int i = 0; i < count; i++) { string? key = keys[i]; string[]? values = GetValues(key); if (values != null) { foreach (string value in values) { if (!string.IsNullOrEmpty(key)) { sb.Append(key).Append('='); } sb.Append(UrlEncode(value)).Append('&'); } } } return sb.ToString(0, sb.Length - 1); } } public static NameValueCollection ParseQueryString(string query) => ParseQueryString(query, Encoding.UTF8); public static NameValueCollection ParseQueryString(string query!!, Encoding encoding!!) { HttpQSCollection result = new HttpQSCollection(); int queryLength = query.Length; int namePos = queryLength > 0 && query[0] == '?' ? 1 : 0; if (queryLength == namePos) { return result; } while (namePos <= queryLength) { int valuePos = -1, valueEnd = -1; for (int q = namePos; q < queryLength; q++) { if (valuePos == -1 && query[q] == '=') { valuePos = q + 1; } else if (query[q] == '&') { valueEnd = q; break; } } string? name; if (valuePos == -1) { name = null; valuePos = namePos; } else { name = UrlDecode(query.Substring(namePos, valuePos - namePos - 1), encoding); } if (valueEnd < 0) { valueEnd = query.Length; } namePos = valueEnd + 1; string value = UrlDecode(query.Substring(valuePos, valueEnd - valuePos), encoding); result.Add(name, value); } return result; } [return: NotNullIfNotNull("s")] public static string? HtmlDecode(string? s) => HttpEncoder.HtmlDecode(s); public static void HtmlDecode(string? s, TextWriter output) => HttpEncoder.HtmlDecode(s, output); [return: NotNullIfNotNull("s")] public static string? HtmlEncode(string? s) => HttpEncoder.HtmlEncode(s); [return: NotNullIfNotNull("value")] public static string? HtmlEncode(object? value) => value == null ? null : HtmlEncode(Convert.ToString(value, CultureInfo.CurrentCulture) ?? string.Empty); public static void HtmlEncode(string? s, TextWriter output) => HttpEncoder.HtmlEncode(s, output); [return: NotNullIfNotNull("s")] public static string? HtmlAttributeEncode(string? s) => HttpEncoder.HtmlAttributeEncode(s); public static void HtmlAttributeEncode(string? s, TextWriter output) => HttpEncoder.HtmlAttributeEncode(s, output); [return: NotNullIfNotNull("str")] public static string? UrlEncode(string? str) => UrlEncode(str, Encoding.UTF8); [return: NotNullIfNotNull("str")] public static string? UrlPathEncode(string? str) => HttpEncoder.UrlPathEncode(str); [return: NotNullIfNotNull("str")] public static string? UrlEncode(string? str, Encoding e) => str == null ? null : Encoding.ASCII.GetString(UrlEncodeToBytes(str, e)); [return: NotNullIfNotNull("bytes")] public static string? UrlEncode(byte[]? bytes) => bytes == null ? null : Encoding.ASCII.GetString(UrlEncodeToBytes(bytes)); [return: NotNullIfNotNull("bytes")] public static string? UrlEncode(byte[]? bytes, int offset, int count) => bytes == null ? null : Encoding.ASCII.GetString(UrlEncodeToBytes(bytes, offset, count)); [return: NotNullIfNotNull("str")] public static byte[]? UrlEncodeToBytes(string? str) => UrlEncodeToBytes(str, Encoding.UTF8); [return: NotNullIfNotNull("bytes")] public static byte[]? UrlEncodeToBytes(byte[]? bytes) => bytes == null ? null : UrlEncodeToBytes(bytes, 0, bytes.Length); [Obsolete("This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncodeToBytes(String).")] [return: NotNullIfNotNull("str")] public static byte[]? UrlEncodeUnicodeToBytes(string? str) => str == null ? null : Encoding.ASCII.GetBytes(UrlEncodeUnicode(str)); [return: NotNullIfNotNull("str")] public static string? UrlDecode(string? str) => UrlDecode(str, Encoding.UTF8); [return: NotNullIfNotNull("bytes")] public static string? UrlDecode(byte[]? bytes, Encoding e) => bytes == null ? null : UrlDecode(bytes, 0, bytes.Length, e); [return: NotNullIfNotNull("str")] public static byte[]? UrlDecodeToBytes(string? str) => UrlDecodeToBytes(str, Encoding.UTF8); [return: NotNullIfNotNull("str")] public static byte[]? UrlDecodeToBytes(string? str, Encoding e) => str == null ? null : UrlDecodeToBytes(e.GetBytes(str)); [return: NotNullIfNotNull("bytes")] public static byte[]? UrlDecodeToBytes(byte[]? bytes) => bytes == null ? null : UrlDecodeToBytes(bytes, 0, bytes.Length); [return: NotNullIfNotNull("str")] public static byte[]? UrlEncodeToBytes(string? str, Encoding e) { if (str == null) { return null; } byte[] bytes = e.GetBytes(str); return HttpEncoder.UrlEncode(bytes, 0, bytes.Length, alwaysCreateNewReturnValue: false); } [return: NotNullIfNotNull("bytes")] public static byte[]? UrlEncodeToBytes(byte[]? bytes, int offset, int count) => HttpEncoder.UrlEncode(bytes, offset, count, alwaysCreateNewReturnValue: true); [Obsolete("This method produces non-standards-compliant output and has interoperability issues. The preferred alternative is UrlEncode(String).")] [return: NotNullIfNotNull("str")] public static string? UrlEncodeUnicode(string? str) => HttpEncoder.UrlEncodeUnicode(str); [return: NotNullIfNotNull("str")] public static string? UrlDecode(string? str, Encoding e) => HttpEncoder.UrlDecode(str, e); [return: NotNullIfNotNull("bytes")] public static string? UrlDecode(byte[]? bytes, int offset, int count, Encoding e) => HttpEncoder.UrlDecode(bytes, offset, count, e); [return: NotNullIfNotNull("bytes")] public static byte[]? UrlDecodeToBytes(byte[]? bytes, int offset, int count) => HttpEncoder.UrlDecode(bytes, offset, count); public static string JavaScriptStringEncode(string? value) => HttpEncoder.JavaScriptStringEncode(value); public static string JavaScriptStringEncode(string? value, bool addDoubleQuotes) { string encoded = HttpEncoder.JavaScriptStringEncode(value); return addDoubleQuotes ? "\"" + encoded + "\"" : encoded; } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/coreclr/nativeaot/System.Private.CoreLib/src/System/Threading/ObjectHeader.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using System.Runtime.CompilerServices; namespace System.Threading { /// <summary> /// Manipulates the object header located 4 bytes before each object's MethodTable pointer /// in the managed heap. /// </summary> /// <remarks> /// Do not store managed pointers (ref int) to the object header in locals or parameters /// as they may be incorrectly updated during garbage collection. /// </remarks> internal static class ObjectHeader { // The following two header bits are used by the GC engine: // BIT_SBLK_FINALIZER_RUN = 0x40000000 // BIT_SBLK_GC_RESERVE = 0x20000000 // // All other bits may be used to store runtime data: hash code, sync entry index, etc. // Here we use the same bit layout as in CLR: if bit 26 (BIT_SBLK_IS_HASHCODE) is set, // all the lower bits 0..25 store the hash code, otherwise they store either the sync // entry index or all zero. // // If needed, the MASK_HASHCODE_INDEX bit mask may be made wider or narrower than the // current 26 bits; the BIT_SBLK_IS_HASHCODE bit is not required to be adjacent to the // mask. The code only assumes that MASK_HASHCODE_INDEX occupies the lowest bits of the // header (i.e. ends with bit 0) and that (MASK_HASHCODE_INDEX + 1) does not overflow // the Int32 type (i.e. the mask may be no longer than 30 bits). private const int IS_HASHCODE_BIT_NUMBER = 26; private const int BIT_SBLK_IS_HASHCODE = 1 << IS_HASHCODE_BIT_NUMBER; internal const int MASK_HASHCODE_INDEX = BIT_SBLK_IS_HASHCODE - 1; #if TARGET_ARM || TARGET_ARM64 [MethodImpl(MethodImplOptions.NoInlining)] #else [MethodImpl(MethodImplOptions.AggressiveInlining)] #endif public static unsafe int ReadVolatileMemory(int* pHeader) { // While in x86/amd64 Volatile.Read is cheap, in arm we have to pay the // cost of a barrier. We do no inlining to get around that. #if TARGET_ARM || TARGET_ARM64 return *pHeader; #else return Volatile.Read(ref *pHeader); #endif } /// <summary> /// Returns the hash code assigned to the object. If no hash code has yet been assigned, /// it assigns one in a thread-safe way. /// </summary> public static unsafe int GetHashCode(object o) { if (o == null) { return 0; } fixed (byte* pRawData = &o.GetRawData()) { // The header is 4 bytes before m_pEEType field on all architectures int* pHeader = (int*)(pRawData - sizeof(IntPtr) - sizeof(int)); int bits = ReadVolatileMemory(pHeader); int hashOrIndex = bits & MASK_HASHCODE_INDEX; if ((bits & BIT_SBLK_IS_HASHCODE) != 0) { // Found the hash code in the header Debug.Assert(hashOrIndex != 0); return hashOrIndex; } if (hashOrIndex != 0) { // Look up the hash code in the SyncTable int hashCode = SyncTable.GetHashCode(hashOrIndex); if (hashCode != 0) { return hashCode; } } // The hash code has not yet been set. Assign some value. return AssignHashCode(pHeader); } } /// <summary> /// Assigns a hash code to the object in a thread-safe way. /// </summary> private static unsafe int AssignHashCode(int* pHeader) { int newHash = RuntimeHelpers.GetNewHashCode() & MASK_HASHCODE_INDEX; int bitAndValue; // Never use the zero hash code. SyncTable treats the zero value as "not assigned". if (newHash == 0) { newHash = 1; } while (true) { int oldBits = Volatile.Read(ref *pHeader); bitAndValue = oldBits & (BIT_SBLK_IS_HASHCODE | MASK_HASHCODE_INDEX); if (bitAndValue != 0) { // The header already stores some value break; } // The header stores nothing. Try to store the hash code. int newBits = oldBits | BIT_SBLK_IS_HASHCODE | newHash; if (Interlocked.CompareExchange(ref *pHeader, newBits, oldBits) == oldBits) { return newHash; } // Another thread modified the header; try again } if ((bitAndValue & BIT_SBLK_IS_HASHCODE) == 0) { // Set the hash code in SyncTable. This call will resolve the potential race. return SyncTable.SetHashCode(bitAndValue, newHash); } // Another thread set the hash code, use it Debug.Assert((bitAndValue & ~BIT_SBLK_IS_HASHCODE) != 0); return bitAndValue & ~BIT_SBLK_IS_HASHCODE; } /// <summary> /// Extracts the sync entry index or the hash code from the header value. Returns true /// if the header value stores the sync entry index. /// </summary> // Inlining is important for lock performance [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool GetSyncEntryIndex(int header, out int hashOrIndex) { hashOrIndex = header & MASK_HASHCODE_INDEX; // The following is equivalent to: // return (hashOrIndex != 0) && ((header & BIT_SBLK_IS_HASHCODE) == 0); // Shifting the BIT_SBLK_IS_HASHCODE bit to the sign bit saves one branch. int bitAndValue = header & (BIT_SBLK_IS_HASHCODE | MASK_HASHCODE_INDEX); return (bitAndValue << (31 - IS_HASHCODE_BIT_NUMBER)) > 0; } /// <summary> /// Returns the Monitor synchronization object assigned to this object. If no synchronization /// object has yet been assigned, it assigns one in a thread-safe way. /// </summary> // Called from Monitor.Enter only; inlining is important for lock performance [MethodImpl(MethodImplOptions.AggressiveInlining)] public static unsafe Lock GetLockObject(object o) { fixed (byte* pRawData = &o.GetRawData()) { // The header is 4 bytes before m_pEEType field on all architectures int* pHeader = (int*)(pRawData - sizeof(IntPtr) - sizeof(int)); if (GetSyncEntryIndex(ReadVolatileMemory(pHeader), out int hashOrIndex)) { // Already have a sync entry for this object, return the synchronization object // stored in the entry. return SyncTable.GetLockObject(hashOrIndex); } // Assign a new sync entry int syncIndex = SyncTable.AssignEntry(o, pHeader); return SyncTable.GetLockObject(syncIndex); } } /// <summary> /// Sets the sync entry index in a thread-safe way. /// </summary> public static unsafe void SetSyncEntryIndex(int* pHeader, int syncIndex) { // Holding this lock implies there is at most one thread setting the sync entry index at // any given time. We also require that the sync entry index has not been already set. Debug.Assert(SyncTable.s_lock.IsAcquired); Debug.Assert((syncIndex & MASK_HASHCODE_INDEX) == syncIndex); int oldBits, newBits, hashOrIndex; do { oldBits = Volatile.Read(ref *pHeader); newBits = oldBits; if (GetSyncEntryIndex(oldBits, out hashOrIndex)) { // Must not get here; see the contract throw new InvalidOperationException(); } Debug.Assert(((oldBits & BIT_SBLK_IS_HASHCODE) == 0) || (hashOrIndex != 0)); if (hashOrIndex != 0) { // Move the hash code to the sync entry SyncTable.MoveHashCodeToNewEntry(syncIndex, hashOrIndex); } // Store the sync entry index newBits &= ~(BIT_SBLK_IS_HASHCODE | MASK_HASHCODE_INDEX); newBits |= syncIndex; } while (Interlocked.CompareExchange(ref *pHeader, newBits, oldBits) != oldBits); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using System.Runtime.CompilerServices; namespace System.Threading { /// <summary> /// Manipulates the object header located 4 bytes before each object's MethodTable pointer /// in the managed heap. /// </summary> /// <remarks> /// Do not store managed pointers (ref int) to the object header in locals or parameters /// as they may be incorrectly updated during garbage collection. /// </remarks> internal static class ObjectHeader { // The following two header bits are used by the GC engine: // BIT_SBLK_FINALIZER_RUN = 0x40000000 // BIT_SBLK_GC_RESERVE = 0x20000000 // // All other bits may be used to store runtime data: hash code, sync entry index, etc. // Here we use the same bit layout as in CLR: if bit 26 (BIT_SBLK_IS_HASHCODE) is set, // all the lower bits 0..25 store the hash code, otherwise they store either the sync // entry index or all zero. // // If needed, the MASK_HASHCODE_INDEX bit mask may be made wider or narrower than the // current 26 bits; the BIT_SBLK_IS_HASHCODE bit is not required to be adjacent to the // mask. The code only assumes that MASK_HASHCODE_INDEX occupies the lowest bits of the // header (i.e. ends with bit 0) and that (MASK_HASHCODE_INDEX + 1) does not overflow // the Int32 type (i.e. the mask may be no longer than 30 bits). private const int IS_HASHCODE_BIT_NUMBER = 26; private const int BIT_SBLK_IS_HASHCODE = 1 << IS_HASHCODE_BIT_NUMBER; internal const int MASK_HASHCODE_INDEX = BIT_SBLK_IS_HASHCODE - 1; #if TARGET_ARM || TARGET_ARM64 [MethodImpl(MethodImplOptions.NoInlining)] #else [MethodImpl(MethodImplOptions.AggressiveInlining)] #endif public static unsafe int ReadVolatileMemory(int* pHeader) { // While in x86/amd64 Volatile.Read is cheap, in arm we have to pay the // cost of a barrier. We do no inlining to get around that. #if TARGET_ARM || TARGET_ARM64 return *pHeader; #else return Volatile.Read(ref *pHeader); #endif } /// <summary> /// Returns the hash code assigned to the object. If no hash code has yet been assigned, /// it assigns one in a thread-safe way. /// </summary> public static unsafe int GetHashCode(object o) { if (o == null) { return 0; } fixed (byte* pRawData = &o.GetRawData()) { // The header is 4 bytes before m_pEEType field on all architectures int* pHeader = (int*)(pRawData - sizeof(IntPtr) - sizeof(int)); int bits = ReadVolatileMemory(pHeader); int hashOrIndex = bits & MASK_HASHCODE_INDEX; if ((bits & BIT_SBLK_IS_HASHCODE) != 0) { // Found the hash code in the header Debug.Assert(hashOrIndex != 0); return hashOrIndex; } if (hashOrIndex != 0) { // Look up the hash code in the SyncTable int hashCode = SyncTable.GetHashCode(hashOrIndex); if (hashCode != 0) { return hashCode; } } // The hash code has not yet been set. Assign some value. return AssignHashCode(pHeader); } } /// <summary> /// Assigns a hash code to the object in a thread-safe way. /// </summary> private static unsafe int AssignHashCode(int* pHeader) { int newHash = RuntimeHelpers.GetNewHashCode() & MASK_HASHCODE_INDEX; int bitAndValue; // Never use the zero hash code. SyncTable treats the zero value as "not assigned". if (newHash == 0) { newHash = 1; } while (true) { int oldBits = Volatile.Read(ref *pHeader); bitAndValue = oldBits & (BIT_SBLK_IS_HASHCODE | MASK_HASHCODE_INDEX); if (bitAndValue != 0) { // The header already stores some value break; } // The header stores nothing. Try to store the hash code. int newBits = oldBits | BIT_SBLK_IS_HASHCODE | newHash; if (Interlocked.CompareExchange(ref *pHeader, newBits, oldBits) == oldBits) { return newHash; } // Another thread modified the header; try again } if ((bitAndValue & BIT_SBLK_IS_HASHCODE) == 0) { // Set the hash code in SyncTable. This call will resolve the potential race. return SyncTable.SetHashCode(bitAndValue, newHash); } // Another thread set the hash code, use it Debug.Assert((bitAndValue & ~BIT_SBLK_IS_HASHCODE) != 0); return bitAndValue & ~BIT_SBLK_IS_HASHCODE; } /// <summary> /// Extracts the sync entry index or the hash code from the header value. Returns true /// if the header value stores the sync entry index. /// </summary> // Inlining is important for lock performance [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool GetSyncEntryIndex(int header, out int hashOrIndex) { hashOrIndex = header & MASK_HASHCODE_INDEX; // The following is equivalent to: // return (hashOrIndex != 0) && ((header & BIT_SBLK_IS_HASHCODE) == 0); // Shifting the BIT_SBLK_IS_HASHCODE bit to the sign bit saves one branch. int bitAndValue = header & (BIT_SBLK_IS_HASHCODE | MASK_HASHCODE_INDEX); return (bitAndValue << (31 - IS_HASHCODE_BIT_NUMBER)) > 0; } /// <summary> /// Returns the Monitor synchronization object assigned to this object. If no synchronization /// object has yet been assigned, it assigns one in a thread-safe way. /// </summary> // Called from Monitor.Enter only; inlining is important for lock performance [MethodImpl(MethodImplOptions.AggressiveInlining)] public static unsafe Lock GetLockObject(object o) { fixed (byte* pRawData = &o.GetRawData()) { // The header is 4 bytes before m_pEEType field on all architectures int* pHeader = (int*)(pRawData - sizeof(IntPtr) - sizeof(int)); if (GetSyncEntryIndex(ReadVolatileMemory(pHeader), out int hashOrIndex)) { // Already have a sync entry for this object, return the synchronization object // stored in the entry. return SyncTable.GetLockObject(hashOrIndex); } // Assign a new sync entry int syncIndex = SyncTable.AssignEntry(o, pHeader); return SyncTable.GetLockObject(syncIndex); } } /// <summary> /// Sets the sync entry index in a thread-safe way. /// </summary> public static unsafe void SetSyncEntryIndex(int* pHeader, int syncIndex) { // Holding this lock implies there is at most one thread setting the sync entry index at // any given time. We also require that the sync entry index has not been already set. Debug.Assert(SyncTable.s_lock.IsAcquired); Debug.Assert((syncIndex & MASK_HASHCODE_INDEX) == syncIndex); int oldBits, newBits, hashOrIndex; do { oldBits = Volatile.Read(ref *pHeader); newBits = oldBits; if (GetSyncEntryIndex(oldBits, out hashOrIndex)) { // Must not get here; see the contract throw new InvalidOperationException(); } Debug.Assert(((oldBits & BIT_SBLK_IS_HASHCODE) == 0) || (hashOrIndex != 0)); if (hashOrIndex != 0) { // Move the hash code to the sync entry SyncTable.MoveHashCodeToNewEntry(syncIndex, hashOrIndex); } // Store the sync entry index newBits &= ~(BIT_SBLK_IS_HASHCODE | MASK_HASHCODE_INDEX); newBits |= syncIndex; } while (Interlocked.CompareExchange(ref *pHeader, newBits, oldBits) != oldBits); } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonQNameDataContract.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Xml; using System.Diagnostics.CodeAnalysis; namespace System.Runtime.Serialization.Json { internal sealed class JsonQNameDataContract : JsonDataContract { [RequiresUnreferencedCode(DataContract.SerializerTrimmerWarning)] public JsonQNameDataContract(QNameDataContract traditionalQNameDataContract) : base(traditionalQNameDataContract) { } [RequiresUnreferencedCode(DataContract.SerializerTrimmerWarning)] public override object? ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson? context) { if (context == null) { return TryReadNullAtTopLevel(jsonReader) ? null : jsonReader.ReadElementContentAsQName(); } else { return HandleReadValue(jsonReader.ReadElementContentAsQName(), context); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Xml; using System.Diagnostics.CodeAnalysis; namespace System.Runtime.Serialization.Json { internal sealed class JsonQNameDataContract : JsonDataContract { [RequiresUnreferencedCode(DataContract.SerializerTrimmerWarning)] public JsonQNameDataContract(QNameDataContract traditionalQNameDataContract) : base(traditionalQNameDataContract) { } [RequiresUnreferencedCode(DataContract.SerializerTrimmerWarning)] public override object? ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson? context) { if (context == null) { return TryReadNullAtTopLevel(jsonReader) ? null : jsonReader.ReadElementContentAsQName(); } else { return HandleReadValue(jsonReader.ReadElementContentAsQName(), context); } } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Private.Xml/src/System/Xml/Core/IDtdParserAdapterAsync.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Text; using System.Xml.Schema; using System.Threading.Tasks; namespace System.Xml { internal partial interface IDtdParserAdapter { Task<int> ReadDataAsync(); Task<int> ParseNumericCharRefAsync(StringBuilder? internalSubsetBuilder); Task<int> ParseNamedCharRefAsync(bool expand, StringBuilder? internalSubsetBuilder); Task ParsePIAsync(StringBuilder? sb); Task ParseCommentAsync(StringBuilder? sb); Task<(int, bool)> PushEntityAsync(IDtdEntityInfo entity); Task<bool> PushExternalSubsetAsync(string? systemId, string? publicId); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Text; using System.Xml.Schema; using System.Threading.Tasks; namespace System.Xml { internal partial interface IDtdParserAdapter { Task<int> ReadDataAsync(); Task<int> ParseNumericCharRefAsync(StringBuilder? internalSubsetBuilder); Task<int> ParseNamedCharRefAsync(bool expand, StringBuilder? internalSubsetBuilder); Task ParsePIAsync(StringBuilder? sb); Task ParseCommentAsync(StringBuilder? sb); Task<(int, bool)> PushEntityAsync(IDtdEntityInfo entity); Task<bool> PushExternalSubsetAsync(string? systemId, string? publicId); } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsUserErrors.Etw.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using Xunit; namespace BasicEventSourceTests { /// <summary> /// Tests the user experience for common user errors. /// </summary> public partial class TestsUserErrors { /// <summary> /// Test the /// </summary> [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // ActiveIssue: https://github.com/dotnet/runtime/issues/26197 public void Test_BadEventSource_MismatchedIds_WithEtwListener() { // We expect only one session to be on when running the test but if a ETW session was left // hanging, it will confuse the EventListener tests. if (TestUtilities.IsProcessElevated) { EtwListener.EnsureStopped(); } TestUtilities.CheckNoEventSourcesRunning("Start"); var onStartups = new bool[] { false, true }; var listenerGenerators = new List<Func<Listener>> { () => new EventListenerListener() }; if (TestUtilities.IsProcessElevated) { listenerGenerators.Add(() => new EtwListener()); } var settings = new EventSourceSettings[] { EventSourceSettings.Default, EventSourceSettings.EtwSelfDescribingEventFormat }; // For every interesting combination, run the test and see that we get a nice failure message. foreach (bool onStartup in onStartups) { foreach (Func<Listener> listenerGenerator in listenerGenerators) { foreach (EventSourceSettings setting in settings) { Test_Bad_EventSource_Startup(onStartup, listenerGenerator(), setting); } } } TestUtilities.CheckNoEventSourcesRunning("Stop"); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using Xunit; namespace BasicEventSourceTests { /// <summary> /// Tests the user experience for common user errors. /// </summary> public partial class TestsUserErrors { /// <summary> /// Test the /// </summary> [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // ActiveIssue: https://github.com/dotnet/runtime/issues/26197 public void Test_BadEventSource_MismatchedIds_WithEtwListener() { // We expect only one session to be on when running the test but if a ETW session was left // hanging, it will confuse the EventListener tests. if (TestUtilities.IsProcessElevated) { EtwListener.EnsureStopped(); } TestUtilities.CheckNoEventSourcesRunning("Start"); var onStartups = new bool[] { false, true }; var listenerGenerators = new List<Func<Listener>> { () => new EventListenerListener() }; if (TestUtilities.IsProcessElevated) { listenerGenerators.Add(() => new EtwListener()); } var settings = new EventSourceSettings[] { EventSourceSettings.Default, EventSourceSettings.EtwSelfDescribingEventFormat }; // For every interesting combination, run the test and see that we get a nice failure message. foreach (bool onStartup in onStartups) { foreach (Func<Listener> listenerGenerator in listenerGenerators) { foreach (EventSourceSettings setting in settings) { Test_Bad_EventSource_Startup(onStartup, listenerGenerator(), setting); } } } TestUtilities.CheckNoEventSourcesRunning("Stop"); } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Runtime/tests/System/NotSupportedExceptionTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace System.Tests { public static class NotSupportedExceptionTests { private const int COR_E_NOTSUPPORTED = unchecked((int)0x80131515); [Fact] public static void Ctor_Empty() { var exception = new NotSupportedException(); ExceptionHelpers.ValidateExceptionProperties(exception, hResult: COR_E_NOTSUPPORTED, validateMessage: false); } [Fact] public static void Ctor_String() { string message = "not supported"; var exception = new NotSupportedException(message); ExceptionHelpers.ValidateExceptionProperties(exception, hResult: COR_E_NOTSUPPORTED, message: message); } [Fact] public static void Ctor_String_Exception() { string message = "not supported"; var innerException = new Exception("Inner exception"); var exception = new NotSupportedException(message, innerException); ExceptionHelpers.ValidateExceptionProperties(exception, hResult: COR_E_NOTSUPPORTED, innerException: innerException, message: message); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace System.Tests { public static class NotSupportedExceptionTests { private const int COR_E_NOTSUPPORTED = unchecked((int)0x80131515); [Fact] public static void Ctor_Empty() { var exception = new NotSupportedException(); ExceptionHelpers.ValidateExceptionProperties(exception, hResult: COR_E_NOTSUPPORTED, validateMessage: false); } [Fact] public static void Ctor_String() { string message = "not supported"; var exception = new NotSupportedException(message); ExceptionHelpers.ValidateExceptionProperties(exception, hResult: COR_E_NOTSUPPORTED, message: message); } [Fact] public static void Ctor_String_Exception() { string message = "not supported"; var innerException = new Exception("Inner exception"); var exception = new NotSupportedException(message, innerException); ExceptionHelpers.ValidateExceptionProperties(exception, hResult: COR_E_NOTSUPPORTED, innerException: innerException, message: message); } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/JIT/HardwareIntrinsics/General/Vector256/LessThanOrEqualAll.UInt16.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void LessThanOrEqualAllUInt16() { var test = new VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(UInt16[] inArray1, UInt16[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<UInt16> _fld1; public Vector256<UInt16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); return testStruct; } public void RunStructFldScenario(VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16 testClass) { var result = Vector256.LessThanOrEqualAll(_fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16); private static UInt16[] _data1 = new UInt16[Op1ElementCount]; private static UInt16[] _data2 = new UInt16[Op2ElementCount]; private static Vector256<UInt16> _clsVar1; private static Vector256<UInt16> _clsVar2; private Vector256<UInt16> _fld1; private Vector256<UInt16> _fld2; private DataTable _dataTable; static VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); } public VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Vector256.LessThanOrEqualAll( Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var method = typeof(Vector256).GetMethod(nameof(Vector256.LessThanOrEqualAll), new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) }); if (method is null) { method = typeof(Vector256).GetMethod(nameof(Vector256.LessThanOrEqualAll), 1, new Type[] { typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)) }); } if (method.IsGenericMethodDefinition) { method = method.MakeGenericMethod(typeof(UInt16)); } var result = method.Invoke(null, new object[] { Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Vector256.LessThanOrEqualAll( _clsVar1, _clsVar2 ); ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr); var result = Vector256.LessThanOrEqualAll(op1, op2); ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16(); var result = Vector256.LessThanOrEqualAll(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Vector256.LessThanOrEqualAll(_fld1, _fld2); ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Vector256.LessThanOrEqualAll(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector256<UInt16> op1, Vector256<UInt16> op2, bool result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(UInt16[] left, UInt16[] right, bool result, [CallerMemberName] string method = "") { bool succeeded = true; var expectedResult = true; for (var i = 0; i < Op1ElementCount; i++) { expectedResult &= (left[i] <= right[i]); } succeeded = (expectedResult == result); if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.{nameof(Vector256.LessThanOrEqualAll)}<UInt16>(Vector256<UInt16>, Vector256<UInt16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({result})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void LessThanOrEqualAllUInt16() { var test = new VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(UInt16[] inArray1, UInt16[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt16>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt16, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<UInt16> _fld1; public Vector256<UInt16> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); return testStruct; } public void RunStructFldScenario(VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16 testClass) { var result = Vector256.LessThanOrEqualAll(_fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<UInt16>>() / sizeof(UInt16); private static UInt16[] _data1 = new UInt16[Op1ElementCount]; private static UInt16[] _data2 = new UInt16[Op2ElementCount]; private static Vector256<UInt16> _clsVar1; private static Vector256<UInt16> _clsVar2; private Vector256<UInt16> _fld1; private Vector256<UInt16> _fld2; private DataTable _dataTable; static VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _clsVar2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); } public VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt16>, byte>(ref _fld2), ref Unsafe.As<UInt16, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Vector256.LessThanOrEqualAll( Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var method = typeof(Vector256).GetMethod(nameof(Vector256.LessThanOrEqualAll), new Type[] { typeof(Vector256<UInt16>), typeof(Vector256<UInt16>) }); if (method is null) { method = typeof(Vector256).GetMethod(nameof(Vector256.LessThanOrEqualAll), 1, new Type[] { typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(Vector256<>).MakeGenericType(Type.MakeGenericMethodParameter(0)) }); } if (method.IsGenericMethodDefinition) { method = method.MakeGenericMethod(typeof(UInt16)); } var result = method.Invoke(null, new object[] { Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Vector256.LessThanOrEqualAll( _clsVar1, _clsVar2 ); ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector256<UInt16>>(_dataTable.inArray2Ptr); var result = Vector256.LessThanOrEqualAll(op1, op2); ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBooleanBinaryOpTest__LessThanOrEqualAllUInt16(); var result = Vector256.LessThanOrEqualAll(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Vector256.LessThanOrEqualAll(_fld1, _fld2); ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Vector256.LessThanOrEqualAll(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector256<UInt16> op1, Vector256<UInt16> op2, bool result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] inArray2 = new UInt16[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<UInt16>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(UInt16[] left, UInt16[] right, bool result, [CallerMemberName] string method = "") { bool succeeded = true; var expectedResult = true; for (var i = 0; i < Op1ElementCount; i++) { expectedResult &= (left[i] <= right[i]); } succeeded = (expectedResult == result); if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.{nameof(Vector256.LessThanOrEqualAll)}<UInt16>(Vector256<UInt16>, Vector256<UInt16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({result})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Linq.Expressions/src/System/Runtime/CompilerServices/Closure.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; using System.Diagnostics; namespace System.Runtime.CompilerServices { /// <summary> /// This API supports the .NET Framework infrastructure and is not intended to be used directly from your code. /// Represents the runtime state of a dynamically generated method. /// </summary> [EditorBrowsable(EditorBrowsableState.Never), DebuggerStepThrough] public sealed class Closure { /// <summary> /// Represents the non-trivial constants and locally executable expressions that are referenced by a dynamically generated method. /// </summary> public readonly object[] Constants; /// <summary> /// Represents the hoisted local variables from the parent context. /// </summary> public readonly object[]? Locals; /// <summary> /// Creates an object to hold state of a dynamically generated method. /// </summary> /// <param name="constants">The constant values used by the method.</param> /// <param name="locals">The hoisted local variables from the parent context.</param> public Closure(object[] constants, object[]? locals) { Constants = constants; Locals = locals; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel; using System.Diagnostics; namespace System.Runtime.CompilerServices { /// <summary> /// This API supports the .NET Framework infrastructure and is not intended to be used directly from your code. /// Represents the runtime state of a dynamically generated method. /// </summary> [EditorBrowsable(EditorBrowsableState.Never), DebuggerStepThrough] public sealed class Closure { /// <summary> /// Represents the non-trivial constants and locally executable expressions that are referenced by a dynamically generated method. /// </summary> public readonly object[] Constants; /// <summary> /// Represents the hoisted local variables from the parent context. /// </summary> public readonly object[]? Locals; /// <summary> /// Creates an object to hold state of a dynamically generated method. /// </summary> /// <param name="constants">The constant values used by the method.</param> /// <param name="locals">The hoisted local variables from the parent context.</param> public Closure(object[] constants, object[]? locals) { Constants = constants; Locals = locals; } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Private.Uri/tests/FunctionalTests/UriBuilderTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Xunit; namespace System.PrivateUri.Tests { public class UriBuilderTests { //This test tests a case where the .NET Core implementation of UriBuilder differs from .NET Framework UriBuilder. //The Query property will not longer prepend a ? character if the string being assigned is already prepended. [Fact] public static void TestQuery() { var uriBuilder = new UriBuilder(@"http://foo/bar/baz?date=today"); Assert.Equal("?date=today", uriBuilder.Query); uriBuilder.Query = "?date=yesterday"; Assert.Equal(@"?date=yesterday", uriBuilder.Query); uriBuilder.Query = "date=tomorrow"; Assert.Equal("?date=tomorrow", uriBuilder.Query); uriBuilder.Query += @"&place=redmond"; Assert.Equal("?date=tomorrow&place=redmond", uriBuilder.Query); uriBuilder.Query = null; Assert.Equal("", uriBuilder.Query); uriBuilder.Query = ""; Assert.Equal("", uriBuilder.Query); uriBuilder.Query = "?"; Assert.Equal("?", uriBuilder.Query); } [Fact] public void Ctor_Empty() { var uriBuilder = new UriBuilder(); VerifyUriBuilder(uriBuilder, scheme: "http", userName: "", password: "", host: "localhost", port: -1, path: "/", query: "", fragment: ""); } [Theory] [InlineData("http://host/", true, "http", "", "", "host", 80, "/", "", "")] [InlineData("http://username@host/", true, "http", "username", "", "host", 80, "/", "", "")] [InlineData("http://username:password@host/", true, "http", "username", "password", "host", 80, "/", "", "")] [InlineData("http://host:90/", true, "http", "", "", "host", 90, "/", "", "")] [InlineData("http://host/path", true, "http", "", "", "host", 80, "/path", "", "")] [InlineData("http://host/?query", true, "http", "", "", "host", 80, "/", "?query", "")] [InlineData("http://host/#fragment", true, "http", "", "", "host", 80, "/", "", "#fragment")] [InlineData("http://username:password@host:90/path1/path2?query#fragment", true, "http", "username", "password", "host", 90, "/path1/path2", "?query", "#fragment")] [InlineData("www.host.com", false, "http", "", "", "www.host.com", 80, "/", "", "")] // Relative [InlineData("unknownscheme:", true, "unknownscheme", "", "", "", -1, "", "", "")] // No authority public void Ctor_String(string uriString, bool createUri, string scheme, string username, string password, string host, int port, string path, string query, string fragment) { var uriBuilder = new UriBuilder(uriString); VerifyUriBuilder(uriBuilder, scheme, username, password, host, port, path, query, fragment); if (createUri) { uriBuilder = new UriBuilder(new Uri(uriString, UriKind.RelativeOrAbsolute)); VerifyUriBuilder(uriBuilder, scheme, username, password, host, port, path, query, fragment); } else { Assert.Throws<InvalidOperationException>(() => new UriBuilder(new Uri(uriString, UriKind.RelativeOrAbsolute))); } } [Fact] public void Ctor_String_Invalid() { AssertExtensions.Throws<ArgumentNullException>("uriString", () => new UriBuilder((string)null)); // UriString is null Assert.Throws<UriFormatException>(() => new UriBuilder(@"http://host\")); // UriString is invalid } [Fact] public void Ctor_Uri_Null() { AssertExtensions.Throws<ArgumentNullException>("uri", () => new UriBuilder((Uri)null)); // Uri is null } [Theory] [InlineData("http", "host", "http", "host")] [InlineData("HTTP", "host", "http", "host")] [InlineData("http", "[::1]", "http", "[::1]")] [InlineData("https", "::1]", "https", "[::1]]")] [InlineData("http", "::1", "http", "[::1]")] [InlineData("http1:http2", "host", "http1", "host")] [InlineData("http", "", "http", "")] [InlineData("", "host", "", "host")] [InlineData("", "", "", "")] [InlineData("http", null, "http", "")] [InlineData(null, "", "", "")] [InlineData(null, null, "", "")] public void Ctor_String_String(string schemeName, string hostName, string expectedScheme, string expectedHost) { var uriBuilder = new UriBuilder(schemeName, hostName); VerifyUriBuilder(uriBuilder, expectedScheme, "", "", expectedHost, -1, "/", "", ""); } [Theory] [InlineData("http", "host", 0, "http", "host")] [InlineData("HTTP", "host", 20, "http", "host")] [InlineData("http", "[::1]", 40, "http", "[::1]")] [InlineData("https", "::1]", 60, "https", "[::1]]")] [InlineData("http", "::1", 80, "http", "[::1]")] [InlineData("http1:http2", "host", 100, "http1", "host")] [InlineData("http", "", 120, "http", "")] [InlineData("", "host", 140, "", "host")] [InlineData("", "", 160, "", "")] [InlineData("http", null, 180, "http", "")] [InlineData(null, "", -1, "", "")] [InlineData(null, null, 65535, "", "")] public void Ctor_String_String_Int(string scheme, string host, int port, string expectedScheme, string expectedHost) { var uriBuilder = new UriBuilder(scheme, host, port); VerifyUriBuilder(uriBuilder, expectedScheme, "", "", expectedHost, port, "/", "", ""); } [Theory] [InlineData("http", "host", 0, "/path", "http", "host", "/path")] [InlineData("HTTP", "host", 20, "/path1/path2", "http", "host", "/path1/path2")] [InlineData("http", "[::1]", 40, "/", "http", "[::1]", "/")] [InlineData("https", "::1]", 60, "/path1/", "https", "[::1]]", "/path1/")] [InlineData("http", "::1", 80, null, "http", "[::1]", "/")] [InlineData("http1:http2", "host", 100, "path1", "http1", "host", "path1")] [InlineData("http", "", 120, "path1/path2", "http", "", "path1/path2")] [InlineData("", "host", 140, "path1/path2/path3/", "", "host", "path1/path2/path3/")] [InlineData("", "", 160, @"\path1\path2\path3", "", "", "/path1/path2/path3")] [InlineData("http", null, 180, @"path1\path2\", "http", "", "path1/path2/")] [InlineData(null, "", -1, "\u1234", "", "", "%E1%88%B4")] [InlineData(null, null, 65535, "\u1234\u2345", "", "", "%E1%88%B4%E2%8D%85")] public void Ctor_String_String_Int_String(string schemeName, string hostName, int port, string pathValue, string expectedScheme, string expectedHost, string expectedPath) { var uriBuilder = new UriBuilder(schemeName, hostName, port, pathValue); VerifyUriBuilder(uriBuilder, expectedScheme, "", "", expectedHost, port, expectedPath, "", ""); } [Theory] [InlineData("http", "host", 0, "/path", "?query#fragment", "http", "host", "/path", "?query", "#fragment")] [InlineData("HTTP", "host", 20, "/path1/path2", "?query&query2=value#fragment", "http", "host", "/path1/path2", "?query&query2=value", "#fragment")] [InlineData("http", "[::1]", 40, "/", "#fragment?query", "http", "[::1]", "/", "", "#fragment?query")] [InlineData("https", "::1]", 60, "/path1/", "?query", "https", "[::1]]", "/path1/", "?query", "")] [InlineData("http", "::1", 80, null, "#fragment", "http", "[::1]", "/", "", "#fragment")] [InlineData("http", "", 120, "path1/path2", "?#", "http", "", "path1/path2", "", "")] [InlineData("", "host", 140, "path1/path2/path3/", "?", "", "host", "path1/path2/path3/", "", "")] [InlineData("", "", 160, @"\path1\path2\path3", "#", "", "", "/path1/path2/path3", "", "")] [InlineData("http", null, 180, @"path1\path2\", "?\u1234#\u2345", "http", "", "path1/path2/", "?\u1234", "#\u2345")] [InlineData(null, "", -1, "\u1234", "", "", "", "%E1%88%B4", "", "")] [InlineData(null, null, 65535, "\u1234\u2345", null, "", "", "%E1%88%B4%E2%8D%85", "", "")] public void Ctor_String_String_Int_String_String(string schemeName, string hostName, int port, string pathValue, string extraValue, string expectedScheme, string expectedHost, string expectedPath, string expectedQuery, string expectedFragment) { var uriBuilder = new UriBuilder(schemeName, hostName, port, pathValue, extraValue); VerifyUriBuilder(uriBuilder, expectedScheme, "", "", expectedHost, port, expectedPath, expectedQuery, expectedFragment); } [Theory] [InlineData("query#fragment")] [InlineData("fragment?fragment")] public void Ctor_InvalidExtraValue_ThrowsArgumentException(string extraValue) { AssertExtensions.Throws<ArgumentException>("extraValue", null, () => new UriBuilder("scheme", "host", 80, "path", extraValue)); } [Theory] [InlineData("https", "https")] [InlineData("", "")] [InlineData(null, "")] public void Scheme_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.Scheme = value; Assert.Equal(expected, uriBuilder.Scheme); } [Theory] [InlineData("\u1234http")] [InlineData(".")] [InlineData("-")] public void InvalidScheme_ThrowsArgumentException(string schemeName) { AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder(schemeName, "host")); AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder(schemeName, "host", 80)); AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder(schemeName, "host", 80, "path")); AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder(schemeName, "host", 80, "?query#fragment")); AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder().Scheme = schemeName); } [Theory] [InlineData("username", "username")] [InlineData("", "")] [InlineData(null, "")] public void UserName_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.UserName = value; Assert.Equal(expected, uriBuilder.UserName); Uri oldUri = uriBuilder.Uri; uriBuilder.UserName = value; Assert.NotSame(uriBuilder.Uri, oldUri); // Should generate new uri Assert.Equal(uriBuilder.UserName, uriBuilder.Uri.UserInfo); } [Theory] [InlineData("password", "password")] [InlineData("", "")] [InlineData(null, "")] public void Password_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo1:PLACEHOLDER@domain/path?query#fragment"); uriBuilder.Password = value; Assert.Equal(expected, uriBuilder.Password); Uri oldUri = uriBuilder.Uri; uriBuilder.Password = value; Assert.NotSame(uriBuilder.Uri, oldUri); } [Theory] [InlineData("host", "host")] [InlineData("", "")] [InlineData(null, "")] public void Host_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.Host = value; Assert.Equal(expected, uriBuilder.Host); } [Theory] [InlineData(-1)] [InlineData(0)] [InlineData(80)] [InlineData(180)] [InlineData(65535)] public void Port_Get_Set(int port) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.Port = port; Assert.Equal(port, uriBuilder.Port); } [Theory] [InlineData(-2)] [InlineData(65536)] public void InvalidPort_ThrowsArgumentOutOfRangeException(int portNumber) { Assert.Throws<ArgumentOutOfRangeException>(() => new UriBuilder("scheme", "host", portNumber)); Assert.Throws<ArgumentOutOfRangeException>(() => new UriBuilder("scheme", "host", portNumber, "path")); Assert.Throws<ArgumentOutOfRangeException>(() => new UriBuilder("scheme", "host", portNumber, "path", "?query#fragment")); Assert.Throws<ArgumentOutOfRangeException>(() => new UriBuilder().Port = portNumber); } [Theory] [InlineData("/path1/path2", "/path1/path2")] [InlineData(@"\path1\path2", "/path1/path2")] [InlineData("", "/")] [InlineData(null, "/")] public void Path_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.Path = value; Assert.Equal(expected, uriBuilder.Path); } [Theory] [InlineData("query", "?query")] [InlineData("", "")] [InlineData(null, "")] public void Query_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder(); uriBuilder.Query = value; Assert.Equal(expected, uriBuilder.Query); Uri oldUri = uriBuilder.Uri; uriBuilder.Query = value; Assert.NotSame(uriBuilder.Uri, oldUri); // Should generate new uri Assert.Equal(uriBuilder.Query, uriBuilder.Uri.Query); } [Theory] [InlineData("#fragment", "#fragment")] [InlineData("#", "#")] public void Fragment_Get_Set_StartsWithPound(string value, string expected) { var uriBuilder = new UriBuilder(); uriBuilder.Fragment = value; Assert.Equal(expected, uriBuilder.Fragment); Uri oldUri = uriBuilder.Uri; uriBuilder.Fragment = value; Assert.NotSame(uriBuilder.Uri, oldUri); // Should generate new uri Assert.Equal(uriBuilder.Fragment, uriBuilder.Uri.Fragment); } [Theory] [InlineData("fragment", "#fragment")] [InlineData("", "")] [InlineData(null, "")] public void Fragment_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder(); uriBuilder.Fragment = value; Assert.Equal(expected, uriBuilder.Fragment); Uri oldUri = uriBuilder.Uri; uriBuilder.Fragment = value; Assert.NotSame(uriBuilder.Uri, oldUri); // Should generate new uri Assert.Equal(uriBuilder.Fragment, uriBuilder.Uri.Fragment); } public static IEnumerable<object[]> Equals_TestData() { yield return new object[] { new UriBuilder(), new UriBuilder(), true }; yield return new object[] { new UriBuilder(), null, false }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), true }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://domain.com:80/path/file?query#fragment"), true }; // Ignores userinfo yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path/file?query#fragment2"), true }; // Ignores fragment yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), false }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:90/path/file?query#fragment"), false }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path2/file?query#fragment"), false }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path/file?query2#fragment"), false }; yield return new object[] { new UriBuilder("unknown:"), new UriBuilder("unknown:"), true }; yield return new object[] { new UriBuilder("unknown:"), new UriBuilder("different:"), false }; } [Theory] [MemberData(nameof(Equals_TestData))] public void EqualsTest(UriBuilder uriBuilder1, UriBuilder uriBuilder2, bool expected) { Assert.Equal(expected, uriBuilder1.Equals(uriBuilder2)); if (uriBuilder2 != null) { Assert.Equal(expected, uriBuilder1.GetHashCode().Equals(uriBuilder2.GetHashCode())); } } public static IEnumerable<object[]> ToString_TestData() { yield return new object[] { new UriBuilder(), "http://localhost/" }; yield return new object[] { new UriBuilder() { Scheme = "" }, "localhost/" }; yield return new object[] { new UriBuilder() { Scheme = "unknown" }, "unknown://localhost/" }; yield return new object[] { new UriBuilder() { Scheme = "unknown", Host = "" }, "unknown:/" }; yield return new object[] { new UriBuilder() { Scheme = "unknown", Host = "", Path = "path1/path2" }, "unknown:path1/path2" }; yield return new object[] { new UriBuilder() { UserName = "username" }, "http://username@localhost/" }; yield return new object[] { new UriBuilder() { UserName = "username", Password = "password" }, "http://username:password@localhost/" }; yield return new object[] { new UriBuilder() { Port = 80 }, "http://localhost:80/" }; yield return new object[] { new UriBuilder() { Port = 0 }, "http://localhost:0/" }; yield return new object[] { new UriBuilder() { Host = "", Port = 80 }, "http:///" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "" }, "http://host/" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "/" }, "http://host/" }; yield return new object[] { new UriBuilder() { Host = "host", Path = @"\" }, "http://host/" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "path" }, "http://host/path" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "path", Query = "query" }, "http://host/path?query" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "path", Fragment = "fragment" }, "http://host/path#fragment" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "path", Query = "query", Fragment = "fragment" }, "http://host/path?query#fragment" }; yield return new object[] { new UriBuilder() { Host = "host", Query = "query" }, "http://host/?query" }; yield return new object[] { new UriBuilder() { Host = "host", Fragment = "fragment" }, "http://host/#fragment" }; yield return new object[] { new UriBuilder() { Host = "host", Query = "query", Fragment = "fragment" }, "http://host/?query#fragment" }; } [Theory] [MemberData(nameof(ToString_TestData))] public void ToStringTest(UriBuilder uriBuilder, string expected) { Assert.Equal(expected, uriBuilder.ToString()); } [Fact] public void ToString_Invalid() { var uriBuilder = new UriBuilder(); uriBuilder.Password = "password"; Assert.Throws<UriFormatException>(() => uriBuilder.ToString()); // Uri has a password but no username } private static void VerifyUriBuilder(UriBuilder uriBuilder, string scheme, string userName, string password, string host, int port, string path, string query, string fragment) { Assert.Equal(scheme, uriBuilder.Scheme); Assert.Equal(userName, uriBuilder.UserName); Assert.Equal(password, uriBuilder.Password); Assert.Equal(host, uriBuilder.Host); Assert.Equal(port, uriBuilder.Port); Assert.Equal(path, uriBuilder.Path); Assert.Equal(query, uriBuilder.Query); Assert.Equal(fragment, uriBuilder.Fragment); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Xunit; namespace System.PrivateUri.Tests { public class UriBuilderTests { //This test tests a case where the .NET Core implementation of UriBuilder differs from .NET Framework UriBuilder. //The Query property will not longer prepend a ? character if the string being assigned is already prepended. [Fact] public static void TestQuery() { var uriBuilder = new UriBuilder(@"http://foo/bar/baz?date=today"); Assert.Equal("?date=today", uriBuilder.Query); uriBuilder.Query = "?date=yesterday"; Assert.Equal(@"?date=yesterday", uriBuilder.Query); uriBuilder.Query = "date=tomorrow"; Assert.Equal("?date=tomorrow", uriBuilder.Query); uriBuilder.Query += @"&place=redmond"; Assert.Equal("?date=tomorrow&place=redmond", uriBuilder.Query); uriBuilder.Query = null; Assert.Equal("", uriBuilder.Query); uriBuilder.Query = ""; Assert.Equal("", uriBuilder.Query); uriBuilder.Query = "?"; Assert.Equal("?", uriBuilder.Query); } [Fact] public void Ctor_Empty() { var uriBuilder = new UriBuilder(); VerifyUriBuilder(uriBuilder, scheme: "http", userName: "", password: "", host: "localhost", port: -1, path: "/", query: "", fragment: ""); } [Theory] [InlineData("http://host/", true, "http", "", "", "host", 80, "/", "", "")] [InlineData("http://username@host/", true, "http", "username", "", "host", 80, "/", "", "")] [InlineData("http://username:password@host/", true, "http", "username", "password", "host", 80, "/", "", "")] [InlineData("http://host:90/", true, "http", "", "", "host", 90, "/", "", "")] [InlineData("http://host/path", true, "http", "", "", "host", 80, "/path", "", "")] [InlineData("http://host/?query", true, "http", "", "", "host", 80, "/", "?query", "")] [InlineData("http://host/#fragment", true, "http", "", "", "host", 80, "/", "", "#fragment")] [InlineData("http://username:password@host:90/path1/path2?query#fragment", true, "http", "username", "password", "host", 90, "/path1/path2", "?query", "#fragment")] [InlineData("www.host.com", false, "http", "", "", "www.host.com", 80, "/", "", "")] // Relative [InlineData("unknownscheme:", true, "unknownscheme", "", "", "", -1, "", "", "")] // No authority public void Ctor_String(string uriString, bool createUri, string scheme, string username, string password, string host, int port, string path, string query, string fragment) { var uriBuilder = new UriBuilder(uriString); VerifyUriBuilder(uriBuilder, scheme, username, password, host, port, path, query, fragment); if (createUri) { uriBuilder = new UriBuilder(new Uri(uriString, UriKind.RelativeOrAbsolute)); VerifyUriBuilder(uriBuilder, scheme, username, password, host, port, path, query, fragment); } else { Assert.Throws<InvalidOperationException>(() => new UriBuilder(new Uri(uriString, UriKind.RelativeOrAbsolute))); } } [Fact] public void Ctor_String_Invalid() { AssertExtensions.Throws<ArgumentNullException>("uriString", () => new UriBuilder((string)null)); // UriString is null Assert.Throws<UriFormatException>(() => new UriBuilder(@"http://host\")); // UriString is invalid } [Fact] public void Ctor_Uri_Null() { AssertExtensions.Throws<ArgumentNullException>("uri", () => new UriBuilder((Uri)null)); // Uri is null } [Theory] [InlineData("http", "host", "http", "host")] [InlineData("HTTP", "host", "http", "host")] [InlineData("http", "[::1]", "http", "[::1]")] [InlineData("https", "::1]", "https", "[::1]]")] [InlineData("http", "::1", "http", "[::1]")] [InlineData("http1:http2", "host", "http1", "host")] [InlineData("http", "", "http", "")] [InlineData("", "host", "", "host")] [InlineData("", "", "", "")] [InlineData("http", null, "http", "")] [InlineData(null, "", "", "")] [InlineData(null, null, "", "")] public void Ctor_String_String(string schemeName, string hostName, string expectedScheme, string expectedHost) { var uriBuilder = new UriBuilder(schemeName, hostName); VerifyUriBuilder(uriBuilder, expectedScheme, "", "", expectedHost, -1, "/", "", ""); } [Theory] [InlineData("http", "host", 0, "http", "host")] [InlineData("HTTP", "host", 20, "http", "host")] [InlineData("http", "[::1]", 40, "http", "[::1]")] [InlineData("https", "::1]", 60, "https", "[::1]]")] [InlineData("http", "::1", 80, "http", "[::1]")] [InlineData("http1:http2", "host", 100, "http1", "host")] [InlineData("http", "", 120, "http", "")] [InlineData("", "host", 140, "", "host")] [InlineData("", "", 160, "", "")] [InlineData("http", null, 180, "http", "")] [InlineData(null, "", -1, "", "")] [InlineData(null, null, 65535, "", "")] public void Ctor_String_String_Int(string scheme, string host, int port, string expectedScheme, string expectedHost) { var uriBuilder = new UriBuilder(scheme, host, port); VerifyUriBuilder(uriBuilder, expectedScheme, "", "", expectedHost, port, "/", "", ""); } [Theory] [InlineData("http", "host", 0, "/path", "http", "host", "/path")] [InlineData("HTTP", "host", 20, "/path1/path2", "http", "host", "/path1/path2")] [InlineData("http", "[::1]", 40, "/", "http", "[::1]", "/")] [InlineData("https", "::1]", 60, "/path1/", "https", "[::1]]", "/path1/")] [InlineData("http", "::1", 80, null, "http", "[::1]", "/")] [InlineData("http1:http2", "host", 100, "path1", "http1", "host", "path1")] [InlineData("http", "", 120, "path1/path2", "http", "", "path1/path2")] [InlineData("", "host", 140, "path1/path2/path3/", "", "host", "path1/path2/path3/")] [InlineData("", "", 160, @"\path1\path2\path3", "", "", "/path1/path2/path3")] [InlineData("http", null, 180, @"path1\path2\", "http", "", "path1/path2/")] [InlineData(null, "", -1, "\u1234", "", "", "%E1%88%B4")] [InlineData(null, null, 65535, "\u1234\u2345", "", "", "%E1%88%B4%E2%8D%85")] public void Ctor_String_String_Int_String(string schemeName, string hostName, int port, string pathValue, string expectedScheme, string expectedHost, string expectedPath) { var uriBuilder = new UriBuilder(schemeName, hostName, port, pathValue); VerifyUriBuilder(uriBuilder, expectedScheme, "", "", expectedHost, port, expectedPath, "", ""); } [Theory] [InlineData("http", "host", 0, "/path", "?query#fragment", "http", "host", "/path", "?query", "#fragment")] [InlineData("HTTP", "host", 20, "/path1/path2", "?query&query2=value#fragment", "http", "host", "/path1/path2", "?query&query2=value", "#fragment")] [InlineData("http", "[::1]", 40, "/", "#fragment?query", "http", "[::1]", "/", "", "#fragment?query")] [InlineData("https", "::1]", 60, "/path1/", "?query", "https", "[::1]]", "/path1/", "?query", "")] [InlineData("http", "::1", 80, null, "#fragment", "http", "[::1]", "/", "", "#fragment")] [InlineData("http", "", 120, "path1/path2", "?#", "http", "", "path1/path2", "", "")] [InlineData("", "host", 140, "path1/path2/path3/", "?", "", "host", "path1/path2/path3/", "", "")] [InlineData("", "", 160, @"\path1\path2\path3", "#", "", "", "/path1/path2/path3", "", "")] [InlineData("http", null, 180, @"path1\path2\", "?\u1234#\u2345", "http", "", "path1/path2/", "?\u1234", "#\u2345")] [InlineData(null, "", -1, "\u1234", "", "", "", "%E1%88%B4", "", "")] [InlineData(null, null, 65535, "\u1234\u2345", null, "", "", "%E1%88%B4%E2%8D%85", "", "")] public void Ctor_String_String_Int_String_String(string schemeName, string hostName, int port, string pathValue, string extraValue, string expectedScheme, string expectedHost, string expectedPath, string expectedQuery, string expectedFragment) { var uriBuilder = new UriBuilder(schemeName, hostName, port, pathValue, extraValue); VerifyUriBuilder(uriBuilder, expectedScheme, "", "", expectedHost, port, expectedPath, expectedQuery, expectedFragment); } [Theory] [InlineData("query#fragment")] [InlineData("fragment?fragment")] public void Ctor_InvalidExtraValue_ThrowsArgumentException(string extraValue) { AssertExtensions.Throws<ArgumentException>("extraValue", null, () => new UriBuilder("scheme", "host", 80, "path", extraValue)); } [Theory] [InlineData("https", "https")] [InlineData("", "")] [InlineData(null, "")] public void Scheme_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.Scheme = value; Assert.Equal(expected, uriBuilder.Scheme); } [Theory] [InlineData("\u1234http")] [InlineData(".")] [InlineData("-")] public void InvalidScheme_ThrowsArgumentException(string schemeName) { AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder(schemeName, "host")); AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder(schemeName, "host", 80)); AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder(schemeName, "host", 80, "path")); AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder(schemeName, "host", 80, "?query#fragment")); AssertExtensions.Throws<ArgumentException>("value", null, () => new UriBuilder().Scheme = schemeName); } [Theory] [InlineData("username", "username")] [InlineData("", "")] [InlineData(null, "")] public void UserName_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.UserName = value; Assert.Equal(expected, uriBuilder.UserName); Uri oldUri = uriBuilder.Uri; uriBuilder.UserName = value; Assert.NotSame(uriBuilder.Uri, oldUri); // Should generate new uri Assert.Equal(uriBuilder.UserName, uriBuilder.Uri.UserInfo); } [Theory] [InlineData("password", "password")] [InlineData("", "")] [InlineData(null, "")] public void Password_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo1:PLACEHOLDER@domain/path?query#fragment"); uriBuilder.Password = value; Assert.Equal(expected, uriBuilder.Password); Uri oldUri = uriBuilder.Uri; uriBuilder.Password = value; Assert.NotSame(uriBuilder.Uri, oldUri); } [Theory] [InlineData("host", "host")] [InlineData("", "")] [InlineData(null, "")] public void Host_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.Host = value; Assert.Equal(expected, uriBuilder.Host); } [Theory] [InlineData(-1)] [InlineData(0)] [InlineData(80)] [InlineData(180)] [InlineData(65535)] public void Port_Get_Set(int port) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.Port = port; Assert.Equal(port, uriBuilder.Port); } [Theory] [InlineData(-2)] [InlineData(65536)] public void InvalidPort_ThrowsArgumentOutOfRangeException(int portNumber) { Assert.Throws<ArgumentOutOfRangeException>(() => new UriBuilder("scheme", "host", portNumber)); Assert.Throws<ArgumentOutOfRangeException>(() => new UriBuilder("scheme", "host", portNumber, "path")); Assert.Throws<ArgumentOutOfRangeException>(() => new UriBuilder("scheme", "host", portNumber, "path", "?query#fragment")); Assert.Throws<ArgumentOutOfRangeException>(() => new UriBuilder().Port = portNumber); } [Theory] [InlineData("/path1/path2", "/path1/path2")] [InlineData(@"\path1\path2", "/path1/path2")] [InlineData("", "/")] [InlineData(null, "/")] public void Path_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder("http://userinfo@domain/path?query#fragment"); uriBuilder.Path = value; Assert.Equal(expected, uriBuilder.Path); } [Theory] [InlineData("query", "?query")] [InlineData("", "")] [InlineData(null, "")] public void Query_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder(); uriBuilder.Query = value; Assert.Equal(expected, uriBuilder.Query); Uri oldUri = uriBuilder.Uri; uriBuilder.Query = value; Assert.NotSame(uriBuilder.Uri, oldUri); // Should generate new uri Assert.Equal(uriBuilder.Query, uriBuilder.Uri.Query); } [Theory] [InlineData("#fragment", "#fragment")] [InlineData("#", "#")] public void Fragment_Get_Set_StartsWithPound(string value, string expected) { var uriBuilder = new UriBuilder(); uriBuilder.Fragment = value; Assert.Equal(expected, uriBuilder.Fragment); Uri oldUri = uriBuilder.Uri; uriBuilder.Fragment = value; Assert.NotSame(uriBuilder.Uri, oldUri); // Should generate new uri Assert.Equal(uriBuilder.Fragment, uriBuilder.Uri.Fragment); } [Theory] [InlineData("fragment", "#fragment")] [InlineData("", "")] [InlineData(null, "")] public void Fragment_Get_Set(string value, string expected) { var uriBuilder = new UriBuilder(); uriBuilder.Fragment = value; Assert.Equal(expected, uriBuilder.Fragment); Uri oldUri = uriBuilder.Uri; uriBuilder.Fragment = value; Assert.NotSame(uriBuilder.Uri, oldUri); // Should generate new uri Assert.Equal(uriBuilder.Fragment, uriBuilder.Uri.Fragment); } public static IEnumerable<object[]> Equals_TestData() { yield return new object[] { new UriBuilder(), new UriBuilder(), true }; yield return new object[] { new UriBuilder(), null, false }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), true }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://domain.com:80/path/file?query#fragment"), true }; // Ignores userinfo yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path/file?query#fragment2"), true }; // Ignores fragment yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), false }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:90/path/file?query#fragment"), false }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path2/file?query#fragment"), false }; yield return new object[] { new UriBuilder("http://username:[email protected]:80/path/file?query#fragment"), new UriBuilder("http://username:[email protected]:80/path/file?query2#fragment"), false }; yield return new object[] { new UriBuilder("unknown:"), new UriBuilder("unknown:"), true }; yield return new object[] { new UriBuilder("unknown:"), new UriBuilder("different:"), false }; } [Theory] [MemberData(nameof(Equals_TestData))] public void EqualsTest(UriBuilder uriBuilder1, UriBuilder uriBuilder2, bool expected) { Assert.Equal(expected, uriBuilder1.Equals(uriBuilder2)); if (uriBuilder2 != null) { Assert.Equal(expected, uriBuilder1.GetHashCode().Equals(uriBuilder2.GetHashCode())); } } public static IEnumerable<object[]> ToString_TestData() { yield return new object[] { new UriBuilder(), "http://localhost/" }; yield return new object[] { new UriBuilder() { Scheme = "" }, "localhost/" }; yield return new object[] { new UriBuilder() { Scheme = "unknown" }, "unknown://localhost/" }; yield return new object[] { new UriBuilder() { Scheme = "unknown", Host = "" }, "unknown:/" }; yield return new object[] { new UriBuilder() { Scheme = "unknown", Host = "", Path = "path1/path2" }, "unknown:path1/path2" }; yield return new object[] { new UriBuilder() { UserName = "username" }, "http://username@localhost/" }; yield return new object[] { new UriBuilder() { UserName = "username", Password = "password" }, "http://username:password@localhost/" }; yield return new object[] { new UriBuilder() { Port = 80 }, "http://localhost:80/" }; yield return new object[] { new UriBuilder() { Port = 0 }, "http://localhost:0/" }; yield return new object[] { new UriBuilder() { Host = "", Port = 80 }, "http:///" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "" }, "http://host/" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "/" }, "http://host/" }; yield return new object[] { new UriBuilder() { Host = "host", Path = @"\" }, "http://host/" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "path" }, "http://host/path" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "path", Query = "query" }, "http://host/path?query" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "path", Fragment = "fragment" }, "http://host/path#fragment" }; yield return new object[] { new UriBuilder() { Host = "host", Path = "path", Query = "query", Fragment = "fragment" }, "http://host/path?query#fragment" }; yield return new object[] { new UriBuilder() { Host = "host", Query = "query" }, "http://host/?query" }; yield return new object[] { new UriBuilder() { Host = "host", Fragment = "fragment" }, "http://host/#fragment" }; yield return new object[] { new UriBuilder() { Host = "host", Query = "query", Fragment = "fragment" }, "http://host/?query#fragment" }; } [Theory] [MemberData(nameof(ToString_TestData))] public void ToStringTest(UriBuilder uriBuilder, string expected) { Assert.Equal(expected, uriBuilder.ToString()); } [Fact] public void ToString_Invalid() { var uriBuilder = new UriBuilder(); uriBuilder.Password = "password"; Assert.Throws<UriFormatException>(() => uriBuilder.ToString()); // Uri has a password but no username } private static void VerifyUriBuilder(UriBuilder uriBuilder, string scheme, string userName, string password, string host, int port, string path, string query, string fragment) { Assert.Equal(scheme, uriBuilder.Scheme); Assert.Equal(userName, uriBuilder.UserName); Assert.Equal(password, uriBuilder.Password); Assert.Equal(host, uriBuilder.Host); Assert.Equal(port, uriBuilder.Port); Assert.Equal(path, uriBuilder.Path); Assert.Equal(query, uriBuilder.Query); Assert.Equal(fragment, uriBuilder.Fragment); } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/Common/src/Interop/Windows/BCrypt/BCryptAeadHandleCache.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Security.Cryptography; using System.Threading; using Internal.NativeCrypto; namespace Internal.Cryptography { internal static class BCryptAeadHandleCache { private static SafeAlgorithmHandle? s_aesCcm; private static SafeAlgorithmHandle? s_aesGcm; private static SafeAlgorithmHandle? s_chaCha20Poly1305; internal static SafeAlgorithmHandle AesCcm => GetCachedAlgorithmHandle(ref s_aesCcm, Cng.BCRYPT_AES_ALGORITHM, Cng.BCRYPT_CHAIN_MODE_CCM); internal static SafeAlgorithmHandle AesGcm => GetCachedAlgorithmHandle(ref s_aesGcm, Cng.BCRYPT_AES_ALGORITHM, Cng.BCRYPT_CHAIN_MODE_GCM); internal static bool IsChaCha20Poly1305Supported { get; } = OperatingSystem.IsWindowsVersionAtLeast(10, 0, 20142); internal static SafeAlgorithmHandle ChaCha20Poly1305 => GetCachedAlgorithmHandle(ref s_chaCha20Poly1305, Cng.BCRYPT_CHACHA20_POLY1305_ALGORITHM); private static SafeAlgorithmHandle GetCachedAlgorithmHandle(ref SafeAlgorithmHandle? handle, string algId, string? chainingMode = null) { // Do we already have a handle to this algorithm? SafeAlgorithmHandle? existingHandle = Volatile.Read(ref handle); if (existingHandle != null) { return existingHandle; } // No cached handle exists; create a new handle. It's ok if multiple threads call // this concurrently. Only one handle will "win" and the rest will be destroyed. SafeAlgorithmHandle newHandle = Cng.BCryptOpenAlgorithmProvider(algId, null, Cng.OpenAlgorithmProviderFlags.NONE); if (chainingMode != null) { newHandle.SetCipherMode(chainingMode); } existingHandle = Interlocked.CompareExchange(ref handle, newHandle, null); if (existingHandle != null) { newHandle.Dispose(); return existingHandle; } else { return newHandle; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Security.Cryptography; using System.Threading; using Internal.NativeCrypto; namespace Internal.Cryptography { internal static class BCryptAeadHandleCache { private static SafeAlgorithmHandle? s_aesCcm; private static SafeAlgorithmHandle? s_aesGcm; private static SafeAlgorithmHandle? s_chaCha20Poly1305; internal static SafeAlgorithmHandle AesCcm => GetCachedAlgorithmHandle(ref s_aesCcm, Cng.BCRYPT_AES_ALGORITHM, Cng.BCRYPT_CHAIN_MODE_CCM); internal static SafeAlgorithmHandle AesGcm => GetCachedAlgorithmHandle(ref s_aesGcm, Cng.BCRYPT_AES_ALGORITHM, Cng.BCRYPT_CHAIN_MODE_GCM); internal static bool IsChaCha20Poly1305Supported { get; } = OperatingSystem.IsWindowsVersionAtLeast(10, 0, 20142); internal static SafeAlgorithmHandle ChaCha20Poly1305 => GetCachedAlgorithmHandle(ref s_chaCha20Poly1305, Cng.BCRYPT_CHACHA20_POLY1305_ALGORITHM); private static SafeAlgorithmHandle GetCachedAlgorithmHandle(ref SafeAlgorithmHandle? handle, string algId, string? chainingMode = null) { // Do we already have a handle to this algorithm? SafeAlgorithmHandle? existingHandle = Volatile.Read(ref handle); if (existingHandle != null) { return existingHandle; } // No cached handle exists; create a new handle. It's ok if multiple threads call // this concurrently. Only one handle will "win" and the rest will be destroyed. SafeAlgorithmHandle newHandle = Cng.BCryptOpenAlgorithmProvider(algId, null, Cng.OpenAlgorithmProviderFlags.NONE); if (chainingMode != null) { newHandle.SetCipherMode(chainingMode); } existingHandle = Interlocked.CompareExchange(ref handle, newHandle, null); if (existingHandle != null) { newHandle.Dispose(); return existingHandle; } else { return newHandle; } } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd.Arm64/ExtractNarrowingSaturateScalar.Vector64.SByte.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void ExtractNarrowingSaturateScalar_Vector64_SByte() { var test = new SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(Int16[] inArray1, SByte[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<SByte>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<Int16> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int16>, byte>(ref testStruct._fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int16>>()); return testStruct; } public void RunStructFldScenario(SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte testClass) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(_fld1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte testClass) { fixed (Vector64<Int16>* pFld1 = &_fld1) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(pFld1)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Int16>>() / sizeof(Int16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<SByte>>() / sizeof(SByte); private static Int16[] _data1 = new Int16[Op1ElementCount]; private static Vector64<Int16> _clsVar1; private Vector64<Int16> _fld1; private DataTable _dataTable; static SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int16>, byte>(ref _clsVar1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int16>>()); } public SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int16>, byte>(ref _fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } _dataTable = new DataTable(_data1, new SByte[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.Arm64.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( Unsafe.Read<Vector64<Int16>>(_dataTable.inArray1Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.ExtractNarrowingSaturateScalar), new Type[] { typeof(Vector64<Int16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<Int16>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<SByte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.ExtractNarrowingSaturateScalar), new Type[] { typeof(Vector64<Int16>) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<SByte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( _clsVar1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<Int16>* pClsVar1 = &_clsVar1) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(pClsVar1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<Int16>>(_dataTable.inArray1Ptr); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte(); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte(); fixed (Vector64<Int16>* pFld1 = &test._fld1) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(_fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<Int16>* pFld1 = &_fld1) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(&test._fld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector64<Int16> op1, void* result, [CallerMemberName] string method = "") { Int16[] inArray1 = new Int16[Op1ElementCount]; SByte[] outArray = new SByte[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<SByte>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { Int16[] inArray1 = new Int16[Op1ElementCount]; SByte[] outArray = new SByte[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Int16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<SByte>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(Int16[] firstOp, SByte[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (Helpers.ExtractNarrowingSaturate(firstOp[0]) != result[0]) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != 0) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd.Arm64)}.{nameof(AdvSimd.Arm64.ExtractNarrowingSaturateScalar)}<SByte>(Vector64<Int16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void ExtractNarrowingSaturateScalar_Vector64_SByte() { var test = new SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(Int16[] inArray1, SByte[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<SByte>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<Int16> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int16>, byte>(ref testStruct._fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int16>>()); return testStruct; } public void RunStructFldScenario(SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte testClass) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(_fld1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte testClass) { fixed (Vector64<Int16>* pFld1 = &_fld1) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(pFld1)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Int16>>() / sizeof(Int16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<SByte>>() / sizeof(SByte); private static Int16[] _data1 = new Int16[Op1ElementCount]; private static Vector64<Int16> _clsVar1; private Vector64<Int16> _fld1; private DataTable _dataTable; static SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int16>, byte>(ref _clsVar1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int16>>()); } public SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int16>, byte>(ref _fld1), ref Unsafe.As<Int16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt16(); } _dataTable = new DataTable(_data1, new SByte[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.Arm64.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( Unsafe.Read<Vector64<Int16>>(_dataTable.inArray1Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.ExtractNarrowingSaturateScalar), new Type[] { typeof(Vector64<Int16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<Int16>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<SByte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd.Arm64).GetMethod(nameof(AdvSimd.Arm64.ExtractNarrowingSaturateScalar), new Type[] { typeof(Vector64<Int16>) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<SByte>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( _clsVar1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<Int16>* pClsVar1 = &_clsVar1) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(pClsVar1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<Int16>>(_dataTable.inArray1Ptr); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((Int16*)(_dataTable.inArray1Ptr)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte(); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleUnaryOpTest__ExtractNarrowingSaturateScalar_Vector64_SByte(); fixed (Vector64<Int16>* pFld1 = &test._fld1) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(_fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<Int16>* pFld1 = &_fld1) { var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.Arm64.ExtractNarrowingSaturateScalar( AdvSimd.LoadVector64((Int16*)(&test._fld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector64<Int16> op1, void* result, [CallerMemberName] string method = "") { Int16[] inArray1 = new Int16[Op1ElementCount]; SByte[] outArray = new SByte[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<SByte>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { Int16[] inArray1 = new Int16[Op1ElementCount]; SByte[] outArray = new SByte[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Int16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<SByte, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<SByte>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(Int16[] firstOp, SByte[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (Helpers.ExtractNarrowingSaturate(firstOp[0]) != result[0]) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != 0) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd.Arm64)}.{nameof(AdvSimd.Arm64.ExtractNarrowingSaturateScalar)}<SByte>(Vector64<Int16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/tracing/eventpipe/common/IpcTraceTest.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Diagnostics; using System.Diagnostics.Tracing; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using Microsoft.Diagnostics.NETCore.Client; using Microsoft.Diagnostics.Tracing; namespace Tracing.Tests.Common { public class Logger { public static Logger logger = new Logger(); private TextWriter _log; private Stopwatch _sw; public Logger(TextWriter log = null) { _log = log ?? Console.Out; _sw = new Stopwatch(); } public void Log(string message) { if (!_sw.IsRunning) _sw.Start(); _log.WriteLine($"{_sw.Elapsed.TotalSeconds,5:f1}s: {message}"); } } public class ExpectedEventCount { // The acceptable percent error on the expected value // represented as a floating point value in [0,1]. public float Error { get; private set; } // The expected count of events. A value of -1 indicates // that count does not matter, and we are simply testing // that the provider exists in the trace. public int Count { get; private set; } public ExpectedEventCount(int count, float error = 0.0f) { Count = count; Error = error; } public bool Validate(int actualValue) { return Count == -1 || CheckErrorBounds(actualValue); } public bool CheckErrorBounds(int actualValue) { return Math.Abs(actualValue - Count) <= (Count * Error); } public static implicit operator ExpectedEventCount(int i) { return new ExpectedEventCount(i); } public override string ToString() { return $"{Count} +- {Count * Error}"; } } // This event source is used by the test infra to // to insure that providers have finished being enabled // for the session being observed. Since the client API // returns the pipe for reading _before_ it finishes // enabling the providers to write to that session, // we need to guarantee that our providers are on before // sending events. This is a _unique_ problem I imagine // should _only_ affect scenarios like these tests // where the reading and sending of events are required // to synchronize. public sealed class SentinelEventSource : EventSource { private SentinelEventSource() {} public static SentinelEventSource Log = new SentinelEventSource(); public void SentinelEvent() { WriteEvent(1, "SentinelEvent"); } } public class IpcTraceTest { // This Action is executed while the trace is being collected. private Action _eventGeneratingAction; // A dictionary of event providers to number of events. // A count of -1 indicates that you are only testing for the presence of the provider // and don't care about the number of events sent private Dictionary<string, ExpectedEventCount> _expectedEventCounts; private Dictionary<string, int> _actualEventCounts = new Dictionary<string, int>(); // A function to be called with the EventPipeEventSource _before_ // the call to `source.Process()`. The function should return another // function that will be called to check whether the optional test was validated. // Example in situ: providervalidation.cs private Func<EventPipeEventSource, Func<int>> _optionalTraceValidator; /// <summary> /// This is list of the EventPipe providers to turn on for the test execution /// </summary> private List<EventPipeProvider> _testProviders; /// <summary> /// This represents the current EventPipeSession /// </summary> private EventPipeSession _eventPipeSession; /// <summary> /// This is the list of EventPipe providers for the sentinel EventSource that indicates that the process is ready /// </summary> private List<EventPipeProvider> _sentinelProviders = new List<EventPipeProvider>() { new EventPipeProvider("SentinelEventSource", EventLevel.Verbose, -1) }; IpcTraceTest( Dictionary<string, ExpectedEventCount> expectedEventCounts, Action eventGeneratingAction, List<EventPipeProvider> providers, int circularBufferMB, Func<EventPipeEventSource, Func<int>> optionalTraceValidator = null) { _eventGeneratingAction = eventGeneratingAction; _expectedEventCounts = expectedEventCounts; _testProviders = providers; _optionalTraceValidator = optionalTraceValidator; } private int Fail(string message = "") { Logger.logger.Log("Test FAILED!"); Logger.logger.Log(message); Logger.logger.Log("Configuration:"); Logger.logger.Log("{"); Logger.logger.Log("\tproviders: ["); Logger.logger.Log("\t]"); Logger.logger.Log("}\n"); Logger.logger.Log("Expected:"); Logger.logger.Log("{"); foreach (var (k, v) in _expectedEventCounts) { Logger.logger.Log($"\t\"{k}\" = {v}"); } Logger.logger.Log("}\n"); Logger.logger.Log("Actual:"); Logger.logger.Log("{"); foreach (var (k, v) in _actualEventCounts) { Logger.logger.Log($"\t\"{k}\" = {v}"); } Logger.logger.Log("}"); return -1; } private int Validate() { // FIXME: This is a bandaid fix for a deadlock in EventPipeEventSource caused by // the lazy caching in the Regex library. The caching creates a ConcurrentDictionary // and because it is the first one in the process, it creates an EventSource which // results in a deadlock over a lock in EventPipe. These lines should be removed once the // underlying issue is fixed by forcing these events to try to be written _before_ we shutdown. // // see: https://github.com/dotnet/runtime/pull/1794 for details on the issue // var emptyConcurrentDictionary = new ConcurrentDictionary<string, string>(); emptyConcurrentDictionary["foo"] = "bar"; var __count = emptyConcurrentDictionary.Count; var isClean = IpcTraceTest.EnsureCleanEnvironment(); if (!isClean) return -1; // CollectTracing returns before EventPipe::Enable has returned, so the // the sources we want to listen for may not have been enabled yet. // We'll use this sentinel EventSource to check if Enable has finished ManualResetEvent sentinelEventReceived = new ManualResetEvent(false); var sentinelTask = new Task(() => { Logger.logger.Log("Started sending sentinel events..."); while (!sentinelEventReceived.WaitOne(50)) { SentinelEventSource.Log.SentinelEvent(); } Logger.logger.Log("Stopped sending sentinel events"); }); sentinelTask.Start(); int processId = Process.GetCurrentProcess().Id; object threadSync = new object(); // for locking eventpipeSession access Func<int> optionalTraceValidationCallback = null; DiagnosticsClient client = new DiagnosticsClient(processId); #if DIAGNOSTICS_RUNTIME if (OperatingSystem.IsAndroid()) client = new DiagnosticsClient(new IpcEndpointConfig("127.0.0.1:9000", IpcEndpointConfig.TransportType.TcpSocket, IpcEndpointConfig.PortType.Listen)); #endif var readerTask = new Task(() => { Logger.logger.Log("Connecting to EventPipe..."); try { _eventPipeSession = client.StartEventPipeSession(_testProviders.Concat(_sentinelProviders)); } catch (DiagnosticsClientException ex) { Logger.logger.Log("Failed to connect to EventPipe!"); Logger.logger.Log(ex.ToString()); throw new ApplicationException("Failed to connect to EventPipe"); } using (var eventPipeStream = new StreamProxy(_eventPipeSession.EventStream)) { Logger.logger.Log("Creating EventPipeEventSource..."); using (EventPipeEventSource source = new EventPipeEventSource(eventPipeStream)) { Logger.logger.Log("EventPipeEventSource created"); source.Dynamic.All += (eventData) => { try { if (eventData.ProviderName == "SentinelEventSource") { if (!sentinelEventReceived.WaitOne(0)) Logger.logger.Log("Saw sentinel event"); sentinelEventReceived.Set(); } else if (_actualEventCounts.TryGetValue(eventData.ProviderName, out _)) { _actualEventCounts[eventData.ProviderName]++; } else { Logger.logger.Log($"Saw new provider '{eventData.ProviderName}'"); _actualEventCounts[eventData.ProviderName] = 1; } } catch (Exception e) { Logger.logger.Log("Exception in Dynamic.All callback " + e.ToString()); } }; Logger.logger.Log("Dynamic.All callback registered"); if (_optionalTraceValidator != null) { Logger.logger.Log("Running optional trace validator"); optionalTraceValidationCallback = _optionalTraceValidator(source); Logger.logger.Log("Finished running optional trace validator"); } Logger.logger.Log("Starting stream processing..."); try { source.Process(); } catch (Exception) { Logger.logger.Log($"Exception thrown while reading; dumping culprit stream to disk..."); eventPipeStream.DumpStreamToDisk(); // rethrow it to fail the test throw; } Logger.logger.Log("Stopping stream processing"); Logger.logger.Log($"Dropped {source.EventsLost} events"); } } }); var waitSentinelEventTask = new Task(() => { sentinelEventReceived.WaitOne(); }); readerTask.Start(); waitSentinelEventTask.Start(); // Will throw if the reader task throws any exceptions before signaling sentinelEventReceived. Task.WaitAny(readerTask, waitSentinelEventTask); Logger.logger.Log("Starting event generating action..."); _eventGeneratingAction(); Logger.logger.Log("Stopping event generating action"); var stopTask = Task.Run(() => { Logger.logger.Log("Sending StopTracing command..."); lock (threadSync) // eventpipeSession { _eventPipeSession.Stop(); } Logger.logger.Log("Finished StopTracing command"); }); // Should throw if the reader task throws any exceptions Task.WaitAll(readerTask, stopTask); Logger.logger.Log("Reader task finished"); foreach (var (provider, expectedCount) in _expectedEventCounts) { if (_actualEventCounts.TryGetValue(provider, out var actualCount)) { if (!expectedCount.Validate(actualCount)) { return Fail($"Event count mismatch for provider \"{provider}\": expected {expectedCount}, but saw {actualCount}"); } } else { return Fail($"No events for provider \"{provider}\""); } } if (optionalTraceValidationCallback != null) { Logger.logger.Log("Validating optional callback..."); // reader thread should be dead now, no need to lock return optionalTraceValidationCallback(); } else { return 100; } } // Ensure that we have a clean environment for running the test. // Specifically check that we don't have more than one match for // Diagnostic IPC sockets in the TempPath. These can be left behind // by bugs, catastrophic test failures, etc. from previous testing. // The tmp directory is only cleared on reboot, so it is possible to // run into these zombie pipes if there are failures over time. // Note: Windows has some guarantees about named pipes not living longer // the process that created them, so we don't need to check on that platform. static public bool EnsureCleanEnvironment() { if (!OperatingSystem.IsWindows()) { Func<(IEnumerable<IGrouping<int,FileInfo>>, List<int>)> getPidsAndSockets = () => { IEnumerable<IGrouping<int,FileInfo>> currentIpcs = Directory.GetFiles(Path.GetTempPath(), "dotnet-diagnostic*") .Select(filename => new { pid = int.Parse(Regex.Match(filename, @"dotnet-diagnostic-(?<pid>\d+)").Groups["pid"].Value), fileInfo = new FileInfo(filename) }) .GroupBy(fileInfos => fileInfos.pid, fileInfos => fileInfos.fileInfo); List<int> currentPids = System.Diagnostics.Process.GetProcesses().Select(pid => pid.Id).ToList(); return (currentIpcs, currentPids); }; var (currentIpcs, currentPids) = getPidsAndSockets(); foreach (var ipc in currentIpcs) { if (!currentPids.Contains(ipc.Key)) { foreach (FileInfo fi in ipc) { Logger.logger.Log($"Attempting to delete the zombied pipe: {fi.FullName}"); fi.Delete(); Logger.logger.Log($"Deleted"); } } else { if (ipc.Count() > 1) { // delete zombied pipes except newest which is owned var duplicates = ipc.OrderBy(fileInfo => fileInfo.CreationTime.Ticks).SkipLast(1); foreach (FileInfo fi in duplicates) { Logger.logger.Log($"Attempting to delete the zombied pipe: {fi.FullName}"); fi.Delete(); } } } } } return true; } public static int RunAndValidateEventCounts( Dictionary<string, ExpectedEventCount> expectedEventCounts, Action eventGeneratingAction, List<EventPipeProvider> providers, int circularBufferMB=1024, Func<EventPipeEventSource, Func<int>> optionalTraceValidator = null) { Logger.logger.Log("==TEST STARTING=="); var test = new IpcTraceTest(expectedEventCounts, eventGeneratingAction, providers, circularBufferMB, optionalTraceValidator); try { var ret = test.Validate(); if (ret == 100) Logger.logger.Log("==TEST FINISHED: PASSED!=="); else Logger.logger.Log("==TEST FINISHED: FAILED!=="); return ret; } catch (Exception e) { Logger.logger.Log(e.ToString()); Logger.logger.Log("==TEST FINISHED: FAILED!=="); return -1; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Diagnostics; using System.Diagnostics.Tracing; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using Microsoft.Diagnostics.NETCore.Client; using Microsoft.Diagnostics.Tracing; namespace Tracing.Tests.Common { public class Logger { public static Logger logger = new Logger(); private TextWriter _log; private Stopwatch _sw; public Logger(TextWriter log = null) { _log = log ?? Console.Out; _sw = new Stopwatch(); } public void Log(string message) { if (!_sw.IsRunning) _sw.Start(); _log.WriteLine($"{_sw.Elapsed.TotalSeconds,5:f1}s: {message}"); } } public class ExpectedEventCount { // The acceptable percent error on the expected value // represented as a floating point value in [0,1]. public float Error { get; private set; } // The expected count of events. A value of -1 indicates // that count does not matter, and we are simply testing // that the provider exists in the trace. public int Count { get; private set; } public ExpectedEventCount(int count, float error = 0.0f) { Count = count; Error = error; } public bool Validate(int actualValue) { return Count == -1 || CheckErrorBounds(actualValue); } public bool CheckErrorBounds(int actualValue) { return Math.Abs(actualValue - Count) <= (Count * Error); } public static implicit operator ExpectedEventCount(int i) { return new ExpectedEventCount(i); } public override string ToString() { return $"{Count} +- {Count * Error}"; } } // This event source is used by the test infra to // to insure that providers have finished being enabled // for the session being observed. Since the client API // returns the pipe for reading _before_ it finishes // enabling the providers to write to that session, // we need to guarantee that our providers are on before // sending events. This is a _unique_ problem I imagine // should _only_ affect scenarios like these tests // where the reading and sending of events are required // to synchronize. public sealed class SentinelEventSource : EventSource { private SentinelEventSource() {} public static SentinelEventSource Log = new SentinelEventSource(); public void SentinelEvent() { WriteEvent(1, "SentinelEvent"); } } public class IpcTraceTest { // This Action is executed while the trace is being collected. private Action _eventGeneratingAction; // A dictionary of event providers to number of events. // A count of -1 indicates that you are only testing for the presence of the provider // and don't care about the number of events sent private Dictionary<string, ExpectedEventCount> _expectedEventCounts; private Dictionary<string, int> _actualEventCounts = new Dictionary<string, int>(); // A function to be called with the EventPipeEventSource _before_ // the call to `source.Process()`. The function should return another // function that will be called to check whether the optional test was validated. // Example in situ: providervalidation.cs private Func<EventPipeEventSource, Func<int>> _optionalTraceValidator; /// <summary> /// This is list of the EventPipe providers to turn on for the test execution /// </summary> private List<EventPipeProvider> _testProviders; /// <summary> /// This represents the current EventPipeSession /// </summary> private EventPipeSession _eventPipeSession; /// <summary> /// This is the list of EventPipe providers for the sentinel EventSource that indicates that the process is ready /// </summary> private List<EventPipeProvider> _sentinelProviders = new List<EventPipeProvider>() { new EventPipeProvider("SentinelEventSource", EventLevel.Verbose, -1) }; IpcTraceTest( Dictionary<string, ExpectedEventCount> expectedEventCounts, Action eventGeneratingAction, List<EventPipeProvider> providers, int circularBufferMB, Func<EventPipeEventSource, Func<int>> optionalTraceValidator = null) { _eventGeneratingAction = eventGeneratingAction; _expectedEventCounts = expectedEventCounts; _testProviders = providers; _optionalTraceValidator = optionalTraceValidator; } private int Fail(string message = "") { Logger.logger.Log("Test FAILED!"); Logger.logger.Log(message); Logger.logger.Log("Configuration:"); Logger.logger.Log("{"); Logger.logger.Log("\tproviders: ["); Logger.logger.Log("\t]"); Logger.logger.Log("}\n"); Logger.logger.Log("Expected:"); Logger.logger.Log("{"); foreach (var (k, v) in _expectedEventCounts) { Logger.logger.Log($"\t\"{k}\" = {v}"); } Logger.logger.Log("}\n"); Logger.logger.Log("Actual:"); Logger.logger.Log("{"); foreach (var (k, v) in _actualEventCounts) { Logger.logger.Log($"\t\"{k}\" = {v}"); } Logger.logger.Log("}"); return -1; } private int Validate() { // FIXME: This is a bandaid fix for a deadlock in EventPipeEventSource caused by // the lazy caching in the Regex library. The caching creates a ConcurrentDictionary // and because it is the first one in the process, it creates an EventSource which // results in a deadlock over a lock in EventPipe. These lines should be removed once the // underlying issue is fixed by forcing these events to try to be written _before_ we shutdown. // // see: https://github.com/dotnet/runtime/pull/1794 for details on the issue // var emptyConcurrentDictionary = new ConcurrentDictionary<string, string>(); emptyConcurrentDictionary["foo"] = "bar"; var __count = emptyConcurrentDictionary.Count; var isClean = IpcTraceTest.EnsureCleanEnvironment(); if (!isClean) return -1; // CollectTracing returns before EventPipe::Enable has returned, so the // the sources we want to listen for may not have been enabled yet. // We'll use this sentinel EventSource to check if Enable has finished ManualResetEvent sentinelEventReceived = new ManualResetEvent(false); var sentinelTask = new Task(() => { Logger.logger.Log("Started sending sentinel events..."); while (!sentinelEventReceived.WaitOne(50)) { SentinelEventSource.Log.SentinelEvent(); } Logger.logger.Log("Stopped sending sentinel events"); }); sentinelTask.Start(); int processId = Process.GetCurrentProcess().Id; object threadSync = new object(); // for locking eventpipeSession access Func<int> optionalTraceValidationCallback = null; DiagnosticsClient client = new DiagnosticsClient(processId); #if DIAGNOSTICS_RUNTIME if (OperatingSystem.IsAndroid()) client = new DiagnosticsClient(new IpcEndpointConfig("127.0.0.1:9000", IpcEndpointConfig.TransportType.TcpSocket, IpcEndpointConfig.PortType.Listen)); #endif var readerTask = new Task(() => { Logger.logger.Log("Connecting to EventPipe..."); try { _eventPipeSession = client.StartEventPipeSession(_testProviders.Concat(_sentinelProviders)); } catch (DiagnosticsClientException ex) { Logger.logger.Log("Failed to connect to EventPipe!"); Logger.logger.Log(ex.ToString()); throw new ApplicationException("Failed to connect to EventPipe"); } using (var eventPipeStream = new StreamProxy(_eventPipeSession.EventStream)) { Logger.logger.Log("Creating EventPipeEventSource..."); using (EventPipeEventSource source = new EventPipeEventSource(eventPipeStream)) { Logger.logger.Log("EventPipeEventSource created"); source.Dynamic.All += (eventData) => { try { if (eventData.ProviderName == "SentinelEventSource") { if (!sentinelEventReceived.WaitOne(0)) Logger.logger.Log("Saw sentinel event"); sentinelEventReceived.Set(); } else if (_actualEventCounts.TryGetValue(eventData.ProviderName, out _)) { _actualEventCounts[eventData.ProviderName]++; } else { Logger.logger.Log($"Saw new provider '{eventData.ProviderName}'"); _actualEventCounts[eventData.ProviderName] = 1; } } catch (Exception e) { Logger.logger.Log("Exception in Dynamic.All callback " + e.ToString()); } }; Logger.logger.Log("Dynamic.All callback registered"); if (_optionalTraceValidator != null) { Logger.logger.Log("Running optional trace validator"); optionalTraceValidationCallback = _optionalTraceValidator(source); Logger.logger.Log("Finished running optional trace validator"); } Logger.logger.Log("Starting stream processing..."); try { source.Process(); } catch (Exception) { Logger.logger.Log($"Exception thrown while reading; dumping culprit stream to disk..."); eventPipeStream.DumpStreamToDisk(); // rethrow it to fail the test throw; } Logger.logger.Log("Stopping stream processing"); Logger.logger.Log($"Dropped {source.EventsLost} events"); } } }); var waitSentinelEventTask = new Task(() => { sentinelEventReceived.WaitOne(); }); readerTask.Start(); waitSentinelEventTask.Start(); // Will throw if the reader task throws any exceptions before signaling sentinelEventReceived. Task.WaitAny(readerTask, waitSentinelEventTask); Logger.logger.Log("Starting event generating action..."); _eventGeneratingAction(); Logger.logger.Log("Stopping event generating action"); var stopTask = Task.Run(() => { Logger.logger.Log("Sending StopTracing command..."); lock (threadSync) // eventpipeSession { _eventPipeSession.Stop(); } Logger.logger.Log("Finished StopTracing command"); }); // Should throw if the reader task throws any exceptions Task.WaitAll(readerTask, stopTask); Logger.logger.Log("Reader task finished"); foreach (var (provider, expectedCount) in _expectedEventCounts) { if (_actualEventCounts.TryGetValue(provider, out var actualCount)) { if (!expectedCount.Validate(actualCount)) { return Fail($"Event count mismatch for provider \"{provider}\": expected {expectedCount}, but saw {actualCount}"); } } else { return Fail($"No events for provider \"{provider}\""); } } if (optionalTraceValidationCallback != null) { Logger.logger.Log("Validating optional callback..."); // reader thread should be dead now, no need to lock return optionalTraceValidationCallback(); } else { return 100; } } // Ensure that we have a clean environment for running the test. // Specifically check that we don't have more than one match for // Diagnostic IPC sockets in the TempPath. These can be left behind // by bugs, catastrophic test failures, etc. from previous testing. // The tmp directory is only cleared on reboot, so it is possible to // run into these zombie pipes if there are failures over time. // Note: Windows has some guarantees about named pipes not living longer // the process that created them, so we don't need to check on that platform. static public bool EnsureCleanEnvironment() { if (!OperatingSystem.IsWindows()) { Func<(IEnumerable<IGrouping<int,FileInfo>>, List<int>)> getPidsAndSockets = () => { IEnumerable<IGrouping<int,FileInfo>> currentIpcs = Directory.GetFiles(Path.GetTempPath(), "dotnet-diagnostic*") .Select(filename => new { pid = int.Parse(Regex.Match(filename, @"dotnet-diagnostic-(?<pid>\d+)").Groups["pid"].Value), fileInfo = new FileInfo(filename) }) .GroupBy(fileInfos => fileInfos.pid, fileInfos => fileInfos.fileInfo); List<int> currentPids = System.Diagnostics.Process.GetProcesses().Select(pid => pid.Id).ToList(); return (currentIpcs, currentPids); }; var (currentIpcs, currentPids) = getPidsAndSockets(); foreach (var ipc in currentIpcs) { if (!currentPids.Contains(ipc.Key)) { foreach (FileInfo fi in ipc) { Logger.logger.Log($"Attempting to delete the zombied pipe: {fi.FullName}"); fi.Delete(); Logger.logger.Log($"Deleted"); } } else { if (ipc.Count() > 1) { // delete zombied pipes except newest which is owned var duplicates = ipc.OrderBy(fileInfo => fileInfo.CreationTime.Ticks).SkipLast(1); foreach (FileInfo fi in duplicates) { Logger.logger.Log($"Attempting to delete the zombied pipe: {fi.FullName}"); fi.Delete(); } } } } } return true; } public static int RunAndValidateEventCounts( Dictionary<string, ExpectedEventCount> expectedEventCounts, Action eventGeneratingAction, List<EventPipeProvider> providers, int circularBufferMB=1024, Func<EventPipeEventSource, Func<int>> optionalTraceValidator = null) { Logger.logger.Log("==TEST STARTING=="); var test = new IpcTraceTest(expectedEventCounts, eventGeneratingAction, providers, circularBufferMB, optionalTraceValidator); try { var ret = test.Validate(); if (ret == 100) Logger.logger.Log("==TEST FINISHED: PASSED!=="); else Logger.logger.Log("==TEST FINISHED: FAILED!=="); return ret; } catch (Exception e) { Logger.logger.Log(e.ToString()); Logger.logger.Log("==TEST FINISHED: FAILED!=="); return -1; } } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Dynamic.Runtime/tests/Dynamic.Unsafe/conformance.dynamic.unsafe.context.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.class01.class01 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe type </Title> // <Description> // class // </Description> //<Expects Status=success></Expects> // <Code> public unsafe class C { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { dynamic d = new C(); return 0; } } } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.codeblock01.codeblock01 { public unsafe class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { unsafe { dynamic d = 1; d = new Test(); } return 0; } } // </Code> } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.freach01.freach01 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe context </Title> // <Description> // foreach // </Description> //<Expects Status=success></Expects> // <Code> public unsafe class C { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { C[] arrayC = new C[] { new C(), new C(), new C()} ; foreach (dynamic d in arrayC) // C is an unsafe type { if (d.GetType() != typeof(C)) { return 1; } } return 0; } } // </Code> } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.freach02.freach02 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe context </Title> // <Description> // foreach // </Description> //<Expects Status=success></Expects> // <Code> public unsafe class C { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { dynamic arrayC = new C[] { new C(), new C(), new C()} ; foreach (C c in arrayC) // C is an unsafe type { if (c.GetType() != typeof(C)) { return 1; } } return 0; } } } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.freach03.freach03 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe context </Title> // <Description> // foreach // </Description> //<Expects Status=success></Expects> // <Code> // pointer arrays are not supported //public unsafe class C //{ //public static int* p; //} //[TestClass]public class Test //{ //[Test][Priority(Priority.Priority2)]public void DynamicCSharpRunTest(){Assert.AreEqual(0, MainMethod(null));} public static unsafe int MainMethod(string[] args) //{ //int a = 1, b = 2, c = 3; //dynamic arrayp = new int*[] { &a, &b, &c }; //try //{ //foreach (dynamic d in arrayp) //{ //} //} //catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e) //{ //if (ErrorVerifier.Verify(ErrorMessageId.UnsafeNeeded, e.Message)) //return 0; //} //return 1; //} //} //// </Code> } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.strct01.strct01 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe type</Title> // <Description> // struct // </Description> //<Expects Status=success></Expects> // <Code> public unsafe struct S { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { dynamic d = new S(); return 0; } } // </Code> } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.while01.while01 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe context </Title> // <Description> // foreach // </Description> //<Expects Status=success></Expects> // <Code> public unsafe class C { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { unsafe { int index = 5; do { dynamic d = new C(); int* p = &index; *p = *p - 1; } while (index > 0); } return 0; } } // </Code> }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Xunit; namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.class01.class01 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe type </Title> // <Description> // class // </Description> //<Expects Status=success></Expects> // <Code> public unsafe class C { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { dynamic d = new C(); return 0; } } } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.codeblock01.codeblock01 { public unsafe class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { unsafe { dynamic d = 1; d = new Test(); } return 0; } } // </Code> } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.freach01.freach01 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe context </Title> // <Description> // foreach // </Description> //<Expects Status=success></Expects> // <Code> public unsafe class C { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { C[] arrayC = new C[] { new C(), new C(), new C()} ; foreach (dynamic d in arrayC) // C is an unsafe type { if (d.GetType() != typeof(C)) { return 1; } } return 0; } } // </Code> } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.freach02.freach02 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe context </Title> // <Description> // foreach // </Description> //<Expects Status=success></Expects> // <Code> public unsafe class C { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { dynamic arrayC = new C[] { new C(), new C(), new C()} ; foreach (C c in arrayC) // C is an unsafe type { if (c.GetType() != typeof(C)) { return 1; } } return 0; } } } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.freach03.freach03 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe context </Title> // <Description> // foreach // </Description> //<Expects Status=success></Expects> // <Code> // pointer arrays are not supported //public unsafe class C //{ //public static int* p; //} //[TestClass]public class Test //{ //[Test][Priority(Priority.Priority2)]public void DynamicCSharpRunTest(){Assert.AreEqual(0, MainMethod(null));} public static unsafe int MainMethod(string[] args) //{ //int a = 1, b = 2, c = 3; //dynamic arrayp = new int*[] { &a, &b, &c }; //try //{ //foreach (dynamic d in arrayp) //{ //} //} //catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException e) //{ //if (ErrorVerifier.Verify(ErrorMessageId.UnsafeNeeded, e.Message)) //return 0; //} //return 1; //} //} //// </Code> } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.strct01.strct01 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe type</Title> // <Description> // struct // </Description> //<Expects Status=success></Expects> // <Code> public unsafe struct S { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { dynamic d = new S(); return 0; } } // </Code> } namespace ManagedTests.DynamicCSharp.conformance.dynamic.unsfe.context.while01.while01 { // <Area> dynamic in unsafe code </Area> // <Title> unsafe context </Title> // <Description> // foreach // </Description> //<Expects Status=success></Expects> // <Code> public unsafe class C { public static int* p; } public class Test { [Fact] public static void DynamicCSharpRunTest() { Assert.Equal(0, MainMethod(null)); } public static int MainMethod(string[] args) { unsafe { int index = 5; do { dynamic d = new C(); int* p = &index; *p = *p - 1; } while (index > 0); } return 0; } } // </Code> }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/installer/tests/HostActivation.Tests/NativeHosting/GetNativeSearchDirectories.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Build; using Microsoft.DotNet.Cli.Build.Framework; using Xunit; namespace Microsoft.DotNet.CoreSetup.Test.HostActivation.NativeHosting { public class GetNativeSearchDirectories : IClassFixture<GetNativeSearchDirectories.SharedTestState> { public class Scenario { public const string GetForCommandLine = "get_for_command_line"; } private const string GetNativeSearchDirectoriesArg = "get_native_search_directories"; private readonly SharedTestState sharedState; public GetNativeSearchDirectories(SharedTestState sharedTestState) { sharedState = sharedTestState; } [Fact] public void BasicApp() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, sharedState.DotNet.DotnetExecutablePath, sharedState.AppPath }; CommandResult result = sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute(); string pathSuffix = Path.DirectorySeparatorChar.ToString(); string expectedSearchDirectories = Path.GetDirectoryName(sharedState.AppPath) + pathSuffix + Path.PathSeparator + Path.Combine(sharedState.DotNet.BinPath, "shared", "Microsoft.NETCore.App", SharedTestState.NetCoreAppVersion) + pathSuffix + Path.PathSeparator; result.Should().Pass() .And.HaveStdOutContaining($"Native search directories: '{expectedSearchDirectories}'"); } [Fact] public void Invalid_NullBufferWithNonZeroSize() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, "test_NullBufferWithNonZeroSize" }; sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute() .Should().Fail() .And.HaveStdOutContaining($"get_native_search_directories (null, 1) returned: 0x{Constants.ErrorCode.InvalidArgFailure:x}") .And.HaveStdOutContaining("buffer_size: 0") .And.HaveStdOutContaining("hostfxr reported errors:") .And.HaveStdOutContaining("hostfxr_get_native_search_directories received an invalid argument."); } [Fact] public void Invalid_NonNullBufferWithNegativeSize() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, "test_NonNullBufferWithNegativeSize" }; sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute() .Should().Fail() .And.HaveStdOutContaining($"get_native_search_directories (temp_buffer, -1) returned: 0x{Constants.ErrorCode.InvalidArgFailure:x}") .And.HaveStdOutContaining("buffer_size: 0") .And.HaveStdOutContaining("hostfxr reported errors:") .And.HaveStdOutContaining("hostfxr_get_native_search_directories received an invalid argument."); } // This test also validates that hostfxr_set_error_writer propagates the custom writer // to the hostpolicy.dll for the duration of those calls. [Fact] public void WithInvalidDepsJson() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, sharedState.DotNet.DotnetExecutablePath, sharedState.AppPath }; string depsJsonFile = Path.Combine(sharedState.AppDirectory, "App.deps.json"); try { File.WriteAllText(depsJsonFile, "{"); sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute() .Should().Fail() .And.HaveStdOutContaining($"get_native_search_directories (null,0) returned unexpected error code 0x{Constants.ErrorCode.ResolverInitFailure:x} expected HostApiBufferTooSmall (0x80008098).") .And.HaveStdOutContaining("buffer_size: 0") .And.HaveStdOutContaining("hostfxr reported errors:") .And.HaveStdOutContaining($"A JSON parsing exception occurred in [{depsJsonFile}], offset 1 (line 1, column 2): Missing a name for object member.") .And.HaveStdOutContaining($"Error initializing the dependency resolver: An error occurred while parsing: {depsJsonFile}"); } finally { FileUtils.DeleteFileIfPossible(depsJsonFile); } } [Fact] public void CliCommand() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, sharedState.DotNet.DotnetExecutablePath, "build" }; CommandResult result = sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute(); result.Should().Fail() .And.HaveStdOutContaining($"get_native_search_directories (null,0) returned unexpected error code 0x{Constants.ErrorCode.AppArgNotRunnable:x} expected HostApiBufferTooSmall (0x80008098).") .And.HaveStdOutContaining("buffer_size: 0") .And.HaveStdErrContaining("Application 'build' is not a managed executable."); } public class SharedTestState : SharedTestStateBase { public string HostFxrPath { get; } public DotNetCli DotNet { get; } public string AppDirectory { get; } public string AppPath { get; } public const string NetCoreAppVersion = "2.2.0"; public SharedTestState() { DotNet = new DotNetBuilder(BaseDirectory, Path.Combine(TestArtifact.TestArtifactsPath, "sharedFrameworkPublish"), "mockRuntime") .AddMicrosoftNETCoreAppFrameworkMockCoreClr(NetCoreAppVersion) .Build(); HostFxrPath = Path.Combine( DotNet.GreatestVersionHostFxrPath, RuntimeInformationExtensions.GetSharedLibraryFileNameForCurrentPlatform("hostfxr")); AppDirectory = Path.Combine(BaseDirectory, "app"); Directory.CreateDirectory(AppDirectory); AppPath = Path.Combine(AppDirectory, "App.dll"); File.WriteAllText(AppPath, string.Empty); RuntimeConfig.FromFile(Path.Combine(AppDirectory, "App.runtimeconfig.json")) .WithFramework(new RuntimeConfig.Framework(Constants.MicrosoftNETCoreApp, NetCoreAppVersion)) .Save(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Runtime.InteropServices; using Microsoft.DotNet.Cli.Build; using Microsoft.DotNet.Cli.Build.Framework; using Xunit; namespace Microsoft.DotNet.CoreSetup.Test.HostActivation.NativeHosting { public class GetNativeSearchDirectories : IClassFixture<GetNativeSearchDirectories.SharedTestState> { public class Scenario { public const string GetForCommandLine = "get_for_command_line"; } private const string GetNativeSearchDirectoriesArg = "get_native_search_directories"; private readonly SharedTestState sharedState; public GetNativeSearchDirectories(SharedTestState sharedTestState) { sharedState = sharedTestState; } [Fact] public void BasicApp() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, sharedState.DotNet.DotnetExecutablePath, sharedState.AppPath }; CommandResult result = sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute(); string pathSuffix = Path.DirectorySeparatorChar.ToString(); string expectedSearchDirectories = Path.GetDirectoryName(sharedState.AppPath) + pathSuffix + Path.PathSeparator + Path.Combine(sharedState.DotNet.BinPath, "shared", "Microsoft.NETCore.App", SharedTestState.NetCoreAppVersion) + pathSuffix + Path.PathSeparator; result.Should().Pass() .And.HaveStdOutContaining($"Native search directories: '{expectedSearchDirectories}'"); } [Fact] public void Invalid_NullBufferWithNonZeroSize() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, "test_NullBufferWithNonZeroSize" }; sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute() .Should().Fail() .And.HaveStdOutContaining($"get_native_search_directories (null, 1) returned: 0x{Constants.ErrorCode.InvalidArgFailure:x}") .And.HaveStdOutContaining("buffer_size: 0") .And.HaveStdOutContaining("hostfxr reported errors:") .And.HaveStdOutContaining("hostfxr_get_native_search_directories received an invalid argument."); } [Fact] public void Invalid_NonNullBufferWithNegativeSize() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, "test_NonNullBufferWithNegativeSize" }; sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute() .Should().Fail() .And.HaveStdOutContaining($"get_native_search_directories (temp_buffer, -1) returned: 0x{Constants.ErrorCode.InvalidArgFailure:x}") .And.HaveStdOutContaining("buffer_size: 0") .And.HaveStdOutContaining("hostfxr reported errors:") .And.HaveStdOutContaining("hostfxr_get_native_search_directories received an invalid argument."); } // This test also validates that hostfxr_set_error_writer propagates the custom writer // to the hostpolicy.dll for the duration of those calls. [Fact] public void WithInvalidDepsJson() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, sharedState.DotNet.DotnetExecutablePath, sharedState.AppPath }; string depsJsonFile = Path.Combine(sharedState.AppDirectory, "App.deps.json"); try { File.WriteAllText(depsJsonFile, "{"); sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute() .Should().Fail() .And.HaveStdOutContaining($"get_native_search_directories (null,0) returned unexpected error code 0x{Constants.ErrorCode.ResolverInitFailure:x} expected HostApiBufferTooSmall (0x80008098).") .And.HaveStdOutContaining("buffer_size: 0") .And.HaveStdOutContaining("hostfxr reported errors:") .And.HaveStdOutContaining($"A JSON parsing exception occurred in [{depsJsonFile}], offset 1 (line 1, column 2): Missing a name for object member.") .And.HaveStdOutContaining($"Error initializing the dependency resolver: An error occurred while parsing: {depsJsonFile}"); } finally { FileUtils.DeleteFileIfPossible(depsJsonFile); } } [Fact] public void CliCommand() { string[] args = { GetNativeSearchDirectoriesArg, Scenario.GetForCommandLine, sharedState.HostFxrPath, sharedState.DotNet.DotnetExecutablePath, "build" }; CommandResult result = sharedState.CreateNativeHostCommand(args, sharedState.DotNet.BinPath) .Execute(); result.Should().Fail() .And.HaveStdOutContaining($"get_native_search_directories (null,0) returned unexpected error code 0x{Constants.ErrorCode.AppArgNotRunnable:x} expected HostApiBufferTooSmall (0x80008098).") .And.HaveStdOutContaining("buffer_size: 0") .And.HaveStdErrContaining("Application 'build' is not a managed executable."); } public class SharedTestState : SharedTestStateBase { public string HostFxrPath { get; } public DotNetCli DotNet { get; } public string AppDirectory { get; } public string AppPath { get; } public const string NetCoreAppVersion = "2.2.0"; public SharedTestState() { DotNet = new DotNetBuilder(BaseDirectory, Path.Combine(TestArtifact.TestArtifactsPath, "sharedFrameworkPublish"), "mockRuntime") .AddMicrosoftNETCoreAppFrameworkMockCoreClr(NetCoreAppVersion) .Build(); HostFxrPath = Path.Combine( DotNet.GreatestVersionHostFxrPath, RuntimeInformationExtensions.GetSharedLibraryFileNameForCurrentPlatform("hostfxr")); AppDirectory = Path.Combine(BaseDirectory, "app"); Directory.CreateDirectory(AppDirectory); AppPath = Path.Combine(AppDirectory, "App.dll"); File.WriteAllText(AppPath, string.Empty); RuntimeConfig.FromFile(Path.Combine(AppDirectory, "App.runtimeconfig.json")) .WithFramework(new RuntimeConfig.Framework(Constants.MicrosoftNETCoreApp, NetCoreAppVersion)) .Save(); } } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M09/b14228/b14228.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. --> <DebugType>PdbOnly</DebugType> <NoStandardLib>True</NoStandardLib> <Noconfig>True</Noconfig> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. --> <DebugType>PdbOnly</DebugType> <NoStandardLib>True</NoStandardLib> <Noconfig>True</Noconfig> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1453/Generated1453.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated1453.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated1453.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Management/src/System/Management/Property.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Globalization; namespace System.Management { // We use this class to prevent the accidental returning of a boxed value type to a caller // If we store a boxed value type in a private field, and return it to the caller through a public // property or method, the call can potentially change its value. The GetSafeObject method does two things // 1) If the value is a primitive, we know that it will implement IConvertible. IConvertible.ToType will // copy a boxed primitive // 2) In the case of a boxed non-primitive value type, or simply a reference type, we call // RuntimeHelpers.GetObjectValue. This returns reference types right back to the caller, but if passed // a boxed non-primitive value type, it will return a boxed copy. We cannot use GetObjectValue for primitives // because its implementation does not copy boxed primitives. internal static class ValueTypeSafety { public static object GetSafeObject(object theValue) { if (null == theValue) return null; else if (theValue.GetType().IsPrimitive) return ((IConvertible)theValue).ToType(typeof(object), null); else return RuntimeHelpers.GetObjectValue(theValue); } } //CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC// /// <summary> /// <para> Represents information about a WMI property.</para> /// </summary> /// <example> /// <code lang='C#'>using System; /// using System.Management; /// /// // This sample displays all properties that qualifies the "DeviceID" property /// // in Win32_LogicalDisk.DeviceID='C' instance. /// class Sample_PropertyData /// { /// public static int Main(string[] args) { /// ManagementObject disk = /// new ManagementObject("Win32_LogicalDisk.DeviceID=\"C:\""); /// PropertyData diskProperty = disk.Properties["DeviceID"]; /// Console.WriteLine("Name: " + diskProperty.Name); /// Console.WriteLine("Type: " + diskProperty.Type); /// Console.WriteLine("Value: " + diskProperty.Value); /// Console.WriteLine("IsArray: " + diskProperty.IsArray); /// Console.WriteLine("IsLocal: " + diskProperty.IsLocal); /// Console.WriteLine("Origin: " + diskProperty.Origin); /// return 0; /// } /// } /// </code> /// <code lang='VB'>Imports System /// Imports System.Management /// /// ' This sample displays all properties that qualifies the "DeviceID" property /// ' in Win32_LogicalDisk.DeviceID='C' instance. /// Class Sample_PropertyData /// Overloads Public Shared Function Main(args() As String) As Integer /// Dim disk As New ManagementObject("Win32_LogicalDisk.DeviceID=""C:""") /// Dim diskProperty As PropertyData = disk.Properties("DeviceID") /// Console.WriteLine("Name: " &amp; diskProperty.Name) /// Console.WriteLine("Type: " &amp; diskProperty.Type) /// Console.WriteLine("Value: " &amp; diskProperty.Value) /// Console.WriteLine("IsArray: " &amp; diskProperty.IsArray) /// Console.WriteLine("IsLocal: " &amp; diskProperty.IsLocal) /// Console.WriteLine("Origin: " &amp; diskProperty.Origin) /// Return 0 /// End Function /// End Class /// </code> /// </example> //CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC// public class PropertyData { private readonly ManagementBaseObject parent; //need access to IWbemClassObject pointer to be able to refresh property info //and get property qualifiers private readonly string propertyName; private object propertyValue; private long propertyNullEnumValue; private int propertyType; private int propertyFlavor; private QualifierDataCollection qualifiers; internal PropertyData(ManagementBaseObject parent, string propName) { this.parent = parent; this.propertyName = propName; qualifiers = null; RefreshPropertyInfo(); } //This private function is used to refresh the information from the Wmi object before returning the requested data private void RefreshPropertyInfo() { propertyValue = null; // Needed so we don't leak this in/out parameter... int status = parent.wbemObject.Get_(propertyName, 0, ref propertyValue, ref propertyType, ref propertyFlavor); if (status < 0) { if ((status & 0xfffff000) == 0x80041000) ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); else Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f()); } } /// <summary> /// <para>Gets or sets the name of the property.</para> /// </summary> /// <value> /// A string containing the name of the /// property. /// </value> public string Name { //doesn't change for this object so we don't need to refresh get { return propertyName != null ? propertyName : ""; } } /// <summary> /// <para>Gets or sets the current value of the property.</para> /// </summary> /// <value> /// An object containing the value of the /// property. /// </value> public object Value { get { RefreshPropertyInfo(); return ValueTypeSafety.GetSafeObject(MapWmiValueToValue(propertyValue, (CimType)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY), (0 != (propertyType & (int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY)))); } set { RefreshPropertyInfo(); object newValue = MapValueToWmiValue(value, (CimType)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY), (0 != (propertyType & (int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY))); int status = parent.wbemObject.Put_(propertyName, 0, ref newValue, 0); if (status < 0) { if ((status & 0xfffff000) == 0x80041000) ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); else Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f()); } //if succeeded and this object has a path, update the path to reflect the new key value //NOTE : we could only do this for key properties but since it's not trivial to find out // whether this property is a key or not, we just do it for any property else if (parent.GetType() == typeof(ManagementObject)) ((ManagementObject)parent).Path.UpdateRelativePath((string)parent["__RELPATH"]); } } /// <summary> /// <para>Gets or sets the CIM type of the property.</para> /// </summary> /// <value> /// <para>A <see cref='System.Management.CimType'/> value /// representing the CIM type of the property.</para> /// </value> public CimType Type { get { RefreshPropertyInfo(); return (CimType)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY); } } /// <summary> /// <para>Gets or sets a value indicating whether the property has been defined in the current WMI class.</para> /// </summary> /// <value> /// <para><see langword='true'/> if the property has been defined /// in the current WMI class; otherwise, <see langword='false'/>.</para> /// </value> public bool IsLocal { get { RefreshPropertyInfo(); return ((propertyFlavor & (int)tag_WBEM_FLAVOR_TYPE.WBEM_FLAVOR_ORIGIN_PROPAGATED) != 0) ? false : true; } } /// <summary> /// <para>Gets or sets a value indicating whether the property is an array.</para> /// </summary> /// <value> /// <para><see langword='true'/> if the property is an array; otherwise, <see langword='false'/>.</para> /// </value> public bool IsArray { get { RefreshPropertyInfo(); return ((propertyType & (int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY) != 0); } } /// <summary> /// <para>Gets or sets the name of the WMI class in the hierarchy in which the property was introduced.</para> /// </summary> /// <value> /// A string containing the name of the /// originating WMI class. /// </value> public string Origin { get { string className = null; int status = parent.wbemObject.GetPropertyOrigin_(propertyName, out className); if (status < 0) { if (status == (int)tag_WBEMSTATUS.WBEM_E_INVALID_OBJECT) className = string.Empty; // Interpret as an unspecified property - return "" else if ((status & 0xfffff000) == 0x80041000) ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); else Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f()); } return className; } } /// <summary> /// <para>Gets or sets the set of qualifiers defined on the property.</para> /// </summary> /// <value> /// <para>A <see cref='System.Management.QualifierDataCollection'/> that represents /// the set of qualifiers defined on the property.</para> /// </value> public QualifierDataCollection Qualifiers { get { if (qualifiers == null) qualifiers = new QualifierDataCollection(parent, propertyName, QualifierType.PropertyQualifier); return qualifiers; } } internal long NullEnumValue { get { return propertyNullEnumValue; } set { propertyNullEnumValue = value; } } /// <summary> /// Takes a property value returned from WMI and maps it to an /// appropriate managed code representation. /// </summary> /// <param name="wmiValue"> </param> /// <param name="type"> </param> /// <param name="isArray"> </param> internal static object MapWmiValueToValue(object wmiValue, CimType type, bool isArray) { object val = null; if ((System.DBNull.Value != wmiValue) && (null != wmiValue)) { if (isArray) { Array wmiValueArray = (Array)wmiValue; int length = wmiValueArray.Length; switch (type) { case CimType.UInt16: val = new ushort[length]; for (int i = 0; i < length; i++) ((ushort[])val)[i] = (ushort)((int)(wmiValueArray.GetValue(i))); break; case CimType.UInt32: val = new uint[length]; for (int i = 0; i < length; i++) ((uint[])val)[i] = (uint)((int)(wmiValueArray.GetValue(i))); break; case CimType.UInt64: val = new ulong[length]; for (int i = 0; i < length; i++) ((ulong[])val)[i] = Convert.ToUInt64((string)(wmiValueArray.GetValue(i)), (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(ulong))); break; case CimType.SInt8: val = new sbyte[length]; for (int i = 0; i < length; i++) ((sbyte[])val)[i] = (sbyte)((short)(wmiValueArray.GetValue(i))); break; case CimType.SInt64: val = new long[length]; for (int i = 0; i < length; i++) ((long[])val)[i] = Convert.ToInt64((string)(wmiValueArray.GetValue(i)), (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(long))); break; case CimType.Char16: val = new char[length]; for (int i = 0; i < length; i++) ((char[])val)[i] = (char)((short)(wmiValueArray.GetValue(i))); break; case CimType.Object: val = new ManagementBaseObject[length]; for (int i = 0; i < length; i++) ((ManagementBaseObject[])val)[i] = new ManagementBaseObject(new IWbemClassObjectFreeThreaded(Marshal.GetIUnknownForObject(wmiValueArray.GetValue(i)))); break; default: val = wmiValue; break; } } else { val = type switch { CimType.SInt8 => (sbyte)((short)wmiValue), CimType.UInt16 => (ushort)((int)wmiValue), CimType.UInt32 => (uint)((int)wmiValue), CimType.UInt64 => Convert.ToUInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(ulong))), CimType.SInt64 => Convert.ToInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(long))), CimType.Char16 => (char)((short)wmiValue), CimType.Object => new ManagementBaseObject(new IWbemClassObjectFreeThreaded(Marshal.GetIUnknownForObject(wmiValue))), _ => wmiValue, }; } } return val; } /// <summary> /// Takes a managed code value, together with a desired property /// </summary> /// <param name="val"> </param> /// <param name="type"> </param> /// <param name="isArray"> </param> internal static object MapValueToWmiValue(object val, CimType type, bool isArray) { object wmiValue = System.DBNull.Value; CultureInfo culInfo = CultureInfo.InvariantCulture; if (null != val) { if (isArray) { Array valArray = (Array)val; int length = valArray.Length; switch (type) { case CimType.SInt8: wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])(wmiValue))[i] = (short)Convert.ToSByte(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(sbyte))); break; case CimType.UInt8: if (val is byte[]) wmiValue = val; else { wmiValue = new byte[length]; for (int i = 0; i < length; i++) ((byte[])wmiValue)[i] = Convert.ToByte(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(byte))); } break; case CimType.SInt16: if (val is short[]) wmiValue = val; else { wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])(wmiValue))[i] = Convert.ToInt16(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(short))); } break; case CimType.UInt16: wmiValue = new int[length]; for (int i = 0; i < length; i++) ((int[])(wmiValue))[i] = (int)(Convert.ToUInt16(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(ushort)))); break; case CimType.SInt32: if (val is int[]) wmiValue = val; else { wmiValue = new int[length]; for (int i = 0; i < length; i++) ((int[])(wmiValue))[i] = Convert.ToInt32(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(int))); } break; case CimType.UInt32: wmiValue = new int[length]; for (int i = 0; i < length; i++) ((int[])(wmiValue))[i] = (int)(Convert.ToUInt32(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(uint)))); break; case CimType.SInt64: wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])(wmiValue))[i] = (Convert.ToInt64(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(long)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(long))); break; case CimType.UInt64: wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])(wmiValue))[i] = (Convert.ToUInt64(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(ulong)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(ulong))); break; case CimType.Real32: if (val is float[]) wmiValue = val; else { wmiValue = new float[length]; for (int i = 0; i < length; i++) ((float[])(wmiValue))[i] = Convert.ToSingle(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(float))); } break; case CimType.Real64: if (val is double[]) wmiValue = val; else { wmiValue = new double[length]; for (int i = 0; i < length; i++) ((double[])(wmiValue))[i] = Convert.ToDouble(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(double))); } break; case CimType.Char16: wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])(wmiValue))[i] = (short)Convert.ToChar(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(char))); break; case CimType.String: case CimType.DateTime: case CimType.Reference: if (val is string[]) wmiValue = val; else { wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])(wmiValue))[i] = (valArray.GetValue(i)).ToString(); } break; case CimType.Boolean: if (val is bool[]) wmiValue = val; else { wmiValue = new bool[length]; for (int i = 0; i < length; i++) ((bool[])(wmiValue))[i] = Convert.ToBoolean(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(bool))); } break; case CimType.Object: wmiValue = new IWbemClassObject_DoNotMarshal[length]; for (int i = 0; i < length; i++) { ((IWbemClassObject_DoNotMarshal[])(wmiValue))[i] = (IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(((ManagementBaseObject)valArray.GetValue(i)).wbemObject)); } break; default: wmiValue = val; break; } } else { switch (type) { case CimType.SInt8: wmiValue = (short)Convert.ToSByte(val, (IFormatProvider)culInfo.GetFormat(typeof(short))); break; case CimType.UInt8: wmiValue = Convert.ToByte(val, (IFormatProvider)culInfo.GetFormat(typeof(byte))); break; case CimType.SInt16: wmiValue = Convert.ToInt16(val, (IFormatProvider)culInfo.GetFormat(typeof(short))); break; case CimType.UInt16: wmiValue = (int)(Convert.ToUInt16(val, (IFormatProvider)culInfo.GetFormat(typeof(ushort)))); break; case CimType.SInt32: wmiValue = Convert.ToInt32(val, (IFormatProvider)culInfo.GetFormat(typeof(int))); break; case CimType.UInt32: wmiValue = (int)Convert.ToUInt32(val, (IFormatProvider)culInfo.GetFormat(typeof(uint))); break; case CimType.SInt64: wmiValue = (Convert.ToInt64(val, (IFormatProvider)culInfo.GetFormat(typeof(long)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(long))); break; case CimType.UInt64: wmiValue = (Convert.ToUInt64(val, (IFormatProvider)culInfo.GetFormat(typeof(ulong)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(ulong))); break; case CimType.Real32: wmiValue = Convert.ToSingle(val, (IFormatProvider)culInfo.GetFormat(typeof(float))); break; case CimType.Real64: wmiValue = Convert.ToDouble(val, (IFormatProvider)culInfo.GetFormat(typeof(double))); break; case CimType.Char16: wmiValue = (short)Convert.ToChar(val, (IFormatProvider)culInfo.GetFormat(typeof(char))); break; case CimType.String: case CimType.DateTime: case CimType.Reference: wmiValue = val.ToString(); break; case CimType.Boolean: wmiValue = Convert.ToBoolean(val, (IFormatProvider)culInfo.GetFormat(typeof(bool))); break; case CimType.Object: if (val is ManagementBaseObject) { wmiValue = Marshal.GetObjectForIUnknown(((ManagementBaseObject)val).wbemObject); } else { wmiValue = val; } break; default: wmiValue = val; break; } } } return wmiValue; } internal static object MapValueToWmiValue(object val, out bool isArray, out CimType type) { object wmiValue = System.DBNull.Value; CultureInfo culInfo = CultureInfo.InvariantCulture; isArray = false; type = 0; if (null != val) { isArray = val.GetType().IsArray; Type valueType = val.GetType(); if (isArray) { Type elementType = valueType.GetElementType(); // Casting primitive types to object[] is not allowed if (elementType.IsPrimitive) { if (elementType == typeof(byte)) { byte[] arrayValue = (byte[])val; int length = arrayValue.Length; type = CimType.UInt8; wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])wmiValue)[i] = ((IConvertible)((byte)(arrayValue[i]))).ToInt16(null); } else if (elementType == typeof(sbyte)) { sbyte[] arrayValue = (sbyte[])val; int length = arrayValue.Length; type = CimType.SInt8; wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])wmiValue)[i] = ((IConvertible)((sbyte)(arrayValue[i]))).ToInt16(null); } else if (elementType == typeof(bool)) { type = CimType.Boolean; wmiValue = (bool[])val; } else if (elementType == typeof(ushort)) { ushort[] arrayValue = (ushort[])val; int length = arrayValue.Length; type = CimType.UInt16; wmiValue = new int[length]; for (int i = 0; i < length; i++) ((int[])wmiValue)[i] = ((IConvertible)((ushort)(arrayValue[i]))).ToInt32(null); } else if (elementType == typeof(short)) { type = CimType.SInt16; wmiValue = (short[])val; } else if (elementType == typeof(int)) { type = CimType.SInt32; wmiValue = (int[])val; } else if (elementType == typeof(uint)) { uint[] arrayValue = (uint[])val; int length = arrayValue.Length; type = CimType.UInt32; wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])wmiValue)[i] = ((uint)(arrayValue[i])).ToString((IFormatProvider)culInfo.GetFormat(typeof(uint))); } else if (elementType == typeof(ulong)) { ulong[] arrayValue = (ulong[])val; int length = arrayValue.Length; type = CimType.UInt64; wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])wmiValue)[i] = ((ulong)(arrayValue[i])).ToString((IFormatProvider)culInfo.GetFormat(typeof(ulong))); } else if (elementType == typeof(long)) { long[] arrayValue = (long[])val; int length = arrayValue.Length; type = CimType.SInt64; wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])wmiValue)[i] = ((long)(arrayValue[i])).ToString((IFormatProvider)culInfo.GetFormat(typeof(long))); } else if (elementType == typeof(float)) { type = CimType.Real32; wmiValue = (float[])val; } else if (elementType == typeof(double)) { type = CimType.Real64; wmiValue = (double[])val; } else if (elementType == typeof(char)) { char[] arrayValue = (char[])val; int length = arrayValue.Length; type = CimType.Char16; wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])wmiValue)[i] = ((IConvertible)((char)(arrayValue[i]))).ToInt16(null); } } else { // Non-primitive types if (elementType == typeof(string)) { type = CimType.String; wmiValue = (string[])val; } else { // Check for an embedded object array if (val is ManagementBaseObject[]) { Array valArray = (Array)val; int length = valArray.Length; type = CimType.Object; wmiValue = new IWbemClassObject_DoNotMarshal[length]; for (int i = 0; i < length; i++) { ((IWbemClassObject_DoNotMarshal[])(wmiValue))[i] = (IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(((ManagementBaseObject)valArray.GetValue(i)).wbemObject)); } } } } } else // Non-array values { if (valueType == typeof(ushort)) { type = CimType.UInt16; wmiValue = ((IConvertible)((ushort)val)).ToInt32(null); } else if (valueType == typeof(uint)) { type = CimType.UInt32; if (((uint)val & 0x80000000) != 0) wmiValue = Convert.ToString(val, (IFormatProvider)culInfo.GetFormat(typeof(uint))); else wmiValue = Convert.ToInt32(val, (IFormatProvider)culInfo.GetFormat(typeof(int))); } else if (valueType == typeof(ulong)) { type = CimType.UInt64; wmiValue = ((ulong)val).ToString((IFormatProvider)culInfo.GetFormat(typeof(ulong))); } else if (valueType == typeof(sbyte)) { type = CimType.SInt8; wmiValue = ((IConvertible)((sbyte)val)).ToInt16(null); } else if (valueType == typeof(byte)) { type = CimType.UInt8; wmiValue = val; } else if (valueType == typeof(short)) { type = CimType.SInt16; wmiValue = val; } else if (valueType == typeof(int)) { type = CimType.SInt32; wmiValue = val; } else if (valueType == typeof(long)) { type = CimType.SInt64; wmiValue = val.ToString(); } else if (valueType == typeof(bool)) { type = CimType.Boolean; wmiValue = val; } else if (valueType == typeof(float)) { type = CimType.Real32; wmiValue = val; } else if (valueType == typeof(double)) { type = CimType.Real64; wmiValue = val; } else if (valueType == typeof(char)) { type = CimType.Char16; wmiValue = ((IConvertible)((char)val)).ToInt16(null); } else if (valueType == typeof(string)) { type = CimType.String; wmiValue = val; } else { // Check for an embedded object if (val is ManagementBaseObject) { type = CimType.Object; wmiValue = Marshal.GetObjectForIUnknown(((ManagementBaseObject)val).wbemObject); } } } } return wmiValue; } }//PropertyData }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Globalization; namespace System.Management { // We use this class to prevent the accidental returning of a boxed value type to a caller // If we store a boxed value type in a private field, and return it to the caller through a public // property or method, the call can potentially change its value. The GetSafeObject method does two things // 1) If the value is a primitive, we know that it will implement IConvertible. IConvertible.ToType will // copy a boxed primitive // 2) In the case of a boxed non-primitive value type, or simply a reference type, we call // RuntimeHelpers.GetObjectValue. This returns reference types right back to the caller, but if passed // a boxed non-primitive value type, it will return a boxed copy. We cannot use GetObjectValue for primitives // because its implementation does not copy boxed primitives. internal static class ValueTypeSafety { public static object GetSafeObject(object theValue) { if (null == theValue) return null; else if (theValue.GetType().IsPrimitive) return ((IConvertible)theValue).ToType(typeof(object), null); else return RuntimeHelpers.GetObjectValue(theValue); } } //CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC// /// <summary> /// <para> Represents information about a WMI property.</para> /// </summary> /// <example> /// <code lang='C#'>using System; /// using System.Management; /// /// // This sample displays all properties that qualifies the "DeviceID" property /// // in Win32_LogicalDisk.DeviceID='C' instance. /// class Sample_PropertyData /// { /// public static int Main(string[] args) { /// ManagementObject disk = /// new ManagementObject("Win32_LogicalDisk.DeviceID=\"C:\""); /// PropertyData diskProperty = disk.Properties["DeviceID"]; /// Console.WriteLine("Name: " + diskProperty.Name); /// Console.WriteLine("Type: " + diskProperty.Type); /// Console.WriteLine("Value: " + diskProperty.Value); /// Console.WriteLine("IsArray: " + diskProperty.IsArray); /// Console.WriteLine("IsLocal: " + diskProperty.IsLocal); /// Console.WriteLine("Origin: " + diskProperty.Origin); /// return 0; /// } /// } /// </code> /// <code lang='VB'>Imports System /// Imports System.Management /// /// ' This sample displays all properties that qualifies the "DeviceID" property /// ' in Win32_LogicalDisk.DeviceID='C' instance. /// Class Sample_PropertyData /// Overloads Public Shared Function Main(args() As String) As Integer /// Dim disk As New ManagementObject("Win32_LogicalDisk.DeviceID=""C:""") /// Dim diskProperty As PropertyData = disk.Properties("DeviceID") /// Console.WriteLine("Name: " &amp; diskProperty.Name) /// Console.WriteLine("Type: " &amp; diskProperty.Type) /// Console.WriteLine("Value: " &amp; diskProperty.Value) /// Console.WriteLine("IsArray: " &amp; diskProperty.IsArray) /// Console.WriteLine("IsLocal: " &amp; diskProperty.IsLocal) /// Console.WriteLine("Origin: " &amp; diskProperty.Origin) /// Return 0 /// End Function /// End Class /// </code> /// </example> //CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC// public class PropertyData { private readonly ManagementBaseObject parent; //need access to IWbemClassObject pointer to be able to refresh property info //and get property qualifiers private readonly string propertyName; private object propertyValue; private long propertyNullEnumValue; private int propertyType; private int propertyFlavor; private QualifierDataCollection qualifiers; internal PropertyData(ManagementBaseObject parent, string propName) { this.parent = parent; this.propertyName = propName; qualifiers = null; RefreshPropertyInfo(); } //This private function is used to refresh the information from the Wmi object before returning the requested data private void RefreshPropertyInfo() { propertyValue = null; // Needed so we don't leak this in/out parameter... int status = parent.wbemObject.Get_(propertyName, 0, ref propertyValue, ref propertyType, ref propertyFlavor); if (status < 0) { if ((status & 0xfffff000) == 0x80041000) ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); else Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f()); } } /// <summary> /// <para>Gets or sets the name of the property.</para> /// </summary> /// <value> /// A string containing the name of the /// property. /// </value> public string Name { //doesn't change for this object so we don't need to refresh get { return propertyName != null ? propertyName : ""; } } /// <summary> /// <para>Gets or sets the current value of the property.</para> /// </summary> /// <value> /// An object containing the value of the /// property. /// </value> public object Value { get { RefreshPropertyInfo(); return ValueTypeSafety.GetSafeObject(MapWmiValueToValue(propertyValue, (CimType)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY), (0 != (propertyType & (int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY)))); } set { RefreshPropertyInfo(); object newValue = MapValueToWmiValue(value, (CimType)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY), (0 != (propertyType & (int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY))); int status = parent.wbemObject.Put_(propertyName, 0, ref newValue, 0); if (status < 0) { if ((status & 0xfffff000) == 0x80041000) ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); else Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f()); } //if succeeded and this object has a path, update the path to reflect the new key value //NOTE : we could only do this for key properties but since it's not trivial to find out // whether this property is a key or not, we just do it for any property else if (parent.GetType() == typeof(ManagementObject)) ((ManagementObject)parent).Path.UpdateRelativePath((string)parent["__RELPATH"]); } } /// <summary> /// <para>Gets or sets the CIM type of the property.</para> /// </summary> /// <value> /// <para>A <see cref='System.Management.CimType'/> value /// representing the CIM type of the property.</para> /// </value> public CimType Type { get { RefreshPropertyInfo(); return (CimType)(propertyType & ~(int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY); } } /// <summary> /// <para>Gets or sets a value indicating whether the property has been defined in the current WMI class.</para> /// </summary> /// <value> /// <para><see langword='true'/> if the property has been defined /// in the current WMI class; otherwise, <see langword='false'/>.</para> /// </value> public bool IsLocal { get { RefreshPropertyInfo(); return ((propertyFlavor & (int)tag_WBEM_FLAVOR_TYPE.WBEM_FLAVOR_ORIGIN_PROPAGATED) != 0) ? false : true; } } /// <summary> /// <para>Gets or sets a value indicating whether the property is an array.</para> /// </summary> /// <value> /// <para><see langword='true'/> if the property is an array; otherwise, <see langword='false'/>.</para> /// </value> public bool IsArray { get { RefreshPropertyInfo(); return ((propertyType & (int)tag_CIMTYPE_ENUMERATION.CIM_FLAG_ARRAY) != 0); } } /// <summary> /// <para>Gets or sets the name of the WMI class in the hierarchy in which the property was introduced.</para> /// </summary> /// <value> /// A string containing the name of the /// originating WMI class. /// </value> public string Origin { get { string className = null; int status = parent.wbemObject.GetPropertyOrigin_(propertyName, out className); if (status < 0) { if (status == (int)tag_WBEMSTATUS.WBEM_E_INVALID_OBJECT) className = string.Empty; // Interpret as an unspecified property - return "" else if ((status & 0xfffff000) == 0x80041000) ManagementException.ThrowWithExtendedInfo((ManagementStatus)status); else Marshal.ThrowExceptionForHR(status, WmiNetUtilsHelper.GetErrorInfo_f()); } return className; } } /// <summary> /// <para>Gets or sets the set of qualifiers defined on the property.</para> /// </summary> /// <value> /// <para>A <see cref='System.Management.QualifierDataCollection'/> that represents /// the set of qualifiers defined on the property.</para> /// </value> public QualifierDataCollection Qualifiers { get { if (qualifiers == null) qualifiers = new QualifierDataCollection(parent, propertyName, QualifierType.PropertyQualifier); return qualifiers; } } internal long NullEnumValue { get { return propertyNullEnumValue; } set { propertyNullEnumValue = value; } } /// <summary> /// Takes a property value returned from WMI and maps it to an /// appropriate managed code representation. /// </summary> /// <param name="wmiValue"> </param> /// <param name="type"> </param> /// <param name="isArray"> </param> internal static object MapWmiValueToValue(object wmiValue, CimType type, bool isArray) { object val = null; if ((System.DBNull.Value != wmiValue) && (null != wmiValue)) { if (isArray) { Array wmiValueArray = (Array)wmiValue; int length = wmiValueArray.Length; switch (type) { case CimType.UInt16: val = new ushort[length]; for (int i = 0; i < length; i++) ((ushort[])val)[i] = (ushort)((int)(wmiValueArray.GetValue(i))); break; case CimType.UInt32: val = new uint[length]; for (int i = 0; i < length; i++) ((uint[])val)[i] = (uint)((int)(wmiValueArray.GetValue(i))); break; case CimType.UInt64: val = new ulong[length]; for (int i = 0; i < length; i++) ((ulong[])val)[i] = Convert.ToUInt64((string)(wmiValueArray.GetValue(i)), (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(ulong))); break; case CimType.SInt8: val = new sbyte[length]; for (int i = 0; i < length; i++) ((sbyte[])val)[i] = (sbyte)((short)(wmiValueArray.GetValue(i))); break; case CimType.SInt64: val = new long[length]; for (int i = 0; i < length; i++) ((long[])val)[i] = Convert.ToInt64((string)(wmiValueArray.GetValue(i)), (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(long))); break; case CimType.Char16: val = new char[length]; for (int i = 0; i < length; i++) ((char[])val)[i] = (char)((short)(wmiValueArray.GetValue(i))); break; case CimType.Object: val = new ManagementBaseObject[length]; for (int i = 0; i < length; i++) ((ManagementBaseObject[])val)[i] = new ManagementBaseObject(new IWbemClassObjectFreeThreaded(Marshal.GetIUnknownForObject(wmiValueArray.GetValue(i)))); break; default: val = wmiValue; break; } } else { val = type switch { CimType.SInt8 => (sbyte)((short)wmiValue), CimType.UInt16 => (ushort)((int)wmiValue), CimType.UInt32 => (uint)((int)wmiValue), CimType.UInt64 => Convert.ToUInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(ulong))), CimType.SInt64 => Convert.ToInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.GetFormat(typeof(long))), CimType.Char16 => (char)((short)wmiValue), CimType.Object => new ManagementBaseObject(new IWbemClassObjectFreeThreaded(Marshal.GetIUnknownForObject(wmiValue))), _ => wmiValue, }; } } return val; } /// <summary> /// Takes a managed code value, together with a desired property /// </summary> /// <param name="val"> </param> /// <param name="type"> </param> /// <param name="isArray"> </param> internal static object MapValueToWmiValue(object val, CimType type, bool isArray) { object wmiValue = System.DBNull.Value; CultureInfo culInfo = CultureInfo.InvariantCulture; if (null != val) { if (isArray) { Array valArray = (Array)val; int length = valArray.Length; switch (type) { case CimType.SInt8: wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])(wmiValue))[i] = (short)Convert.ToSByte(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(sbyte))); break; case CimType.UInt8: if (val is byte[]) wmiValue = val; else { wmiValue = new byte[length]; for (int i = 0; i < length; i++) ((byte[])wmiValue)[i] = Convert.ToByte(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(byte))); } break; case CimType.SInt16: if (val is short[]) wmiValue = val; else { wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])(wmiValue))[i] = Convert.ToInt16(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(short))); } break; case CimType.UInt16: wmiValue = new int[length]; for (int i = 0; i < length; i++) ((int[])(wmiValue))[i] = (int)(Convert.ToUInt16(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(ushort)))); break; case CimType.SInt32: if (val is int[]) wmiValue = val; else { wmiValue = new int[length]; for (int i = 0; i < length; i++) ((int[])(wmiValue))[i] = Convert.ToInt32(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(int))); } break; case CimType.UInt32: wmiValue = new int[length]; for (int i = 0; i < length; i++) ((int[])(wmiValue))[i] = (int)(Convert.ToUInt32(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(uint)))); break; case CimType.SInt64: wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])(wmiValue))[i] = (Convert.ToInt64(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(long)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(long))); break; case CimType.UInt64: wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])(wmiValue))[i] = (Convert.ToUInt64(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(ulong)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(ulong))); break; case CimType.Real32: if (val is float[]) wmiValue = val; else { wmiValue = new float[length]; for (int i = 0; i < length; i++) ((float[])(wmiValue))[i] = Convert.ToSingle(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(float))); } break; case CimType.Real64: if (val is double[]) wmiValue = val; else { wmiValue = new double[length]; for (int i = 0; i < length; i++) ((double[])(wmiValue))[i] = Convert.ToDouble(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(double))); } break; case CimType.Char16: wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])(wmiValue))[i] = (short)Convert.ToChar(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(char))); break; case CimType.String: case CimType.DateTime: case CimType.Reference: if (val is string[]) wmiValue = val; else { wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])(wmiValue))[i] = (valArray.GetValue(i)).ToString(); } break; case CimType.Boolean: if (val is bool[]) wmiValue = val; else { wmiValue = new bool[length]; for (int i = 0; i < length; i++) ((bool[])(wmiValue))[i] = Convert.ToBoolean(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(bool))); } break; case CimType.Object: wmiValue = new IWbemClassObject_DoNotMarshal[length]; for (int i = 0; i < length; i++) { ((IWbemClassObject_DoNotMarshal[])(wmiValue))[i] = (IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(((ManagementBaseObject)valArray.GetValue(i)).wbemObject)); } break; default: wmiValue = val; break; } } else { switch (type) { case CimType.SInt8: wmiValue = (short)Convert.ToSByte(val, (IFormatProvider)culInfo.GetFormat(typeof(short))); break; case CimType.UInt8: wmiValue = Convert.ToByte(val, (IFormatProvider)culInfo.GetFormat(typeof(byte))); break; case CimType.SInt16: wmiValue = Convert.ToInt16(val, (IFormatProvider)culInfo.GetFormat(typeof(short))); break; case CimType.UInt16: wmiValue = (int)(Convert.ToUInt16(val, (IFormatProvider)culInfo.GetFormat(typeof(ushort)))); break; case CimType.SInt32: wmiValue = Convert.ToInt32(val, (IFormatProvider)culInfo.GetFormat(typeof(int))); break; case CimType.UInt32: wmiValue = (int)Convert.ToUInt32(val, (IFormatProvider)culInfo.GetFormat(typeof(uint))); break; case CimType.SInt64: wmiValue = (Convert.ToInt64(val, (IFormatProvider)culInfo.GetFormat(typeof(long)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(long))); break; case CimType.UInt64: wmiValue = (Convert.ToUInt64(val, (IFormatProvider)culInfo.GetFormat(typeof(ulong)))).ToString((IFormatProvider)culInfo.GetFormat(typeof(ulong))); break; case CimType.Real32: wmiValue = Convert.ToSingle(val, (IFormatProvider)culInfo.GetFormat(typeof(float))); break; case CimType.Real64: wmiValue = Convert.ToDouble(val, (IFormatProvider)culInfo.GetFormat(typeof(double))); break; case CimType.Char16: wmiValue = (short)Convert.ToChar(val, (IFormatProvider)culInfo.GetFormat(typeof(char))); break; case CimType.String: case CimType.DateTime: case CimType.Reference: wmiValue = val.ToString(); break; case CimType.Boolean: wmiValue = Convert.ToBoolean(val, (IFormatProvider)culInfo.GetFormat(typeof(bool))); break; case CimType.Object: if (val is ManagementBaseObject) { wmiValue = Marshal.GetObjectForIUnknown(((ManagementBaseObject)val).wbemObject); } else { wmiValue = val; } break; default: wmiValue = val; break; } } } return wmiValue; } internal static object MapValueToWmiValue(object val, out bool isArray, out CimType type) { object wmiValue = System.DBNull.Value; CultureInfo culInfo = CultureInfo.InvariantCulture; isArray = false; type = 0; if (null != val) { isArray = val.GetType().IsArray; Type valueType = val.GetType(); if (isArray) { Type elementType = valueType.GetElementType(); // Casting primitive types to object[] is not allowed if (elementType.IsPrimitive) { if (elementType == typeof(byte)) { byte[] arrayValue = (byte[])val; int length = arrayValue.Length; type = CimType.UInt8; wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])wmiValue)[i] = ((IConvertible)((byte)(arrayValue[i]))).ToInt16(null); } else if (elementType == typeof(sbyte)) { sbyte[] arrayValue = (sbyte[])val; int length = arrayValue.Length; type = CimType.SInt8; wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])wmiValue)[i] = ((IConvertible)((sbyte)(arrayValue[i]))).ToInt16(null); } else if (elementType == typeof(bool)) { type = CimType.Boolean; wmiValue = (bool[])val; } else if (elementType == typeof(ushort)) { ushort[] arrayValue = (ushort[])val; int length = arrayValue.Length; type = CimType.UInt16; wmiValue = new int[length]; for (int i = 0; i < length; i++) ((int[])wmiValue)[i] = ((IConvertible)((ushort)(arrayValue[i]))).ToInt32(null); } else if (elementType == typeof(short)) { type = CimType.SInt16; wmiValue = (short[])val; } else if (elementType == typeof(int)) { type = CimType.SInt32; wmiValue = (int[])val; } else if (elementType == typeof(uint)) { uint[] arrayValue = (uint[])val; int length = arrayValue.Length; type = CimType.UInt32; wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])wmiValue)[i] = ((uint)(arrayValue[i])).ToString((IFormatProvider)culInfo.GetFormat(typeof(uint))); } else if (elementType == typeof(ulong)) { ulong[] arrayValue = (ulong[])val; int length = arrayValue.Length; type = CimType.UInt64; wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])wmiValue)[i] = ((ulong)(arrayValue[i])).ToString((IFormatProvider)culInfo.GetFormat(typeof(ulong))); } else if (elementType == typeof(long)) { long[] arrayValue = (long[])val; int length = arrayValue.Length; type = CimType.SInt64; wmiValue = new string[length]; for (int i = 0; i < length; i++) ((string[])wmiValue)[i] = ((long)(arrayValue[i])).ToString((IFormatProvider)culInfo.GetFormat(typeof(long))); } else if (elementType == typeof(float)) { type = CimType.Real32; wmiValue = (float[])val; } else if (elementType == typeof(double)) { type = CimType.Real64; wmiValue = (double[])val; } else if (elementType == typeof(char)) { char[] arrayValue = (char[])val; int length = arrayValue.Length; type = CimType.Char16; wmiValue = new short[length]; for (int i = 0; i < length; i++) ((short[])wmiValue)[i] = ((IConvertible)((char)(arrayValue[i]))).ToInt16(null); } } else { // Non-primitive types if (elementType == typeof(string)) { type = CimType.String; wmiValue = (string[])val; } else { // Check for an embedded object array if (val is ManagementBaseObject[]) { Array valArray = (Array)val; int length = valArray.Length; type = CimType.Object; wmiValue = new IWbemClassObject_DoNotMarshal[length]; for (int i = 0; i < length; i++) { ((IWbemClassObject_DoNotMarshal[])(wmiValue))[i] = (IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(((ManagementBaseObject)valArray.GetValue(i)).wbemObject)); } } } } } else // Non-array values { if (valueType == typeof(ushort)) { type = CimType.UInt16; wmiValue = ((IConvertible)((ushort)val)).ToInt32(null); } else if (valueType == typeof(uint)) { type = CimType.UInt32; if (((uint)val & 0x80000000) != 0) wmiValue = Convert.ToString(val, (IFormatProvider)culInfo.GetFormat(typeof(uint))); else wmiValue = Convert.ToInt32(val, (IFormatProvider)culInfo.GetFormat(typeof(int))); } else if (valueType == typeof(ulong)) { type = CimType.UInt64; wmiValue = ((ulong)val).ToString((IFormatProvider)culInfo.GetFormat(typeof(ulong))); } else if (valueType == typeof(sbyte)) { type = CimType.SInt8; wmiValue = ((IConvertible)((sbyte)val)).ToInt16(null); } else if (valueType == typeof(byte)) { type = CimType.UInt8; wmiValue = val; } else if (valueType == typeof(short)) { type = CimType.SInt16; wmiValue = val; } else if (valueType == typeof(int)) { type = CimType.SInt32; wmiValue = val; } else if (valueType == typeof(long)) { type = CimType.SInt64; wmiValue = val.ToString(); } else if (valueType == typeof(bool)) { type = CimType.Boolean; wmiValue = val; } else if (valueType == typeof(float)) { type = CimType.Real32; wmiValue = val; } else if (valueType == typeof(double)) { type = CimType.Real64; wmiValue = val; } else if (valueType == typeof(char)) { type = CimType.Char16; wmiValue = ((IConvertible)((char)val)).ToInt16(null); } else if (valueType == typeof(string)) { type = CimType.String; wmiValue = val; } else { // Check for an embedded object if (val is ManagementBaseObject) { type = CimType.Object; wmiValue = Marshal.GetObjectForIUnknown(((ManagementBaseObject)val).wbemObject); } } } } return wmiValue; } }//PropertyData }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/JIT/Regression/JitBlue/DevDiv_279396/DevDiv_279396.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).il" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).il" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Net.Http/tests/UnitTests/Headers/HttpHeaderValueCollectionTest.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; using System.Linq; using System.Net.Http.Headers; using Xunit; namespace System.Net.Http.Tests { public class HttpHeaderValueCollectionTest { // Note: These are not real known headers, so they won't be returned if we call HeaderDescriptor.Get(). private static readonly HeaderDescriptor knownStringHeader = (new KnownHeader("known-string-header", HttpHeaderType.General, new MockHeaderParser(typeof(string)))).Descriptor; private static readonly HeaderDescriptor knownUriHeader = (new KnownHeader("known-uri-header", HttpHeaderType.General, new MockHeaderParser(typeof(Uri)))).Descriptor; private static readonly TransferCodingHeaderValue specialChunked = new TransferCodingHeaderValue("chunked"); // Note that this type just forwards calls to HttpHeaders. So this test method focuses on making sure // the correct calls to HttpHeaders are made. This test suite will not test HttpHeaders functionality. [Fact] public void IsReadOnly_CallProperty_AlwaysFalse() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<string> collection = new HttpHeaderValueCollection<string>(knownStringHeader, headers); Assert.False(collection.IsReadOnly); } [Fact] public void Add_CallWithNullValue_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Assert.Throws<ArgumentNullException>(() => { collection.Add(null); }); } [Fact] public void Add_AddValues_AllValuesAdded() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Assert.Equal(3, collection.Count); } [Fact] public void Add_UseSpecialValue_Success() { HttpRequestHeaders headers = new HttpRequestHeaders(); Assert.Null(headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); Assert.Equal(string.Empty, headers.TransferEncoding.ToString()); headers.TransferEncoding.Add(specialChunked); Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.Equal(specialChunked, headers.TransferEncoding.First()); Assert.Equal(specialChunked.ToString(), headers.TransferEncoding.ToString()); } [Fact] public void Add_UseSpecialValueWithSpecialAlreadyPresent_AddsDuplicate() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncodingChunked = true; Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.Equal(specialChunked.ToString(), headers.TransferEncoding.ToString()); headers.TransferEncoding.Add(specialChunked); Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(2, headers.TransferEncoding.Count); Assert.Equal("chunked, chunked", headers.TransferEncoding.ToString()); // removes first instance of headers.TransferEncodingChunked = false; Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.Equal(specialChunked.ToString(), headers.TransferEncoding.ToString()); // does not add duplicate headers.TransferEncodingChunked = true; Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.Equal(specialChunked.ToString(), headers.TransferEncoding.ToString()); } [Fact] public void ParseAdd_CallWithNullValue_NothingAdded() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.ParseAdd(null); Assert.Equal(0, collection.Count); Assert.Equal(string.Empty, collection.ToString()); } [Fact] public void ParseAdd_AddValues_AllValuesAdded() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.ParseAdd("http://www.example.org/1/"); collection.ParseAdd("http://www.example.org/2/"); collection.ParseAdd("http://www.example.org/3/"); Assert.Equal(3, collection.Count); } [Fact] public void ParseAdd_AddBadValue_Throws() { HttpResponseHeaders headers = new HttpResponseHeaders(); string input = "Basic, D\rigest qop=\"auth\",algorithm=MD5-sess"; Assert.Throws<FormatException>(() => { headers.WwwAuthenticate.ParseAdd(input); }); } [Fact] public void TryParseAdd_CallWithNullValue_NothingAdded() { HttpResponseHeaders headers = new HttpResponseHeaders(); Assert.True(headers.WwwAuthenticate.TryParseAdd(null)); Assert.Equal(0, headers.WwwAuthenticate.Count); Assert.Equal(string.Empty, headers.WwwAuthenticate.ToString()); } [Fact] public void TryParseAdd_AddValues_AllAdded() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Assert.True(collection.TryParseAdd("http://www.example.org/1/")); Assert.True(collection.TryParseAdd("http://www.example.org/2/")); Assert.True(collection.TryParseAdd("http://www.example.org/3/")); Assert.Equal(3, collection.Count); } [Fact] public void TryParseAdd_AddBadValue_False() { HttpResponseHeaders headers = new HttpResponseHeaders(); string input = "Basic, D\rigest qop=\"auth\",algorithm=MD5-sess"; Assert.False(headers.WwwAuthenticate.TryParseAdd(input)); Assert.Equal(string.Empty, headers.WwwAuthenticate.ToString()); Assert.Equal(string.Empty, headers.ToString()); } [Fact] public void TryParseAdd_AddBadAfterGoodValue_False() { HttpResponseHeaders headers = new HttpResponseHeaders(); headers.WwwAuthenticate.Add(new AuthenticationHeaderValue("Negotiate")); string input = "Basic, D\rigest qop=\"auth\",algorithm=MD5-sess"; Assert.False(headers.WwwAuthenticate.TryParseAdd(input)); Assert.Equal("Negotiate", headers.WwwAuthenticate.ToString()); Assert.Equal($"WWW-Authenticate: Negotiate{Environment.NewLine}", headers.ToString()); } [Fact] public void Clear_AddValuesThenClear_NoElementsInCollection() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Assert.Equal(3, collection.Count); collection.Clear(); Assert.Equal(0, collection.Count); } [Fact] public void Contains_CallWithNullValue_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Assert.Throws<ArgumentNullException>(() => { collection.Contains(null); }); } [Fact] public void Contains_AddValuesThenCallContains_ReturnsTrueForExistingItemsFalseOtherwise() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Assert.True(collection.Contains(new Uri("http://www.example.org/2/")), "Expected true for existing item."); Assert.False(collection.Contains(new Uri("http://www.example.org/4/")), "Expected false for non-existing item."); } [Fact] public void Contains_UseSpecialValueWhenEmpty_False() { HttpRequestHeaders headers = new HttpRequestHeaders(); Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void Contains_UseSpecialValueWithProperty_True() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncodingChunked = true; Assert.True(headers.TransferEncoding.Contains(specialChunked)); headers.TransferEncodingChunked = false; Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void Contains_UseSpecialValueWhenSpecilValueIsPresent_True() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncoding.Add(specialChunked); Assert.True(headers.TransferEncoding.Contains(specialChunked)); headers.TransferEncoding.Remove(specialChunked); Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void CopyTo_CallWithStartIndexPlusElementCountGreaterArrayLength_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); Uri[] array = new Uri[2]; // startIndex + Count = 1 + 2 > array.Length AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 1); }); } [Fact] public void CopyTo_EmptyToEmpty_Success() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Uri[] array = new Uri[0]; collection.CopyTo(array, 0); } [Fact] public void CopyTo_NoValues_DoesNotChangeArray() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Uri[] array = new Uri[4]; collection.CopyTo(array, 0); for (int i = 0; i < array.Length; i++) { Assert.Null(array[i]); } } [Fact] public void CopyTo_AddSingleValue_ContainsSingleValue() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/")); Uri[] array = new Uri[1]; collection.CopyTo(array, 0); Assert.Equal(new Uri("http://www.example.org/"), array[0]); } [Fact] public void CopyTo_AddMultipleValues_ContainsAllValuesInTheRightOrder() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Uri[] array = new Uri[5]; collection.CopyTo(array, 1); Assert.Null(array[0]); Assert.Equal(new Uri("http://www.example.org/1/"), array[1]); Assert.Equal(new Uri("http://www.example.org/2/"), array[2]); Assert.Equal(new Uri("http://www.example.org/3/"), array[3]); Assert.Null(array[4]); } [Fact] public void CopyTo_ArrayTooSmall_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<string> collection = new HttpHeaderValueCollection<string>(knownStringHeader, headers); string[] array = new string[1]; array[0] = null; collection.CopyTo(array, 0); // no exception Assert.Null(array[0]); Assert.Throws<ArgumentNullException>(() => { collection.CopyTo(null, 0); }); Assert.Throws<ArgumentOutOfRangeException>(() => { collection.CopyTo(array, -1); }); Assert.Throws<ArgumentOutOfRangeException>(() => { collection.CopyTo(array, 2); }); headers.Add(knownStringHeader, "special"); array = new string[0]; AssertExtensions.Throws<ArgumentException>(null, () => { collection.CopyTo(array, 0); }); headers.Add(knownStringHeader, "special"); headers.Add(knownStringHeader, "special"); array = new string[1]; AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 0); }); headers.Add(knownStringHeader, "value1"); array = new string[0]; AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 0); }); headers.Add(knownStringHeader, "value2"); array = new string[1]; AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 0); }); array = new string[2]; AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 1); }); } [Fact] public void Remove_CallWithNullValue_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Assert.Throws<ArgumentNullException>(() => { collection.Remove(null); }); } [Fact] public void Remove_AddValuesThenCallRemove_ReturnsTrueWhenRemovingExistingValuesFalseOtherwise() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Assert.True(collection.Remove(new Uri("http://www.example.org/2/")), "Expected true for existing item."); Assert.False(collection.Remove(new Uri("http://www.example.org/4/")), "Expected false for non-existing item."); } [Fact] public void Remove_UseSpecialValue_FalseWhenEmpty() { HttpRequestHeaders headers = new HttpRequestHeaders(); Assert.Null(headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); Assert.False(headers.TransferEncoding.Remove(specialChunked)); Assert.Null(headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); } [Fact] public void Remove_UseSpecialValueWhenSetWithProperty_True() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncodingChunked = true; Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.True(headers.TransferEncoding.Contains(specialChunked)); Assert.True(headers.TransferEncoding.Remove(specialChunked)); Assert.False((bool)headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void Remove_UseSpecialValueWhenAdded_True() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncoding.Add(specialChunked); Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.True(headers.TransferEncoding.Contains(specialChunked)); Assert.True(headers.TransferEncoding.Remove(specialChunked)); Assert.Null(headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void GetEnumerator_AddSingleValueAndGetEnumerator_AllValuesReturned() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/")); bool started = false; foreach (var item in collection) { Assert.False(started, "We have more than one element returned by the enumerator."); Assert.Equal(new Uri("http://www.example.org/"), item); } } [Fact] public void GetEnumerator_AddValuesAndGetEnumerator_AllValuesReturned() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); int i = 1; foreach (var item in collection) { Assert.Equal(new Uri("http://www.example.org/" + i + "/"), item); i++; } } [Fact] public void GetEnumerator_NoValues_EmptyEnumerator() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); IEnumerator<Uri> enumerator = collection.GetEnumerator(); Assert.False(enumerator.MoveNext(), "No items expected in enumerator."); } [Fact] public void GetEnumerator_AddValuesAndGetEnumeratorFromInterface_AllValuesReturned() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); System.Collections.IEnumerable enumerable = collection; int i = 1; foreach (var item in enumerable) { Assert.Equal(new Uri("http://www.example.org/" + i + "/"), item); i++; } } [Fact] public void ToString_SpecialValues_Success() { HttpRequestMessage request = new HttpRequestMessage(); request.Headers.TransferEncodingChunked = true; string result = request.Headers.TransferEncoding.ToString(); Assert.Equal("chunked", result); request.Headers.ExpectContinue = true; result = request.Headers.Expect.ToString(); Assert.Equal("100-continue", result); request.Headers.ConnectionClose = true; result = request.Headers.Connection.ToString(); Assert.Equal("close", result); } [Fact] public void ToString_SpecialValueAndExtra_Success() { HttpRequestMessage request = new HttpRequestMessage(); request.Headers.Add(HttpKnownHeaderNames.TransferEncoding, "bla1"); request.Headers.TransferEncodingChunked = true; request.Headers.Add(HttpKnownHeaderNames.TransferEncoding, "bla2"); string result = request.Headers.TransferEncoding.ToString(); Assert.Equal("bla1, chunked, bla2", result); } [Fact] public void ToString_SingleValue_Success() { using (var response = new HttpResponseMessage()) { string input = "Basic"; response.Headers.Add(HttpKnownHeaderNames.WWWAuthenticate, input); string result = response.Headers.WwwAuthenticate.ToString(); Assert.Equal(input, result); } } [Fact] public void ToString_MultipleValue_Success() { using (var response = new HttpResponseMessage()) { string input = "Basic, NTLM, Negotiate, Custom"; response.Headers.Add(HttpKnownHeaderNames.WWWAuthenticate, input); string result = response.Headers.WwwAuthenticate.ToString(); Assert.Equal(input, result); } } [Fact] public void ToString_EmptyValue_Success() { using (var response = new HttpResponseMessage()) { string result = response.Headers.WwwAuthenticate.ToString(); Assert.Equal(string.Empty, result); } } #region Helper methods public class MockException : Exception { public MockException() { } public MockException(string message) : base(message) { } public MockException(string message, Exception inner) : base(message, inner) { } } private class MockHeaders : HttpHeaders { public MockHeaders() { } } private class MockHeaderParser : HttpHeaderParser { private static MockComparer comparer = new MockComparer(); private Type valueType; public override IEqualityComparer Comparer { get { return comparer; } } public MockHeaderParser(Type valueType) : base(true) { Assert.Contains(valueType, new[] { typeof(string), typeof(Uri) }); this.valueType = valueType; } public override bool TryParseValue(string value, object storeValue, ref int index, out object parsedValue) { parsedValue = null; if (value == null) { return true; } index = value.Length; // Just return the raw string (as string or Uri depending on the value type) parsedValue = (valueType == typeof(Uri) ? (object)new Uri(value) : value); return true; } } private class MockComparer : IEqualityComparer { public int EqualsCount { get; private set; } public int GetHashCodeCount { get; private set; } #region IEqualityComparer Members public new bool Equals(object x, object y) { EqualsCount++; return x.Equals(y); } public int GetHashCode(object obj) { GetHashCodeCount++; return obj.GetHashCode(); } #endregion } #endregion } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; using System.Linq; using System.Net.Http.Headers; using Xunit; namespace System.Net.Http.Tests { public class HttpHeaderValueCollectionTest { // Note: These are not real known headers, so they won't be returned if we call HeaderDescriptor.Get(). private static readonly HeaderDescriptor knownStringHeader = (new KnownHeader("known-string-header", HttpHeaderType.General, new MockHeaderParser(typeof(string)))).Descriptor; private static readonly HeaderDescriptor knownUriHeader = (new KnownHeader("known-uri-header", HttpHeaderType.General, new MockHeaderParser(typeof(Uri)))).Descriptor; private static readonly TransferCodingHeaderValue specialChunked = new TransferCodingHeaderValue("chunked"); // Note that this type just forwards calls to HttpHeaders. So this test method focuses on making sure // the correct calls to HttpHeaders are made. This test suite will not test HttpHeaders functionality. [Fact] public void IsReadOnly_CallProperty_AlwaysFalse() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<string> collection = new HttpHeaderValueCollection<string>(knownStringHeader, headers); Assert.False(collection.IsReadOnly); } [Fact] public void Add_CallWithNullValue_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Assert.Throws<ArgumentNullException>(() => { collection.Add(null); }); } [Fact] public void Add_AddValues_AllValuesAdded() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Assert.Equal(3, collection.Count); } [Fact] public void Add_UseSpecialValue_Success() { HttpRequestHeaders headers = new HttpRequestHeaders(); Assert.Null(headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); Assert.Equal(string.Empty, headers.TransferEncoding.ToString()); headers.TransferEncoding.Add(specialChunked); Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.Equal(specialChunked, headers.TransferEncoding.First()); Assert.Equal(specialChunked.ToString(), headers.TransferEncoding.ToString()); } [Fact] public void Add_UseSpecialValueWithSpecialAlreadyPresent_AddsDuplicate() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncodingChunked = true; Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.Equal(specialChunked.ToString(), headers.TransferEncoding.ToString()); headers.TransferEncoding.Add(specialChunked); Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(2, headers.TransferEncoding.Count); Assert.Equal("chunked, chunked", headers.TransferEncoding.ToString()); // removes first instance of headers.TransferEncodingChunked = false; Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.Equal(specialChunked.ToString(), headers.TransferEncoding.ToString()); // does not add duplicate headers.TransferEncodingChunked = true; Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.Equal(specialChunked.ToString(), headers.TransferEncoding.ToString()); } [Fact] public void ParseAdd_CallWithNullValue_NothingAdded() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.ParseAdd(null); Assert.Equal(0, collection.Count); Assert.Equal(string.Empty, collection.ToString()); } [Fact] public void ParseAdd_AddValues_AllValuesAdded() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.ParseAdd("http://www.example.org/1/"); collection.ParseAdd("http://www.example.org/2/"); collection.ParseAdd("http://www.example.org/3/"); Assert.Equal(3, collection.Count); } [Fact] public void ParseAdd_AddBadValue_Throws() { HttpResponseHeaders headers = new HttpResponseHeaders(); string input = "Basic, D\rigest qop=\"auth\",algorithm=MD5-sess"; Assert.Throws<FormatException>(() => { headers.WwwAuthenticate.ParseAdd(input); }); } [Fact] public void TryParseAdd_CallWithNullValue_NothingAdded() { HttpResponseHeaders headers = new HttpResponseHeaders(); Assert.True(headers.WwwAuthenticate.TryParseAdd(null)); Assert.Equal(0, headers.WwwAuthenticate.Count); Assert.Equal(string.Empty, headers.WwwAuthenticate.ToString()); } [Fact] public void TryParseAdd_AddValues_AllAdded() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Assert.True(collection.TryParseAdd("http://www.example.org/1/")); Assert.True(collection.TryParseAdd("http://www.example.org/2/")); Assert.True(collection.TryParseAdd("http://www.example.org/3/")); Assert.Equal(3, collection.Count); } [Fact] public void TryParseAdd_AddBadValue_False() { HttpResponseHeaders headers = new HttpResponseHeaders(); string input = "Basic, D\rigest qop=\"auth\",algorithm=MD5-sess"; Assert.False(headers.WwwAuthenticate.TryParseAdd(input)); Assert.Equal(string.Empty, headers.WwwAuthenticate.ToString()); Assert.Equal(string.Empty, headers.ToString()); } [Fact] public void TryParseAdd_AddBadAfterGoodValue_False() { HttpResponseHeaders headers = new HttpResponseHeaders(); headers.WwwAuthenticate.Add(new AuthenticationHeaderValue("Negotiate")); string input = "Basic, D\rigest qop=\"auth\",algorithm=MD5-sess"; Assert.False(headers.WwwAuthenticate.TryParseAdd(input)); Assert.Equal("Negotiate", headers.WwwAuthenticate.ToString()); Assert.Equal($"WWW-Authenticate: Negotiate{Environment.NewLine}", headers.ToString()); } [Fact] public void Clear_AddValuesThenClear_NoElementsInCollection() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Assert.Equal(3, collection.Count); collection.Clear(); Assert.Equal(0, collection.Count); } [Fact] public void Contains_CallWithNullValue_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Assert.Throws<ArgumentNullException>(() => { collection.Contains(null); }); } [Fact] public void Contains_AddValuesThenCallContains_ReturnsTrueForExistingItemsFalseOtherwise() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Assert.True(collection.Contains(new Uri("http://www.example.org/2/")), "Expected true for existing item."); Assert.False(collection.Contains(new Uri("http://www.example.org/4/")), "Expected false for non-existing item."); } [Fact] public void Contains_UseSpecialValueWhenEmpty_False() { HttpRequestHeaders headers = new HttpRequestHeaders(); Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void Contains_UseSpecialValueWithProperty_True() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncodingChunked = true; Assert.True(headers.TransferEncoding.Contains(specialChunked)); headers.TransferEncodingChunked = false; Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void Contains_UseSpecialValueWhenSpecilValueIsPresent_True() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncoding.Add(specialChunked); Assert.True(headers.TransferEncoding.Contains(specialChunked)); headers.TransferEncoding.Remove(specialChunked); Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void CopyTo_CallWithStartIndexPlusElementCountGreaterArrayLength_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); Uri[] array = new Uri[2]; // startIndex + Count = 1 + 2 > array.Length AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 1); }); } [Fact] public void CopyTo_EmptyToEmpty_Success() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Uri[] array = new Uri[0]; collection.CopyTo(array, 0); } [Fact] public void CopyTo_NoValues_DoesNotChangeArray() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Uri[] array = new Uri[4]; collection.CopyTo(array, 0); for (int i = 0; i < array.Length; i++) { Assert.Null(array[i]); } } [Fact] public void CopyTo_AddSingleValue_ContainsSingleValue() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/")); Uri[] array = new Uri[1]; collection.CopyTo(array, 0); Assert.Equal(new Uri("http://www.example.org/"), array[0]); } [Fact] public void CopyTo_AddMultipleValues_ContainsAllValuesInTheRightOrder() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Uri[] array = new Uri[5]; collection.CopyTo(array, 1); Assert.Null(array[0]); Assert.Equal(new Uri("http://www.example.org/1/"), array[1]); Assert.Equal(new Uri("http://www.example.org/2/"), array[2]); Assert.Equal(new Uri("http://www.example.org/3/"), array[3]); Assert.Null(array[4]); } [Fact] public void CopyTo_ArrayTooSmall_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<string> collection = new HttpHeaderValueCollection<string>(knownStringHeader, headers); string[] array = new string[1]; array[0] = null; collection.CopyTo(array, 0); // no exception Assert.Null(array[0]); Assert.Throws<ArgumentNullException>(() => { collection.CopyTo(null, 0); }); Assert.Throws<ArgumentOutOfRangeException>(() => { collection.CopyTo(array, -1); }); Assert.Throws<ArgumentOutOfRangeException>(() => { collection.CopyTo(array, 2); }); headers.Add(knownStringHeader, "special"); array = new string[0]; AssertExtensions.Throws<ArgumentException>(null, () => { collection.CopyTo(array, 0); }); headers.Add(knownStringHeader, "special"); headers.Add(knownStringHeader, "special"); array = new string[1]; AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 0); }); headers.Add(knownStringHeader, "value1"); array = new string[0]; AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 0); }); headers.Add(knownStringHeader, "value2"); array = new string[1]; AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 0); }); array = new string[2]; AssertExtensions.Throws<ArgumentException>("destinationArray", "", () => { collection.CopyTo(array, 1); }); } [Fact] public void Remove_CallWithNullValue_Throw() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); Assert.Throws<ArgumentNullException>(() => { collection.Remove(null); }); } [Fact] public void Remove_AddValuesThenCallRemove_ReturnsTrueWhenRemovingExistingValuesFalseOtherwise() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); Assert.True(collection.Remove(new Uri("http://www.example.org/2/")), "Expected true for existing item."); Assert.False(collection.Remove(new Uri("http://www.example.org/4/")), "Expected false for non-existing item."); } [Fact] public void Remove_UseSpecialValue_FalseWhenEmpty() { HttpRequestHeaders headers = new HttpRequestHeaders(); Assert.Null(headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); Assert.False(headers.TransferEncoding.Remove(specialChunked)); Assert.Null(headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); } [Fact] public void Remove_UseSpecialValueWhenSetWithProperty_True() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncodingChunked = true; Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.True(headers.TransferEncoding.Contains(specialChunked)); Assert.True(headers.TransferEncoding.Remove(specialChunked)); Assert.False((bool)headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void Remove_UseSpecialValueWhenAdded_True() { HttpRequestHeaders headers = new HttpRequestHeaders(); headers.TransferEncoding.Add(specialChunked); Assert.True((bool)headers.TransferEncodingChunked); Assert.Equal(1, headers.TransferEncoding.Count); Assert.True(headers.TransferEncoding.Contains(specialChunked)); Assert.True(headers.TransferEncoding.Remove(specialChunked)); Assert.Null(headers.TransferEncodingChunked); Assert.Equal(0, headers.TransferEncoding.Count); Assert.False(headers.TransferEncoding.Contains(specialChunked)); } [Fact] public void GetEnumerator_AddSingleValueAndGetEnumerator_AllValuesReturned() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/")); bool started = false; foreach (var item in collection) { Assert.False(started, "We have more than one element returned by the enumerator."); Assert.Equal(new Uri("http://www.example.org/"), item); } } [Fact] public void GetEnumerator_AddValuesAndGetEnumerator_AllValuesReturned() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); int i = 1; foreach (var item in collection) { Assert.Equal(new Uri("http://www.example.org/" + i + "/"), item); i++; } } [Fact] public void GetEnumerator_NoValues_EmptyEnumerator() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); IEnumerator<Uri> enumerator = collection.GetEnumerator(); Assert.False(enumerator.MoveNext(), "No items expected in enumerator."); } [Fact] public void GetEnumerator_AddValuesAndGetEnumeratorFromInterface_AllValuesReturned() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownUriHeader, headers); collection.Add(new Uri("http://www.example.org/1/")); collection.Add(new Uri("http://www.example.org/2/")); collection.Add(new Uri("http://www.example.org/3/")); System.Collections.IEnumerable enumerable = collection; int i = 1; foreach (var item in enumerable) { Assert.Equal(new Uri("http://www.example.org/" + i + "/"), item); i++; } } [Fact] public void ToString_SpecialValues_Success() { HttpRequestMessage request = new HttpRequestMessage(); request.Headers.TransferEncodingChunked = true; string result = request.Headers.TransferEncoding.ToString(); Assert.Equal("chunked", result); request.Headers.ExpectContinue = true; result = request.Headers.Expect.ToString(); Assert.Equal("100-continue", result); request.Headers.ConnectionClose = true; result = request.Headers.Connection.ToString(); Assert.Equal("close", result); } [Fact] public void ToString_SpecialValueAndExtra_Success() { HttpRequestMessage request = new HttpRequestMessage(); request.Headers.Add(HttpKnownHeaderNames.TransferEncoding, "bla1"); request.Headers.TransferEncodingChunked = true; request.Headers.Add(HttpKnownHeaderNames.TransferEncoding, "bla2"); string result = request.Headers.TransferEncoding.ToString(); Assert.Equal("bla1, chunked, bla2", result); } [Fact] public void ToString_SingleValue_Success() { using (var response = new HttpResponseMessage()) { string input = "Basic"; response.Headers.Add(HttpKnownHeaderNames.WWWAuthenticate, input); string result = response.Headers.WwwAuthenticate.ToString(); Assert.Equal(input, result); } } [Fact] public void ToString_MultipleValue_Success() { using (var response = new HttpResponseMessage()) { string input = "Basic, NTLM, Negotiate, Custom"; response.Headers.Add(HttpKnownHeaderNames.WWWAuthenticate, input); string result = response.Headers.WwwAuthenticate.ToString(); Assert.Equal(input, result); } } [Fact] public void ToString_EmptyValue_Success() { using (var response = new HttpResponseMessage()) { string result = response.Headers.WwwAuthenticate.ToString(); Assert.Equal(string.Empty, result); } } #region Helper methods public class MockException : Exception { public MockException() { } public MockException(string message) : base(message) { } public MockException(string message, Exception inner) : base(message, inner) { } } private class MockHeaders : HttpHeaders { public MockHeaders() { } } private class MockHeaderParser : HttpHeaderParser { private static MockComparer comparer = new MockComparer(); private Type valueType; public override IEqualityComparer Comparer { get { return comparer; } } public MockHeaderParser(Type valueType) : base(true) { Assert.Contains(valueType, new[] { typeof(string), typeof(Uri) }); this.valueType = valueType; } public override bool TryParseValue(string value, object storeValue, ref int index, out object parsedValue) { parsedValue = null; if (value == null) { return true; } index = value.Length; // Just return the raw string (as string or Uri depending on the value type) parsedValue = (valueType == typeof(Uri) ? (object)new Uri(value) : value); return true; } } private class MockComparer : IEqualityComparer { public int EqualsCount { get; private set; } public int GetHashCodeCount { get; private set; } #region IEqualityComparer Members public new bool Equals(object x, object y) { EqualsCount++; return x.Equals(y); } public int GetHashCode(object obj) { GetHashCodeCount++; return obj.GetHashCode(); } #endregion } #endregion } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/libraries/System.Private.CoreLib/src/System/Buffers/Binary/ReaderBigEndian.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace System.Buffers.Binary { public static partial class BinaryPrimitives { /// <summary> /// Reads a <see cref="double" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span to read.</param> /// <returns>The big endian value.</returns> /// <remarks>Reads exactly 8 bytes from the beginning of the span.</remarks> /// <exception cref="ArgumentOutOfRangeException"> /// <paramref name="source"/> is too small to contain a <see cref="double" />. /// </exception> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double ReadDoubleBigEndian(ReadOnlySpan<byte> source) { return BitConverter.IsLittleEndian ? BitConverter.Int64BitsToDouble(ReverseEndianness(MemoryMarshal.Read<long>(source))) : MemoryMarshal.Read<double>(source); } /// <summary> /// Reads a <see cref="Half" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span to read.</param> /// <returns>The big endian value.</returns> /// <remarks>Reads exactly 2 bytes from the beginning of the span.</remarks> /// <exception cref="ArgumentOutOfRangeException"> /// <paramref name="source"/> is too small to contain a <see cref="Half" />. /// </exception> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Half ReadHalfBigEndian(ReadOnlySpan<byte> source) { return BitConverter.IsLittleEndian ? BitConverter.Int16BitsToHalf(ReverseEndianness(MemoryMarshal.Read<short>(source))) : MemoryMarshal.Read<Half>(source); } /// <summary> /// Reads an Int16 out of a read-only span of bytes as big endian. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static short ReadInt16BigEndian(ReadOnlySpan<byte> source) { short result = MemoryMarshal.Read<short>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads an Int32 out of a read-only span of bytes as big endian. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int ReadInt32BigEndian(ReadOnlySpan<byte> source) { int result = MemoryMarshal.Read<int>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads an Int64 out of a read-only span of bytes as big endian. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long ReadInt64BigEndian(ReadOnlySpan<byte> source) { long result = MemoryMarshal.Read<long>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads a <see cref="float" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span to read.</param> /// <returns>The big endian value.</returns> /// <remarks>Reads exactly 4 bytes from the beginning of the span.</remarks> /// <exception cref="ArgumentOutOfRangeException"> /// <paramref name="source"/> is too small to contain a <see cref="float" />. /// </exception> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float ReadSingleBigEndian(ReadOnlySpan<byte> source) { return BitConverter.IsLittleEndian ? BitConverter.Int32BitsToSingle(ReverseEndianness(MemoryMarshal.Read<int>(source))) : MemoryMarshal.Read<float>(source); } /// <summary> /// Reads a UInt16 out of a read-only span of bytes as big endian. /// </summary> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ushort ReadUInt16BigEndian(ReadOnlySpan<byte> source) { ushort result = MemoryMarshal.Read<ushort>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads a UInt32 out of a read-only span of bytes as big endian. /// </summary> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint ReadUInt32BigEndian(ReadOnlySpan<byte> source) { uint result = MemoryMarshal.Read<uint>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads a UInt64 out of a read-only span of bytes as big endian. /// </summary> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong ReadUInt64BigEndian(ReadOnlySpan<byte> source) { ulong result = MemoryMarshal.Read<ulong>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads a <see cref="double" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span of bytes to read.</param> /// <param name="value">When this method returns, the value read out of the read-only span of bytes, as big endian.</param> /// <returns> /// <see langword="true" /> if the span is large enough to contain a <see cref="double" />; otherwise, <see langword="false" />. /// </returns> /// <remarks>Reads exactly 8 bytes from the beginning of the span.</remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadDoubleBigEndian(ReadOnlySpan<byte> source, out double value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out long tmp); value = BitConverter.Int64BitsToDouble(ReverseEndianness(tmp)); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a <see cref="Half" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span of bytes to read.</param> /// <param name="value">When this method returns, the value read out of the read-only span of bytes, as big endian.</param> /// <returns> /// <see langword="true" /> if the span is large enough to contain a <see cref="Half" />; otherwise, <see langword="false" />. /// </returns> /// <remarks>Reads exactly 2 bytes from the beginning of the span.</remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadHalfBigEndian(ReadOnlySpan<byte> source, out Half value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out short tmp); value = BitConverter.Int16BitsToHalf(ReverseEndianness(tmp)); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads an Int16 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain an Int16, return false.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadInt16BigEndian(ReadOnlySpan<byte> source, out short value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out short tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads an Int32 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain an Int32, return false.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadInt32BigEndian(ReadOnlySpan<byte> source, out int value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out int tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads an Int64 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain an Int64, return false.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadInt64BigEndian(ReadOnlySpan<byte> source, out long value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out long tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a <see cref="float" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span of bytes to read.</param> /// <param name="value">When this method returns, the value read out of the read-only span of bytes, as big endian.</param> /// <returns> /// <see langword="true" /> if the span is large enough to contain a <see cref="float" />; otherwise, <see langword="false" />. /// </returns> /// <remarks>Reads exactly 4 bytes from the beginning of the span.</remarks> public static bool TryReadSingleBigEndian(ReadOnlySpan<byte> source, out float value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out int tmp); value = BitConverter.Int32BitsToSingle(ReverseEndianness(tmp)); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a UInt16 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain a UInt16, return false.</returns> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> source, out ushort value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out ushort tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a UInt32 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain a UInt32, return false.</returns> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> source, out uint value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out uint tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a UInt64 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain a UInt64, return false.</returns> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> source, out ulong value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out ulong tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace System.Buffers.Binary { public static partial class BinaryPrimitives { /// <summary> /// Reads a <see cref="double" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span to read.</param> /// <returns>The big endian value.</returns> /// <remarks>Reads exactly 8 bytes from the beginning of the span.</remarks> /// <exception cref="ArgumentOutOfRangeException"> /// <paramref name="source"/> is too small to contain a <see cref="double" />. /// </exception> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static double ReadDoubleBigEndian(ReadOnlySpan<byte> source) { return BitConverter.IsLittleEndian ? BitConverter.Int64BitsToDouble(ReverseEndianness(MemoryMarshal.Read<long>(source))) : MemoryMarshal.Read<double>(source); } /// <summary> /// Reads a <see cref="Half" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span to read.</param> /// <returns>The big endian value.</returns> /// <remarks>Reads exactly 2 bytes from the beginning of the span.</remarks> /// <exception cref="ArgumentOutOfRangeException"> /// <paramref name="source"/> is too small to contain a <see cref="Half" />. /// </exception> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Half ReadHalfBigEndian(ReadOnlySpan<byte> source) { return BitConverter.IsLittleEndian ? BitConverter.Int16BitsToHalf(ReverseEndianness(MemoryMarshal.Read<short>(source))) : MemoryMarshal.Read<Half>(source); } /// <summary> /// Reads an Int16 out of a read-only span of bytes as big endian. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static short ReadInt16BigEndian(ReadOnlySpan<byte> source) { short result = MemoryMarshal.Read<short>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads an Int32 out of a read-only span of bytes as big endian. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int ReadInt32BigEndian(ReadOnlySpan<byte> source) { int result = MemoryMarshal.Read<int>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads an Int64 out of a read-only span of bytes as big endian. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static long ReadInt64BigEndian(ReadOnlySpan<byte> source) { long result = MemoryMarshal.Read<long>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads a <see cref="float" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span to read.</param> /// <returns>The big endian value.</returns> /// <remarks>Reads exactly 4 bytes from the beginning of the span.</remarks> /// <exception cref="ArgumentOutOfRangeException"> /// <paramref name="source"/> is too small to contain a <see cref="float" />. /// </exception> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static float ReadSingleBigEndian(ReadOnlySpan<byte> source) { return BitConverter.IsLittleEndian ? BitConverter.Int32BitsToSingle(ReverseEndianness(MemoryMarshal.Read<int>(source))) : MemoryMarshal.Read<float>(source); } /// <summary> /// Reads a UInt16 out of a read-only span of bytes as big endian. /// </summary> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ushort ReadUInt16BigEndian(ReadOnlySpan<byte> source) { ushort result = MemoryMarshal.Read<ushort>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads a UInt32 out of a read-only span of bytes as big endian. /// </summary> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint ReadUInt32BigEndian(ReadOnlySpan<byte> source) { uint result = MemoryMarshal.Read<uint>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads a UInt64 out of a read-only span of bytes as big endian. /// </summary> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong ReadUInt64BigEndian(ReadOnlySpan<byte> source) { ulong result = MemoryMarshal.Read<ulong>(source); if (BitConverter.IsLittleEndian) { result = ReverseEndianness(result); } return result; } /// <summary> /// Reads a <see cref="double" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span of bytes to read.</param> /// <param name="value">When this method returns, the value read out of the read-only span of bytes, as big endian.</param> /// <returns> /// <see langword="true" /> if the span is large enough to contain a <see cref="double" />; otherwise, <see langword="false" />. /// </returns> /// <remarks>Reads exactly 8 bytes from the beginning of the span.</remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadDoubleBigEndian(ReadOnlySpan<byte> source, out double value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out long tmp); value = BitConverter.Int64BitsToDouble(ReverseEndianness(tmp)); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a <see cref="Half" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span of bytes to read.</param> /// <param name="value">When this method returns, the value read out of the read-only span of bytes, as big endian.</param> /// <returns> /// <see langword="true" /> if the span is large enough to contain a <see cref="Half" />; otherwise, <see langword="false" />. /// </returns> /// <remarks>Reads exactly 2 bytes from the beginning of the span.</remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadHalfBigEndian(ReadOnlySpan<byte> source, out Half value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out short tmp); value = BitConverter.Int16BitsToHalf(ReverseEndianness(tmp)); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads an Int16 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain an Int16, return false.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadInt16BigEndian(ReadOnlySpan<byte> source, out short value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out short tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads an Int32 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain an Int32, return false.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadInt32BigEndian(ReadOnlySpan<byte> source, out int value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out int tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads an Int64 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain an Int64, return false.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadInt64BigEndian(ReadOnlySpan<byte> source, out long value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out long tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a <see cref="float" /> from the beginning of a read-only span of bytes, as big endian. /// </summary> /// <param name="source">The read-only span of bytes to read.</param> /// <param name="value">When this method returns, the value read out of the read-only span of bytes, as big endian.</param> /// <returns> /// <see langword="true" /> if the span is large enough to contain a <see cref="float" />; otherwise, <see langword="false" />. /// </returns> /// <remarks>Reads exactly 4 bytes from the beginning of the span.</remarks> public static bool TryReadSingleBigEndian(ReadOnlySpan<byte> source, out float value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out int tmp); value = BitConverter.Int32BitsToSingle(ReverseEndianness(tmp)); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a UInt16 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain a UInt16, return false.</returns> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> source, out ushort value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out ushort tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a UInt32 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain a UInt32, return false.</returns> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> source, out uint value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out uint tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } /// <summary> /// Reads a UInt64 out of a read-only span of bytes as big endian. /// </summary> /// <returns>If the span is too small to contain a UInt64, return false.</returns> [CLSCompliant(false)] [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> source, out ulong value) { if (BitConverter.IsLittleEndian) { bool success = MemoryMarshal.TryRead(source, out ulong tmp); value = ReverseEndianness(tmp); return success; } return MemoryMarshal.TryRead(source, out value); } } }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/coreclr/ildasm/dasm_formattype.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // /******************************************************************************/ /* dasm_formatType.cpp */ /******************************************************************************/ #include "ildasmpch.h" #include "formattype.h" BOOL g_fQuoteAllNames = FALSE; // used by ILDASM BOOL g_fDumpTokens = FALSE; // used by ILDASM LPCSTR *rAsmRefName = NULL; // used by ILDASM ULONG ulNumAsmRefs = 0; // used by ILDASM BOOL g_fDumpRTF = FALSE; // used by ILDASM BOOL g_fDumpHTML = FALSE; // used by ILDASM BOOL g_fUseProperName = FALSE; // used by ILDASM DynamicArray<mdToken> *g_dups = NULL; // used by ILDASM DWORD g_NumDups=0; // used by ILDASM DynamicArray<TypeDefDescr> *g_typedefs = NULL; // used by ILDASM DWORD g_NumTypedefs=0; // used by ILDASM // buffers created in Init and deleted in Uninit (dasm.cpp) CQuickBytes * g_szBuf_KEYWORD = NULL; CQuickBytes * g_szBuf_COMMENT = NULL; CQuickBytes * g_szBuf_ERRORMSG = NULL; CQuickBytes * g_szBuf_ANCHORPT = NULL; CQuickBytes * g_szBuf_JUMPPT = NULL; CQuickBytes * g_szBuf_UnquotedProperName = NULL; CQuickBytes * g_szBuf_ProperName = NULL; // Protection against null names, used by ILDASM const char * const szStdNamePrefix[] = {"MO","TR","TD","","FD","","MD","","PA","II","MR","","CA","","PE","","","SG","","","EV", "","","PR","","","MOR","TS","","","","","AS","","","AR","","","FL","ET","MAR"}; //------------------------------------------------------------------------------- // Reference analysis (ILDASM) DynamicArray<TokPair> *g_refs = NULL; DWORD g_NumRefs=0; mdToken g_tkRefUser=0; // for PrettyPrintSig mdToken g_tkVarOwner = 0; mdToken g_tkMVarOwner = 0; // Include the shared formatting routines #include "formattype.cpp" // Special dumping routines for keywords, comments and errors, used by ILDASM const char* KEYWORD(_In_opt_z_ const char* szOrig) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; const char* szPrefix = ""; const char* szPostfix = ""; if(g_fDumpHTML) { szPrefix = "<B><FONT COLOR=NAVY>"; szPostfix = "</FONT></B>"; } else if(g_fDumpRTF) { szPrefix = "\\b\\cf1 "; szPostfix = "\\cf0\\b0 "; } if(szOrig == NULL) return szPrefix; if(szOrig == (char*)-1) return szPostfix; if(*szPrefix) { g_szBuf_KEYWORD->Shrink(0); appendStr(g_szBuf_KEYWORD,szPrefix); appendStr(g_szBuf_KEYWORD,szOrig); appendStr(g_szBuf_KEYWORD,szPostfix); return asString(g_szBuf_KEYWORD); } else return szOrig; } const char* COMMENT(_In_opt_z_ const char* szOrig) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; const char* szPrefix = ""; const char* szPostfix = ""; if(g_fDumpHTML) { szPrefix = "<I><FONT COLOR=GREEN>"; szPostfix = "</FONT></I>"; } else if(g_fDumpRTF) { szPrefix = "\\cf2\\i "; szPostfix = "\\i0\\cf0 "; } else { szPrefix = ""; szPostfix = ""; } if(szOrig == NULL) return szPrefix; if(szOrig == (char*)-1) return szPostfix; if(*szPrefix) { g_szBuf_COMMENT->Shrink(0); appendStr(g_szBuf_COMMENT,szPrefix); appendStr(g_szBuf_COMMENT,szOrig); appendStr(g_szBuf_COMMENT,szPostfix); return asString(g_szBuf_COMMENT); } else return szOrig; } const char* ERRORMSG(_In_opt_z_ const char* szOrig) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; const char* szPrefix = ""; const char* szPostfix = ""; if(g_fDumpHTML) { szPrefix = "<I><B><FONT COLOR=RED>"; szPostfix = "</FONT></B></I>"; } else if(g_fDumpRTF) { szPrefix = "\\cf3\\i\\b "; szPostfix = "\\cf0\\b0\\i0 "; } if(szOrig == NULL) return szPrefix; if(szOrig == (char*)-1) return szPostfix; if(*szPrefix) { g_szBuf_ERRORMSG->Shrink(0); appendStr(g_szBuf_ERRORMSG,szPrefix); appendStr(g_szBuf_ERRORMSG,szOrig); appendStr(g_szBuf_ERRORMSG,szPostfix); return asString(g_szBuf_ERRORMSG); } else return szOrig; } const char* ANCHORPT(_In_ __nullterminated const char* szOrig, mdToken tk) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; if(g_fDumpHTML) { char szPrefix[64]; const char* szPostfix = "</A>"; sprintf_s(szPrefix, ARRAY_SIZE(szPrefix), "<A NAME=A%08X>",tk); g_szBuf_ANCHORPT->Shrink(0); appendStr(g_szBuf_ANCHORPT,szPrefix); appendStr(g_szBuf_ANCHORPT,szOrig); appendStr(g_szBuf_ANCHORPT,szPostfix); return asString(g_szBuf_ANCHORPT); } else return szOrig; } const char* JUMPPT(_In_ __nullterminated const char* szOrig, mdToken tk) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; if(g_fDumpHTML) { char szPrefix[64]; const char* szPostfix = "</A>"; sprintf_s(szPrefix,ARRAY_SIZE(szPrefix), "<A HREF=#A%08X>",tk); g_szBuf_JUMPPT->Shrink(0); appendStr(g_szBuf_JUMPPT,szPrefix); appendStr(g_szBuf_JUMPPT,szOrig); appendStr(g_szBuf_JUMPPT,szPostfix); return asString(g_szBuf_JUMPPT); } else return szOrig; } const char* SCOPE(void) { return g_fDumpRTF ? "\\{" : "{"; } const char* UNSCOPE(void) { return g_fDumpRTF ? "\\}" : "}"; } const char* LTN(void) { return g_fDumpHTML ? "&lt;" : "<"; } const char* GTN(void) { return g_fDumpHTML ? "&gt;" : ">"; } const char* AMP(void) { return g_fDumpHTML ? "&amp;" : "&"; } /******************************************************************************/ // Function: convert spec.symbols to esc sequences and single-quote if necessary const char* UnquotedProperName(_In_ __nullterminated const char* name, unsigned len/*=(unsigned)-1*/) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; CQuickBytes *buff = g_szBuf_UnquotedProperName; _ASSERTE (buff); if(g_fUseProperName) { const char *pcn,*pcend,*ret; if (name != NULL) { if (*name != 0) { pcn = name; if (len == (unsigned)(-1)) len = (unsigned)strlen(name); pcend = pcn + len; buff->Shrink(0); for (pcn = name; pcn < pcend; pcn++) { switch(*pcn) { case '\t': appendChar(buff,'\\'); appendChar(buff,'t'); break; case '\n': appendChar(buff,'\\'); appendChar(buff,'n'); break; case '\b': appendChar(buff,'\\'); appendChar(buff,'b'); break; case '\r': appendChar(buff,'\\'); appendChar(buff,'r'); break; case '\f': appendChar(buff,'\\'); appendChar(buff,'f'); break; case '\v': appendChar(buff,'\\'); appendChar(buff,'v'); break; case '\a': appendChar(buff,'\\'); appendChar(buff,'a'); break; case '\\': appendChar(buff,'\\'); appendChar(buff,'\\'); break; case '\'': appendChar(buff,'\\'); appendChar(buff,'\''); break; case '\"': appendChar(buff,'\\'); appendChar(buff,'\"'); break; case '{': appendStr(buff,SCOPE()); break; case '}': appendStr(buff,UNSCOPE()); break; case '<': appendStr(buff,LTN()); break; case '>': appendStr(buff,GTN()); break; case '&': appendStr(buff,AMP()); break; default: appendChar(buff,*pcn); } } ret = asString(buff); } else ret = ""; } else ret = NULL; return ret; } return name; } /******************************************************************************/ // Function: convert spec.symbols to esc sequences and single-quote if necessary const char* ProperName(_In_ __nullterminated const char* name, bool isLocalName) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; CQuickBytes *buff = g_szBuf_ProperName; _ASSERTE (buff); if(g_fUseProperName) { const char *ret; BOOL fQuoted; if(name) { if(*name) { buff->Shrink(0); fQuoted = isLocalName ? IsLocalToQuote(name) : IsNameToQuote(name); if(fQuoted) appendChar(buff,'\''); appendStr(buff,UnquotedProperName(name)); if(fQuoted) appendChar(buff,'\''); ret = asString(buff); } else ret = ""; } else ret = NULL; return ret; } return name; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // /******************************************************************************/ /* dasm_formatType.cpp */ /******************************************************************************/ #include "ildasmpch.h" #include "formattype.h" BOOL g_fQuoteAllNames = FALSE; // used by ILDASM BOOL g_fDumpTokens = FALSE; // used by ILDASM LPCSTR *rAsmRefName = NULL; // used by ILDASM ULONG ulNumAsmRefs = 0; // used by ILDASM BOOL g_fDumpRTF = FALSE; // used by ILDASM BOOL g_fDumpHTML = FALSE; // used by ILDASM BOOL g_fUseProperName = FALSE; // used by ILDASM DynamicArray<mdToken> *g_dups = NULL; // used by ILDASM DWORD g_NumDups=0; // used by ILDASM DynamicArray<TypeDefDescr> *g_typedefs = NULL; // used by ILDASM DWORD g_NumTypedefs=0; // used by ILDASM // buffers created in Init and deleted in Uninit (dasm.cpp) CQuickBytes * g_szBuf_KEYWORD = NULL; CQuickBytes * g_szBuf_COMMENT = NULL; CQuickBytes * g_szBuf_ERRORMSG = NULL; CQuickBytes * g_szBuf_ANCHORPT = NULL; CQuickBytes * g_szBuf_JUMPPT = NULL; CQuickBytes * g_szBuf_UnquotedProperName = NULL; CQuickBytes * g_szBuf_ProperName = NULL; // Protection against null names, used by ILDASM const char * const szStdNamePrefix[] = {"MO","TR","TD","","FD","","MD","","PA","II","MR","","CA","","PE","","","SG","","","EV", "","","PR","","","MOR","TS","","","","","AS","","","AR","","","FL","ET","MAR"}; //------------------------------------------------------------------------------- // Reference analysis (ILDASM) DynamicArray<TokPair> *g_refs = NULL; DWORD g_NumRefs=0; mdToken g_tkRefUser=0; // for PrettyPrintSig mdToken g_tkVarOwner = 0; mdToken g_tkMVarOwner = 0; // Include the shared formatting routines #include "formattype.cpp" // Special dumping routines for keywords, comments and errors, used by ILDASM const char* KEYWORD(_In_opt_z_ const char* szOrig) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; const char* szPrefix = ""; const char* szPostfix = ""; if(g_fDumpHTML) { szPrefix = "<B><FONT COLOR=NAVY>"; szPostfix = "</FONT></B>"; } else if(g_fDumpRTF) { szPrefix = "\\b\\cf1 "; szPostfix = "\\cf0\\b0 "; } if(szOrig == NULL) return szPrefix; if(szOrig == (char*)-1) return szPostfix; if(*szPrefix) { g_szBuf_KEYWORD->Shrink(0); appendStr(g_szBuf_KEYWORD,szPrefix); appendStr(g_szBuf_KEYWORD,szOrig); appendStr(g_szBuf_KEYWORD,szPostfix); return asString(g_szBuf_KEYWORD); } else return szOrig; } const char* COMMENT(_In_opt_z_ const char* szOrig) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; const char* szPrefix = ""; const char* szPostfix = ""; if(g_fDumpHTML) { szPrefix = "<I><FONT COLOR=GREEN>"; szPostfix = "</FONT></I>"; } else if(g_fDumpRTF) { szPrefix = "\\cf2\\i "; szPostfix = "\\i0\\cf0 "; } else { szPrefix = ""; szPostfix = ""; } if(szOrig == NULL) return szPrefix; if(szOrig == (char*)-1) return szPostfix; if(*szPrefix) { g_szBuf_COMMENT->Shrink(0); appendStr(g_szBuf_COMMENT,szPrefix); appendStr(g_szBuf_COMMENT,szOrig); appendStr(g_szBuf_COMMENT,szPostfix); return asString(g_szBuf_COMMENT); } else return szOrig; } const char* ERRORMSG(_In_opt_z_ const char* szOrig) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; const char* szPrefix = ""; const char* szPostfix = ""; if(g_fDumpHTML) { szPrefix = "<I><B><FONT COLOR=RED>"; szPostfix = "</FONT></B></I>"; } else if(g_fDumpRTF) { szPrefix = "\\cf3\\i\\b "; szPostfix = "\\cf0\\b0\\i0 "; } if(szOrig == NULL) return szPrefix; if(szOrig == (char*)-1) return szPostfix; if(*szPrefix) { g_szBuf_ERRORMSG->Shrink(0); appendStr(g_szBuf_ERRORMSG,szPrefix); appendStr(g_szBuf_ERRORMSG,szOrig); appendStr(g_szBuf_ERRORMSG,szPostfix); return asString(g_szBuf_ERRORMSG); } else return szOrig; } const char* ANCHORPT(_In_ __nullterminated const char* szOrig, mdToken tk) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; if(g_fDumpHTML) { char szPrefix[64]; const char* szPostfix = "</A>"; sprintf_s(szPrefix, ARRAY_SIZE(szPrefix), "<A NAME=A%08X>",tk); g_szBuf_ANCHORPT->Shrink(0); appendStr(g_szBuf_ANCHORPT,szPrefix); appendStr(g_szBuf_ANCHORPT,szOrig); appendStr(g_szBuf_ANCHORPT,szPostfix); return asString(g_szBuf_ANCHORPT); } else return szOrig; } const char* JUMPPT(_In_ __nullterminated const char* szOrig, mdToken tk) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; if(g_fDumpHTML) { char szPrefix[64]; const char* szPostfix = "</A>"; sprintf_s(szPrefix,ARRAY_SIZE(szPrefix), "<A HREF=#A%08X>",tk); g_szBuf_JUMPPT->Shrink(0); appendStr(g_szBuf_JUMPPT,szPrefix); appendStr(g_szBuf_JUMPPT,szOrig); appendStr(g_szBuf_JUMPPT,szPostfix); return asString(g_szBuf_JUMPPT); } else return szOrig; } const char* SCOPE(void) { return g_fDumpRTF ? "\\{" : "{"; } const char* UNSCOPE(void) { return g_fDumpRTF ? "\\}" : "}"; } const char* LTN(void) { return g_fDumpHTML ? "&lt;" : "<"; } const char* GTN(void) { return g_fDumpHTML ? "&gt;" : ">"; } const char* AMP(void) { return g_fDumpHTML ? "&amp;" : "&"; } /******************************************************************************/ // Function: convert spec.symbols to esc sequences and single-quote if necessary const char* UnquotedProperName(_In_ __nullterminated const char* name, unsigned len/*=(unsigned)-1*/) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; CQuickBytes *buff = g_szBuf_UnquotedProperName; _ASSERTE (buff); if(g_fUseProperName) { const char *pcn,*pcend,*ret; if (name != NULL) { if (*name != 0) { pcn = name; if (len == (unsigned)(-1)) len = (unsigned)strlen(name); pcend = pcn + len; buff->Shrink(0); for (pcn = name; pcn < pcend; pcn++) { switch(*pcn) { case '\t': appendChar(buff,'\\'); appendChar(buff,'t'); break; case '\n': appendChar(buff,'\\'); appendChar(buff,'n'); break; case '\b': appendChar(buff,'\\'); appendChar(buff,'b'); break; case '\r': appendChar(buff,'\\'); appendChar(buff,'r'); break; case '\f': appendChar(buff,'\\'); appendChar(buff,'f'); break; case '\v': appendChar(buff,'\\'); appendChar(buff,'v'); break; case '\a': appendChar(buff,'\\'); appendChar(buff,'a'); break; case '\\': appendChar(buff,'\\'); appendChar(buff,'\\'); break; case '\'': appendChar(buff,'\\'); appendChar(buff,'\''); break; case '\"': appendChar(buff,'\\'); appendChar(buff,'\"'); break; case '{': appendStr(buff,SCOPE()); break; case '}': appendStr(buff,UNSCOPE()); break; case '<': appendStr(buff,LTN()); break; case '>': appendStr(buff,GTN()); break; case '&': appendStr(buff,AMP()); break; default: appendChar(buff,*pcn); } } ret = asString(buff); } else ret = ""; } else ret = NULL; return ret; } return name; } /******************************************************************************/ // Function: convert spec.symbols to esc sequences and single-quote if necessary const char* ProperName(_In_ __nullterminated const char* name, bool isLocalName) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; CQuickBytes *buff = g_szBuf_ProperName; _ASSERTE (buff); if(g_fUseProperName) { const char *ret; BOOL fQuoted; if(name) { if(*name) { buff->Shrink(0); fQuoted = isLocalName ? IsLocalToQuote(name) : IsNameToQuote(name); if(fQuoted) appendChar(buff,'\''); appendStr(buff,UnquotedProperName(name)); if(fQuoted) appendChar(buff,'\''); ret = asString(buff); } else ret = ""; } else ret = NULL; return ret; } return name; }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./docs/design/coreclr/botr/images/simple-dependency-graph.gv
digraph "SimpleDependencyGraph" { ordering=out; rankdir=LR; node [shape=box]; Code_Program_Main[label="Program::Main"]; Code_Bar__ctor[label="Bar::.ctor"]; Code_Bar_VirtualMethod[label="Bar::VirtualMethod"]; Code_Bar_UnusedVirtualMethod[label="Bar::UnusedVirtualMethod"]; Code_Foo_UnusedVirtualMethod[label="Foo::UnusedVirtualMethod"]; Code_Foo__ctor[label="Foo::.ctor"]; Code_Object__ctor[label="Object::.ctor"]; node [shape=ellipse]; Type_Bar[label="Bar"]; Type_Foo[label="Foo"]; Type_Object[label="Object"]; node [shape=ellipse, style=dotted] Type_Baz[label="Baz"] node [shape=box, style=dashed]; Virtual_Foo_VirtualMethod[label="Foo::VirtualMethod"]; Code_Program_Main -> Code_Bar__ctor; Code_Program_Main -> Type_Bar; Code_Program_Main -> Virtual_Foo_VirtualMethod; Code_Program_Main -> Type_Baz; Type_Baz -> Type_Foo; Type_Bar -> Type_Foo; Type_Foo -> Type_Object; Type_Bar -> Code_Bar_VirtualMethod[label="Foo::VirtualMethod is used", style=dashed]; Type_Bar -> Code_Bar_UnusedVirtualMethod[label="Foo::UnusedVirtualMethod is used", style=dashed]; Type_Foo -> Code_Foo_UnusedVirtualMethod[label="Foo::UnusedVirtualMethod is used", style=dashed]; Code_Bar__ctor -> Code_Foo__ctor; Code_Foo__ctor -> Code_Object__ctor; overlap=false; fontsize=12; }
digraph "SimpleDependencyGraph" { ordering=out; rankdir=LR; node [shape=box]; Code_Program_Main[label="Program::Main"]; Code_Bar__ctor[label="Bar::.ctor"]; Code_Bar_VirtualMethod[label="Bar::VirtualMethod"]; Code_Bar_UnusedVirtualMethod[label="Bar::UnusedVirtualMethod"]; Code_Foo_UnusedVirtualMethod[label="Foo::UnusedVirtualMethod"]; Code_Foo__ctor[label="Foo::.ctor"]; Code_Object__ctor[label="Object::.ctor"]; node [shape=ellipse]; Type_Bar[label="Bar"]; Type_Foo[label="Foo"]; Type_Object[label="Object"]; node [shape=ellipse, style=dotted] Type_Baz[label="Baz"] node [shape=box, style=dashed]; Virtual_Foo_VirtualMethod[label="Foo::VirtualMethod"]; Code_Program_Main -> Code_Bar__ctor; Code_Program_Main -> Type_Bar; Code_Program_Main -> Virtual_Foo_VirtualMethod; Code_Program_Main -> Type_Baz; Type_Baz -> Type_Foo; Type_Bar -> Type_Foo; Type_Foo -> Type_Object; Type_Bar -> Code_Bar_VirtualMethod[label="Foo::VirtualMethod is used", style=dashed]; Type_Bar -> Code_Bar_UnusedVirtualMethod[label="Foo::UnusedVirtualMethod is used", style=dashed]; Type_Foo -> Code_Foo_UnusedVirtualMethod[label="Foo::UnusedVirtualMethod is used", style=dashed]; Code_Bar__ctor -> Code_Foo__ctor; Code_Foo__ctor -> Code_Object__ctor; overlap=false; fontsize=12; }
-1
dotnet/runtime
66,131
Fixes Binding to non-null IEnumerable doesn't work #36390
Fixes Binding to non-null IEnumerable doesn't work #36390
SteveDunn
2022-03-03T06:49:45Z
2022-03-17T16:15:19Z
c032e0d89f5fc90b596b67a37684ee3c05c6b3ea
048da75f59c975e9bf3c346bee4ce4a9edd11e78
Fixes Binding to non-null IEnumerable doesn't work #36390. Fixes Binding to non-null IEnumerable doesn't work #36390
./src/tests/JIT/HardwareIntrinsics/General/Vector256/CreateScalar.UInt64.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\General\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void CreateScalarUInt64() { var test = new VectorCreate__CreateScalarUInt64(); // Validates basic functionality works test.RunBasicScenario(); // Validates calling via reflection works test.RunReflectionScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorCreate__CreateScalarUInt64 { private static readonly int LargestVectorSize = 32; private static readonly int ElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64); public bool Succeeded { get; set; } = true; public void RunBasicScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario)); UInt64 value = TestLibrary.Generator.GetUInt64(); Vector256<UInt64> result = Vector256.CreateScalar(value); ValidateResult(result, value); } public void RunReflectionScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario)); UInt64 value = TestLibrary.Generator.GetUInt64(); object result = typeof(Vector256) .GetMethod(nameof(Vector256.CreateScalar), new Type[] { typeof(UInt64) }) .Invoke(null, new object[] { value }); ValidateResult((Vector256<UInt64>)(result), value); } private void ValidateResult(Vector256<UInt64> result, UInt64 expectedValue, [CallerMemberName] string method = "") { UInt64[] resultElements = new UInt64[ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref resultElements[0]), result); ValidateResult(resultElements, expectedValue, method); } private void ValidateResult(UInt64[] resultElements, UInt64 expectedValue, [CallerMemberName] string method = "") { bool succeeded = true; if (resultElements[0] != expectedValue) { succeeded = false; } else { for (var i = 1; i < ElementCount; i++) { if (resultElements[i] != 0) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"Vector256.CreateScalar(UInt64): {method} failed:"); TestLibrary.TestFramework.LogInformation($" value: {expectedValue}"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", resultElements)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\General\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void CreateScalarUInt64() { var test = new VectorCreate__CreateScalarUInt64(); // Validates basic functionality works test.RunBasicScenario(); // Validates calling via reflection works test.RunReflectionScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorCreate__CreateScalarUInt64 { private static readonly int LargestVectorSize = 32; private static readonly int ElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64); public bool Succeeded { get; set; } = true; public void RunBasicScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario)); UInt64 value = TestLibrary.Generator.GetUInt64(); Vector256<UInt64> result = Vector256.CreateScalar(value); ValidateResult(result, value); } public void RunReflectionScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario)); UInt64 value = TestLibrary.Generator.GetUInt64(); object result = typeof(Vector256) .GetMethod(nameof(Vector256.CreateScalar), new Type[] { typeof(UInt64) }) .Invoke(null, new object[] { value }); ValidateResult((Vector256<UInt64>)(result), value); } private void ValidateResult(Vector256<UInt64> result, UInt64 expectedValue, [CallerMemberName] string method = "") { UInt64[] resultElements = new UInt64[ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref resultElements[0]), result); ValidateResult(resultElements, expectedValue, method); } private void ValidateResult(UInt64[] resultElements, UInt64 expectedValue, [CallerMemberName] string method = "") { bool succeeded = true; if (resultElements[0] != expectedValue) { succeeded = false; } else { for (var i = 1; i < ElementCount; i++) { if (resultElements[i] != 0) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"Vector256.CreateScalar(UInt64): {method} failed:"); TestLibrary.TestFramework.LogInformation($" value: {expectedValue}"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", resultElements)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.cs.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Podmínky alternativního výrazu nemohou být komentáře.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Podmíněný výraz (?(...)) je neplatný.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">Odkaz (?({0}) ) byl poškozen.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Alternace má nesprávně vytvořený odkaz.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Podmínky alternativního výrazu nezachytávají a nelze je pojmenovat.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Příliš mnoho znaků | v řetězci (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">Odkaz na nedefinovanou skupinu (?({0}) ).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Alternace obsahuje odkaz na nedefinovanou skupinu.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Cílové pole není dostatečně dlouhé, aby bylo možné zkopírovat všechny položky v kolekci. Zkontrolujte index a délku pole.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Počáteční index nemůže být menší než nula nebo větší než délka vstupu.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Neplatný název skupiny. Názvy skupin musí začínat písmenem.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Počet zachytávání nemůže být nulový.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Počet nemůže být menší než hodnota -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Výčet buď nebyl spuštěn, nebo již byl dokončen.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Odčítání musí být posledním prvkem ve třídě znaků.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Chyba analyzátoru regulárního výrazu {0} na posunu {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Data domény aplikace {0} obsahují neplatnou hodnotu nebo objekt {1} pro určení výchozího časového limitu porovnávání pro třídu System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Nedostatek uzavíracích závorek ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Příliš mnoho zavíracích závorek ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Nedostatek šestnáctkových číslic.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Vnitřní chyba v modulu ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Argument {0} nemůže mít nulovou délku.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Nerozpoznaný seskupovací konstrukt.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">Je požadována verze jazyku C# LangVersion 10 nebo vyšší.</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Zadaný regulární výraz je neplatný. {0}</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">Atribut RegexGeneratorAttribute je nesprávný.</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Neplatné použití RegexGenerator</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Neúplné uvození znaků \\p{X}.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Délka nemůže být menší než 0 nebo přesáhnout délku vstupu.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator nemohl vygenerovat úplnou zdrojovou implementaci zadaného regulárního výrazu, protože možnost není podporovaná nebo je regulární výraz příliš složitý. Implementace bude regulární výraz interpretovat za běhu.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Dosáhlo se omezení nástroje RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Neplatný vzor {0} u posunu {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Chybně naformátovaný pojmenovaný zpětný odkaz \\k&lt;...&gt;.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Chybně formátovaná řídicí sekvence znaků \\p{X}.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Řídicí znak chybí.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Na stejnou metodu se uplatnilo několik RegexGeneratorAttributes, ale je povolena jenom jedna.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Vnořený kvantifikátor {0}.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Vnořený kvantifikátor neobsahuje žádné závorky.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Výsledek nelze volat pro shodu, která se nezdařila.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Nahrazení regulárních výrazů pomocí substitucí skupin se u RegexOptions.NonBacktracking nepodporuje.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Kolekce je jen pro čtení.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Tato platforma nepodporuje zápis zkompilovaných regulárních výrazů do sestavení.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Před kvantifikátorem {x,y} není nic uvedeno.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Počty skupin digitalizace musí být menší nebo rovny hodnotě Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Vypršel časový limit modulu RegEx při pokusu o porovnání vzoru se vstupním řetězcem. K tomu může dojít z celé řady důvodů, mezi které patří velká velikost vstupních dat nebo nadměrné zpětné navracení způsobené vloženými kvantifikátory, zpětnými odkazy a dalšími faktory.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Metoda regulárního výrazu musí být částečná, bez parametrů, negenerická a musí vracet regulární výraz.</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Chyba vzorku pro náhradu.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Rozsah [x-y] je v obráceném pořadí.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">Rozsah {x,y}, kde x &gt; y, je neplatný.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Do rozsahu znaků nejde zahrnout třídu \\{0}.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Do rozsahu znaků nejde zahrnout třídu.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Odkaz na nedefinovaný název skupiny {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Odkaz na nedefinovaný název skupiny.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Odkaz na nedefinované číslo skupiny. Číslo skupiny: {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Odkaz na nedefinované číslo skupiny.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Znak \\ na konci vzorku je neplatný.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Nerozpoznaný řídicí znak.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Nerozpoznaná řídicí sekvence \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Neznámá vlastnost {0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Neznámá vlastnost Unicode vlastnosti.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Nedokončená [] sada.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Neukončený komentář (?#...).</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Podmínky alternativního výrazu nemohou být komentáře.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Podmíněný výraz (?(...)) je neplatný.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">Odkaz (?({0}) ) byl poškozen.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Alternace má nesprávně vytvořený odkaz.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Podmínky alternativního výrazu nezachytávají a nelze je pojmenovat.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Příliš mnoho znaků | v řetězci (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">Odkaz na nedefinovanou skupinu (?({0}) ).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Alternace obsahuje odkaz na nedefinovanou skupinu.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Cílové pole není dostatečně dlouhé, aby bylo možné zkopírovat všechny položky v kolekci. Zkontrolujte index a délku pole.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Počáteční index nemůže být menší než nula nebo větší než délka vstupu.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Neplatný název skupiny. Názvy skupin musí začínat písmenem.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Počet zachytávání nemůže být nulový.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Počet nemůže být menší než hodnota -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Výčet buď nebyl spuštěn, nebo již byl dokončen.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Odčítání musí být posledním prvkem ve třídě znaků.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Chyba analyzátoru regulárního výrazu {0} na posunu {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Data domény aplikace {0} obsahují neplatnou hodnotu nebo objekt {1} pro určení výchozího časového limitu porovnávání pro třídu System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Nedostatek uzavíracích závorek ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Příliš mnoho zavíracích závorek ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Nedostatek šestnáctkových číslic.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Vnitřní chyba v modulu ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Argument {0} nemůže mít nulovou délku.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Nerozpoznaný seskupovací konstrukt.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Zadaný regulární výraz je neplatný. {0}</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">Atribut RegexGeneratorAttribute je nesprávný.</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Neplatné použití RegexGenerator</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Neúplné uvození znaků \\p{X}.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Délka nemůže být menší než 0 nebo přesáhnout délku vstupu.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator nemohl vygenerovat úplnou zdrojovou implementaci zadaného regulárního výrazu, protože možnost není podporovaná nebo je regulární výraz příliš složitý. Implementace bude regulární výraz interpretovat za běhu.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Dosáhlo se omezení nástroje RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Neplatný vzor {0} u posunu {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Chybně naformátovaný pojmenovaný zpětný odkaz \\k&lt;...&gt;.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Chybně formátovaná řídicí sekvence znaků \\p{X}.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Řídicí znak chybí.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Na stejnou metodu se uplatnilo několik RegexGeneratorAttributes, ale je povolena jenom jedna.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Vnořený kvantifikátor {0}.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Vnořený kvantifikátor neobsahuje žádné závorky.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Výsledek nelze volat pro shodu, která se nezdařila.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Nahrazení regulárních výrazů pomocí substitucí skupin se u RegexOptions.NonBacktracking nepodporuje.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Kolekce je jen pro čtení.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Tato platforma nepodporuje zápis zkompilovaných regulárních výrazů do sestavení.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Před kvantifikátorem {x,y} není nic uvedeno.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Počty skupin digitalizace musí být menší nebo rovny hodnotě Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Vypršel časový limit modulu RegEx při pokusu o porovnání vzoru se vstupním řetězcem. K tomu může dojít z celé řady důvodů, mezi které patří velká velikost vstupních dat nebo nadměrné zpětné navracení způsobené vloženými kvantifikátory, zpětnými odkazy a dalšími faktory.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Metoda regulárního výrazu musí být částečná, bez parametrů, negenerická a musí vracet regulární výraz.</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Chyba vzorku pro náhradu.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Rozsah [x-y] je v obráceném pořadí.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">Rozsah {x,y}, kde x &gt; y, je neplatný.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Do rozsahu znaků nejde zahrnout třídu \\{0}.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Do rozsahu znaků nejde zahrnout třídu.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Odkaz na nedefinovaný název skupiny {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Odkaz na nedefinovaný název skupiny.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Odkaz na nedefinované číslo skupiny. Číslo skupiny: {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Odkaz na nedefinované číslo skupiny.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Znak \\ na konci vzorku je neplatný.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Nerozpoznaný řídicí znak.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Nerozpoznaná řídicí sekvence \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Neznámá vlastnost {0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Neznámá vlastnost Unicode vlastnosti.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Nedokončená [] sada.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Neukončený komentář (?#...).</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.de.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="de" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Alternierungsbedingungen können keine Kommentare sein.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Unzulässiger bedingter (?(...))-Ausdruck.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) falsch formatiert.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Der Wechsel weist einen ungültigen Verweis auf.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Alternierungsbedingungen werden nicht aufgefangen und können nicht benannt werden.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Zu viele | in (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) )-Verweis auf nicht definierte Gruppe.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Der Wechsel weist einen Verweis auf eine nicht definierte Gruppe auf.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Das Zielarray ist nicht lang genug, um alle Elemente in der Sammlung zu kopieren. Prüfen Sie den Index und die Länge des Arrays.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Der Startindex darf nicht kleiner als 0 oder größer als die Eingabelänge sein.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Ungültiger Gruppenname: Gruppennamen müssen mit einem Buchstaben beginnen.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Aufzeichnungsnummer darf nicht 0 (null) sein.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Die Anzahl darf nicht kleiner als -1 sein.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Entweder wurde die Enumeration noch nicht gestartet oder bereits beendet.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Eine Subtraktion muss das letzte Element in einer Zeichenklasse sein.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Analysefehler des regulären Ausdrucks "{0}" bei Offset {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain-Daten '{0}' enthalten einen ungültigen Wert oder ein ungültiges Objekt '{1}' für die Angabe eines übereinstimmenden Standardtimeouts für System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Nicht genügend )-Zeichen.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Zu viele )-Zeichen.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Nicht genügend Hexadezimalziffern.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Interner Fehler in ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Das Argument {0} darf nicht die Länge null haben.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Unbekanntes Gruppierungskonstrukt.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">C#-LangVersion von 10 oder höher ist erforderlich</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Der angegebene Regex ist ungültig. "{0}"</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">Das RegexGeneratorAttribute ist falsch formatiert.</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Ungültige RegexGenerator-Verwendung</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Unvollständiges \\p{X}-Escape-Zeichen.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Die Länge darf nicht kleiner als 0 sein oder die Eingabelänge überschreiten.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">Der RegexGenerator konnte aufgrund einer nicht unterstützten Option oder eines zu komplexen regulären Ausdrucks keine vollständige Quellimplementierung für den angegebenen regulären Ausdruck generieren. Die Implementierung wird den regulären Ausdruck zur Laufzeit interpretieren.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">RegexGenerator-Begrenzung erreicht.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Ungültiges Muster "{0}" bei Offset {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Falsch formatierter \\k&lt;...&gt; benannter Rückverweis.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Falsch formatiertes \\p{X}-Escape-Zeichen.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Fehlendes Steuerzeichen.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Mehrere RegexGeneratorAttributes wurden auf dieselbe Methode angewendet, aber nur eine ist zulässig</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Geschachtelter Quantifizierer „{0}“.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Geschachtelter Quantifizierer ohne Klammern.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Das Ergebnis kann nicht für eine fehlgeschlagene Übereinstimmung aufgerufen werden.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegEx-Ersätze durch Austausch von Gruppen werden bei RegexOptions.NonBacktracking nicht unterstützt.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Die Sammlung ist schreibgeschützt.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Diese Plattform unterstützt das Schreiben kompilierter regulärer Ausdrücke in eine Assembly nicht.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Quantifizierer {x,y} nach nichts.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Erfassungsgruppennummern müssen kleiner oder gleich Int32.MaxValue sein.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Zeitüberschreitung des RegEx-Moduls beim Versuch, ein Muster mit einer Eingabezeichenfolge in Übereinstimmung zu bringen. Dies kann viele Ursachen haben, darunter sehr große Eingaben oder übermäßige Rückverfolgung aufgrund von geschachtelten Quantifizierern, Rückverweisen und anderen Faktoren.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Die Regex-Methode muss partiell, parameterlos, nicht generisch sein und Regex zurückgeben.</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Ersetzungsmusterfehler.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y]-Bereich in umgekehrter Reihenfolge.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">Unzulässige {x,y} mit x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Die Klasse \\{0} kann nicht in den Zeichenbereich eingeschlossen werden.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Die Klasse kann nicht in den Zeichenbereich eingeschlossen werden.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Verweis auf nicht definierten Gruppennamen „{0}“.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Verweis auf nicht definierten Gruppennamen.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Verweis auf die nicht definierte Gruppenzahl {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Verweis auf nicht definierte Gruppennummer.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Unzulässiger \\ am Ende des Musters.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Unbekanntes Steuerzeichen.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Unbekannte Escapesequenz \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Unbekannte Eigenschaft '{0}'.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Unbekannte Eigenschaft Unicode-Eigenschaft.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Nicht abgeschlossener []-Satz.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Nicht abgeschlossener (?#...)-Kommentar.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="de" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Alternierungsbedingungen können keine Kommentare sein.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Unzulässiger bedingter (?(...))-Ausdruck.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) falsch formatiert.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Der Wechsel weist einen ungültigen Verweis auf.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Alternierungsbedingungen werden nicht aufgefangen und können nicht benannt werden.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Zu viele | in (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) )-Verweis auf nicht definierte Gruppe.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Der Wechsel weist einen Verweis auf eine nicht definierte Gruppe auf.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Das Zielarray ist nicht lang genug, um alle Elemente in der Sammlung zu kopieren. Prüfen Sie den Index und die Länge des Arrays.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Der Startindex darf nicht kleiner als 0 oder größer als die Eingabelänge sein.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Ungültiger Gruppenname: Gruppennamen müssen mit einem Buchstaben beginnen.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Aufzeichnungsnummer darf nicht 0 (null) sein.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Die Anzahl darf nicht kleiner als -1 sein.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Entweder wurde die Enumeration noch nicht gestartet oder bereits beendet.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Eine Subtraktion muss das letzte Element in einer Zeichenklasse sein.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Analysefehler des regulären Ausdrucks "{0}" bei Offset {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain-Daten '{0}' enthalten einen ungültigen Wert oder ein ungültiges Objekt '{1}' für die Angabe eines übereinstimmenden Standardtimeouts für System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Nicht genügend )-Zeichen.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Zu viele )-Zeichen.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Nicht genügend Hexadezimalziffern.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Interner Fehler in ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Das Argument {0} darf nicht die Länge null haben.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Unbekanntes Gruppierungskonstrukt.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Der angegebene Regex ist ungültig. "{0}"</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">Das RegexGeneratorAttribute ist falsch formatiert.</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Ungültige RegexGenerator-Verwendung</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Unvollständiges \\p{X}-Escape-Zeichen.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Die Länge darf nicht kleiner als 0 sein oder die Eingabelänge überschreiten.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">Der RegexGenerator konnte aufgrund einer nicht unterstützten Option oder eines zu komplexen regulären Ausdrucks keine vollständige Quellimplementierung für den angegebenen regulären Ausdruck generieren. Die Implementierung wird den regulären Ausdruck zur Laufzeit interpretieren.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">RegexGenerator-Begrenzung erreicht.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Ungültiges Muster "{0}" bei Offset {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Falsch formatierter \\k&lt;...&gt; benannter Rückverweis.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Falsch formatiertes \\p{X}-Escape-Zeichen.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Fehlendes Steuerzeichen.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Mehrere RegexGeneratorAttributes wurden auf dieselbe Methode angewendet, aber nur eine ist zulässig</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Geschachtelter Quantifizierer „{0}“.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Geschachtelter Quantifizierer ohne Klammern.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Das Ergebnis kann nicht für eine fehlgeschlagene Übereinstimmung aufgerufen werden.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegEx-Ersätze durch Austausch von Gruppen werden bei RegexOptions.NonBacktracking nicht unterstützt.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Die Sammlung ist schreibgeschützt.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Diese Plattform unterstützt das Schreiben kompilierter regulärer Ausdrücke in eine Assembly nicht.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Quantifizierer {x,y} nach nichts.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Erfassungsgruppennummern müssen kleiner oder gleich Int32.MaxValue sein.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Zeitüberschreitung des RegEx-Moduls beim Versuch, ein Muster mit einer Eingabezeichenfolge in Übereinstimmung zu bringen. Dies kann viele Ursachen haben, darunter sehr große Eingaben oder übermäßige Rückverfolgung aufgrund von geschachtelten Quantifizierern, Rückverweisen und anderen Faktoren.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Die Regex-Methode muss partiell, parameterlos, nicht generisch sein und Regex zurückgeben.</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Ersetzungsmusterfehler.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y]-Bereich in umgekehrter Reihenfolge.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">Unzulässige {x,y} mit x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Die Klasse \\{0} kann nicht in den Zeichenbereich eingeschlossen werden.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Die Klasse kann nicht in den Zeichenbereich eingeschlossen werden.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Verweis auf nicht definierten Gruppennamen „{0}“.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Verweis auf nicht definierten Gruppennamen.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Verweis auf die nicht definierte Gruppenzahl {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Verweis auf nicht definierte Gruppennummer.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Unzulässiger \\ am Ende des Musters.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Unbekanntes Steuerzeichen.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Unbekannte Escapesequenz \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Unbekannte Eigenschaft '{0}'.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Unbekannte Eigenschaft Unicode-Eigenschaft.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Nicht abgeschlossener []-Satz.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Nicht abgeschlossener (?#...)-Kommentar.</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.es.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="es" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Las condiciones de alternación no pueden ser comentarios.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Expresión (?(...)) condicional no válida.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(? ({0}) ) con formato incorrecto.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">La alternancia tiene una referencia con formato incorrecto.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Error al representar el control.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Demasiadas | en (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">Referencia (?({0}) ) a un grupo no definido.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">La alternancia tiene una referencia a un grupo no definido.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">La matriz de destino no es lo suficientemente larga para copiar todos los elementos de la colección. Compruebe el índice y la longitud de la matriz.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">El índice inicial no puede ser inferior a 0 ni superior a la longitud de entrada.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nombre de grupo no válido: los nombres de grupos deben empezar con un carácter de palabra.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">El número de capturas no puede ser cero.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">El recuento no puede ser inferior a -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">La enumeración no ha empezado o ya ha finalizado.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">La resta debe ser el último elemento de una clase de caracteres.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Error del analizador de expresiones regulares '{0}' en el desplazamiento {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Los datos de AppDomain '{0}' contienen el valor no válido o el objeto '{1}' para especificar un tiempo de espera coincidente predeterminado para System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">No hay suficientes ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Demasiados ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Dígitos hexadecimales insuficientes.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Error interno en ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">El argumento {0} no puede ser de longitud cero.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Construcción de agrupación no reconocida.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">Se requiere C# LangVersion de 10 o superior.</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">La expresión regular especificada no es válida. '{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute tiene un formato incorrecto</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Uso de RegexGenerator no válido</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Escape de caracteres \\p{X} incompleto.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">La longitud no puede ser inferior a 0 ni superar la longitud de entrada.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator no pudo generar una implementación de origen completa para la expresión regular especificada debido a una opción no admitida o a una expresión regular demasiado compleja. La implementación interpretará la expresión regular en tiempo de ejecución.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Se alcanzó la limitación de RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Patrón '{0}' no válido en el desplazamiento {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Referencia inversa \\k&lt;...&gt; con nombre en formato incorrecto.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Escape de caracteres \\p{X} con formato incorrecto.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Falta el carácter de control.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Se aplicaron varios RegexGeneratorAttributes al mismo método, pero solo se permite uno.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Cuantificador anidado '{0}'.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">El cuantificador anidado no está entre paréntesis.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">No se puede llamar al resultado si no se encuentra ninguna coincidencia.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Los reemplazos de regex con sustituciones de grupos no se admiten con RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">La colección es de sólo lectura.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Esta plataforma no admite la escritura de expresiones regulares compiladas en un ensamblado.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Cuantificador {x,y} después de nada.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Los números del grupo de capturas deben ser menores o iguales que Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Se agotó el tiempo de espera mientras el motor de RegEx intentaba comparar una cadena de entrada con un patrón. Esto puede deberse a muchos motivos, como la especificación de cadenas de entrada muy grandes o búsquedas hacia atrás excesivas causadas por cuantificadores anidados, referencias inversas y otros factores.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">El método regex debe ser parcial, sin parámetros, no genérico y devolver Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Error de patrón de reemplazo.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Intervalo [x-y] en orden inverso.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} no válidos con x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">No se puede incluir la clase \\{0} en el intervalo de caracteres.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">No se puede incluir la clase en el intervalo de caracteres.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Referencia al nombre de grupo no definido '{0}'.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Referencia al nombre de grupo no definido.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Referencia al número de grupo sin definir {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Referencia al número de grupo no definido.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">\\ no válido al final del patrón.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Carácter de control no reconocido.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Secuencia de escape no reconocida \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Propiedad desconocida '{0}'.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Propiedad Unicode de propiedad desconocida.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Conjunto [] sin terminar.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Comentario (?#...) sin terminar.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="es" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Las condiciones de alternación no pueden ser comentarios.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Expresión (?(...)) condicional no válida.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(? ({0}) ) con formato incorrecto.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">La alternancia tiene una referencia con formato incorrecto.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Error al representar el control.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Demasiadas | en (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">Referencia (?({0}) ) a un grupo no definido.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">La alternancia tiene una referencia a un grupo no definido.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">La matriz de destino no es lo suficientemente larga para copiar todos los elementos de la colección. Compruebe el índice y la longitud de la matriz.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">El índice inicial no puede ser inferior a 0 ni superior a la longitud de entrada.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nombre de grupo no válido: los nombres de grupos deben empezar con un carácter de palabra.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">El número de capturas no puede ser cero.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">El recuento no puede ser inferior a -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">La enumeración no ha empezado o ya ha finalizado.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">La resta debe ser el último elemento de una clase de caracteres.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Error del analizador de expresiones regulares '{0}' en el desplazamiento {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Los datos de AppDomain '{0}' contienen el valor no válido o el objeto '{1}' para especificar un tiempo de espera coincidente predeterminado para System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">No hay suficientes ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Demasiados ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Dígitos hexadecimales insuficientes.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Error interno en ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">El argumento {0} no puede ser de longitud cero.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Construcción de agrupación no reconocida.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">La expresión regular especificada no es válida. '{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute tiene un formato incorrecto</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Uso de RegexGenerator no válido</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Escape de caracteres \\p{X} incompleto.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">La longitud no puede ser inferior a 0 ni superar la longitud de entrada.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator no pudo generar una implementación de origen completa para la expresión regular especificada debido a una opción no admitida o a una expresión regular demasiado compleja. La implementación interpretará la expresión regular en tiempo de ejecución.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Se alcanzó la limitación de RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Patrón '{0}' no válido en el desplazamiento {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Referencia inversa \\k&lt;...&gt; con nombre en formato incorrecto.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Escape de caracteres \\p{X} con formato incorrecto.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Falta el carácter de control.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Se aplicaron varios RegexGeneratorAttributes al mismo método, pero solo se permite uno.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Cuantificador anidado '{0}'.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">El cuantificador anidado no está entre paréntesis.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">No se puede llamar al resultado si no se encuentra ninguna coincidencia.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Los reemplazos de regex con sustituciones de grupos no se admiten con RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">La colección es de sólo lectura.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Esta plataforma no admite la escritura de expresiones regulares compiladas en un ensamblado.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Cuantificador {x,y} después de nada.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Los números del grupo de capturas deben ser menores o iguales que Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Se agotó el tiempo de espera mientras el motor de RegEx intentaba comparar una cadena de entrada con un patrón. Esto puede deberse a muchos motivos, como la especificación de cadenas de entrada muy grandes o búsquedas hacia atrás excesivas causadas por cuantificadores anidados, referencias inversas y otros factores.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">El método regex debe ser parcial, sin parámetros, no genérico y devolver Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Error de patrón de reemplazo.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Intervalo [x-y] en orden inverso.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} no válidos con x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">No se puede incluir la clase \\{0} en el intervalo de caracteres.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">No se puede incluir la clase en el intervalo de caracteres.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Referencia al nombre de grupo no definido '{0}'.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Referencia al nombre de grupo no definido.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Referencia al número de grupo sin definir {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Referencia al número de grupo no definido.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">\\ no válido al final del patrón.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Carácter de control no reconocido.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Secuencia de escape no reconocida \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Propiedad desconocida '{0}'.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Propiedad Unicode de propiedad desconocida.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Conjunto [] sin terminar.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Comentario (?#...) sin terminar.</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.fr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Les conditions d'alternative ne peuvent pas être des commentaires.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Expression conditionnelle (?(...)) non conforme.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) malformé.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">L’alternative a une référence malformée.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Les conditions d'alternative ne capturent pas et ne peuvent pas être nommées.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Trop de | dans (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) référence à un groupe non défini.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">L’alternative a une référence à un groupe non défini.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">La taille du tableau de destination ne permet pas de copier tous les éléments de la collection. Vérifiez l'index et la longueur du tableau.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">L'index de début ne peut pas être inférieur à 0 ou supérieur à la longueur d'entrée.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nom de groupe non valide : les noms de groupes doivent commencer par un caractère alphabétique.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Le nombre de captures ne peut pas être égal à zéro.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Le nombre ne peut pas être inférieur à -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">L'énumération n'a pas commencé ou est déjà terminée.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Un retrait doit être le dernier élément dans une classe de caractères.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Erreur de l’analyseur d’expression régulière « {0} » au décalage {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Les données AppDomain « {0} » contiennent une valeur ou un objet « {1} » incorrect pour la spécification d'un délai de mise en correspondance par défaut pour System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Nombre de ) insuffisant.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Trop de ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Chiffres hexadécimaux insuffisants.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Erreur interne dans ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">La valeur de l’argument {0} ne peut pas être nulle.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Construction de regroupement non reconnue.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">C# LangVersion supérieur ou égal à 10 est requis</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">L’expression régulière spécifiée n’est pas valide. « {0} »</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute est malformé</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Utilisation de RegexGenerator non valide</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Échappement de caractère \\p{X} incomplet.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">La longueur ne peut pas être inférieure à 0 ou supérieure à la longueur d'entrée.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator n’a pas pu générer d’implémentation source complète pour l’expression régulière spécifiée en raison d’une option non prise en charge ou d’une expression régulière trop complexe. L’implémentation interprète l’expression régulière au moment de l’exécution.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Limite RegexGenerator atteinte</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Modèle « {0} » non valide au niveau du décalage {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Référence arrière nommée \\k&lt;...&gt; maformée.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Échappement de caractère \\p{X} malformé.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Caractère de contrôle manquant.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Plusieurs RegexGeneratorAttributes ont été appliqués à la même méthode, alors qu’un seul est autorisé</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Quantificateur imbriqué « {0} ».</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Quantificateur imbriqué sans parenthèse.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Le résultat ne peut pas être appelé sur un Match ayant échoué.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Les remplacements d'expressions régulières avec des substitutions de groupes ne sont pas pris en charge avec RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">La collection est en lecture seule.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Cette plateforme ne prend pas en charge l’écriture d’expressions régulières compilées dans un assembly.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Quantificateur {x,y} ne suivant rien.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Les nombres de groupes de capture doivent être inférieurs ou égaux à Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Le délai d'attente du moteur RegEx a expiré pendant la tentative d'appariement d'un modèle avec une chaîne d'entrée. Ce problème peut se produire pour de nombreuses raisons, notamment en cas d'entrées volumineuses ou de retour sur trace excessif causé par les quantificateurs imbriqués, les références arrière et d'autres facteurs.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">La méthode Regex doit être partielle, sans paramètre, non générique, et renvoyer une expression régulière</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Erreur de modèle de remplacement.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Plage [x-y] en ordre inverse.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} non conforme avec x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Impossible d'inclure la classe \\{0} dans la plage de caractères.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Impossible d'inclure la classe dans la plage de caractères.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Référence au nom de groupe non défini « {0} ».</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Référence au nom de groupe non défini.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Référence à un numéro de groupe non défini {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Référence à un numéro de groupe non défini.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">\\ non conforme à la fin du modèle.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Caractère de contrôle non reconnu.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Séquence d'échappement non reconnue \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Propriété inconnue « {0} ».</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Propriété Unicode inconnue.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Ensemble [] inachevé.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Commentaire (?#...) inachevé.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Les conditions d'alternative ne peuvent pas être des commentaires.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Expression conditionnelle (?(...)) non conforme.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) malformé.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">L’alternative a une référence malformée.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Les conditions d'alternative ne capturent pas et ne peuvent pas être nommées.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Trop de | dans (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) référence à un groupe non défini.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">L’alternative a une référence à un groupe non défini.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">La taille du tableau de destination ne permet pas de copier tous les éléments de la collection. Vérifiez l'index et la longueur du tableau.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">L'index de début ne peut pas être inférieur à 0 ou supérieur à la longueur d'entrée.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nom de groupe non valide : les noms de groupes doivent commencer par un caractère alphabétique.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Le nombre de captures ne peut pas être égal à zéro.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Le nombre ne peut pas être inférieur à -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">L'énumération n'a pas commencé ou est déjà terminée.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Un retrait doit être le dernier élément dans une classe de caractères.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Erreur de l’analyseur d’expression régulière « {0} » au décalage {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Les données AppDomain « {0} » contiennent une valeur ou un objet « {1} » incorrect pour la spécification d'un délai de mise en correspondance par défaut pour System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Nombre de ) insuffisant.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Trop de ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Chiffres hexadécimaux insuffisants.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Erreur interne dans ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">La valeur de l’argument {0} ne peut pas être nulle.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Construction de regroupement non reconnue.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">L’expression régulière spécifiée n’est pas valide. « {0} »</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute est malformé</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Utilisation de RegexGenerator non valide</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Échappement de caractère \\p{X} incomplet.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">La longueur ne peut pas être inférieure à 0 ou supérieure à la longueur d'entrée.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator n’a pas pu générer d’implémentation source complète pour l’expression régulière spécifiée en raison d’une option non prise en charge ou d’une expression régulière trop complexe. L’implémentation interprète l’expression régulière au moment de l’exécution.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Limite RegexGenerator atteinte</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Modèle « {0} » non valide au niveau du décalage {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Référence arrière nommée \\k&lt;...&gt; maformée.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Échappement de caractère \\p{X} malformé.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Caractère de contrôle manquant.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Plusieurs RegexGeneratorAttributes ont été appliqués à la même méthode, alors qu’un seul est autorisé</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Quantificateur imbriqué « {0} ».</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Quantificateur imbriqué sans parenthèse.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Le résultat ne peut pas être appelé sur un Match ayant échoué.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Les remplacements d'expressions régulières avec des substitutions de groupes ne sont pas pris en charge avec RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">La collection est en lecture seule.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Cette plateforme ne prend pas en charge l’écriture d’expressions régulières compilées dans un assembly.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Quantificateur {x,y} ne suivant rien.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Les nombres de groupes de capture doivent être inférieurs ou égaux à Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Le délai d'attente du moteur RegEx a expiré pendant la tentative d'appariement d'un modèle avec une chaîne d'entrée. Ce problème peut se produire pour de nombreuses raisons, notamment en cas d'entrées volumineuses ou de retour sur trace excessif causé par les quantificateurs imbriqués, les références arrière et d'autres facteurs.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">La méthode Regex doit être partielle, sans paramètre, non générique, et renvoyer une expression régulière</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Erreur de modèle de remplacement.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Plage [x-y] en ordre inverse.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} non conforme avec x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Impossible d'inclure la classe \\{0} dans la plage de caractères.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Impossible d'inclure la classe dans la plage de caractères.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Référence au nom de groupe non défini « {0} ».</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Référence au nom de groupe non défini.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Référence à un numéro de groupe non défini {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Référence à un numéro de groupe non défini.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">\\ non conforme à la fin du modèle.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Caractère de contrôle non reconnu.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Séquence d'échappement non reconnue \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Propriété inconnue « {0} ».</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Propriété Unicode inconnue.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Ensemble [] inachevé.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Commentaire (?#...) inachevé.</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.it.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="it" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Le condizioni di alternanza non possono essere commenti.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Espressione condizionale (?(...)) non valida.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) non valido.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">L'alternanza contiene un riferimento non valido.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Le condizioni di alternanza non consentono l'acquisizione e non possono essere denominate.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Troppi | in (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ). Riferimento a gruppo indefinito.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">L'alternanza contiene un riferimento a un gruppo non definito.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">La lunghezza della matrice di destinazione non è sufficiente per copiare tutti gli elementi della raccolta. Controllare l'indice e la lunghezza della matrice.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">L'indirizzo di inizio non può essere minore di zero o maggiore della lunghezza di input.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nome di gruppo non valido: i nomi di gruppo devono iniziare con un carattere alfanumerico.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Il numero di acquisizioni non può essere zero.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Il valore di count non può essere minore di -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Enumerazione non avviata o già terminata.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">L'ultimo elemento di una classe di caratteri deve essere una sottrazione.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Errore del parser dell'espressione regolare '{0}' alla posizione di offset {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">I dati '{0}' di AppDomain contengono il valore o l'oggetto non valido '{1}' per specificare un timeout di corrispondenza predefinito per System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Parentesi di chiusura insufficienti.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Troppe parentesi di chiusura.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Cifre esadecimali insufficienti.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Errore interno in ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">L'argomento {0} non può avere lunghezza zero.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Costrutto di raggruppamento non riconosciuto.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">È richiesta la versione 10 o successiva del linguaggio C#</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">L'espressione regolare specificata non è valida. '{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute non è valido</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Utilizzo di RegexGenerator non valido</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Sequenza di caratteri di escape \\p{X} incompleta.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Lenght non può essere minore di zero o superare la lunghezza di input.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator non è riuscito a generare un'implementazione di origine completa per l'espressione regolare specificata a causa di un'opzione non supportata o di un'espressione regolare troppo complessa. L'implementazione interpreterà l'espressione regolare in fase di esecuzione.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">È stata raggiunta la limitazione di RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Criterio '{0}' non valido alla posizione di offset {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Il backreference denominato \\k&lt;...&gt; non è valido.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Sequenza di caratteri di escape \\p{X} non valida.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Carattere di controllo mancante.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Allo stesso metodo sono stati applicati più RegexGeneratorAttribute, ma ne è consentito solo uno</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Quantificatore '{0}' annidato.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Quantificatore annidato non racchiuso tra parentesi.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Impossibile chiamare Result su un Match non riuscito.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Le sostituzioni regex con sostituzioni di gruppi non sono supportate con RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">La raccolta è di sola lettura.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Questa piattaforma non supporta la scrittura di espressioni regolari compilate in un assembly.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Il quantificatore {x,y} non segue alcun elemento.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">I numeri del gruppo Capture devono essere minori o uguali a Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Timeout del motore RegEx durante il tentativo di corrispondenza di un criterio a una stringa di input. Il timeout si può verificare per molti motivi, compresi gli input molto grandi o un eccessivo backtracking causato dai quantificatori annidati, backreference e altri fattori.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Il metodo Regex deve essere parziale, senza parametri, non generico e restituire Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Errore nel criterio di sostituzione.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Intervallo [x-y] in ordine inverso.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} non valido con x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Non è possibile includere la classe \\{0} nell'intervallo di caratteri.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Non è possibile includere la classe nell'intervallo di caratteri.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Riferimento a nome di gruppo indefinito: '{0}'.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Riferimento a nome di gruppo indefinito.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Riferimento a numero di gruppo indefinito: {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Riferimento a numero di gruppo indefinito.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Carattere \\ non valido alla fine del criterio.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Carattere di controllo non riconosciuto.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Sequenza di escape non riconosciuta: \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Proprietà '{0}' sconosciuta.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Proprietà Unicode della proprietà sconosciuta.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Set [] senza terminazione.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Commento (?#...) non terminato.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="it" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Le condizioni di alternanza non possono essere commenti.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Espressione condizionale (?(...)) non valida.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) non valido.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">L'alternanza contiene un riferimento non valido.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Le condizioni di alternanza non consentono l'acquisizione e non possono essere denominate.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Troppi | in (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ). Riferimento a gruppo indefinito.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">L'alternanza contiene un riferimento a un gruppo non definito.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">La lunghezza della matrice di destinazione non è sufficiente per copiare tutti gli elementi della raccolta. Controllare l'indice e la lunghezza della matrice.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">L'indirizzo di inizio non può essere minore di zero o maggiore della lunghezza di input.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nome di gruppo non valido: i nomi di gruppo devono iniziare con un carattere alfanumerico.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Il numero di acquisizioni non può essere zero.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Il valore di count non può essere minore di -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Enumerazione non avviata o già terminata.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">L'ultimo elemento di una classe di caratteri deve essere una sottrazione.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Errore del parser dell'espressione regolare '{0}' alla posizione di offset {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">I dati '{0}' di AppDomain contengono il valore o l'oggetto non valido '{1}' per specificare un timeout di corrispondenza predefinito per System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Parentesi di chiusura insufficienti.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Troppe parentesi di chiusura.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Cifre esadecimali insufficienti.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Errore interno in ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">L'argomento {0} non può avere lunghezza zero.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Costrutto di raggruppamento non riconosciuto.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">L'espressione regolare specificata non è valida. '{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute non è valido</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Utilizzo di RegexGenerator non valido</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Sequenza di caratteri di escape \\p{X} incompleta.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Lenght non può essere minore di zero o superare la lunghezza di input.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator non è riuscito a generare un'implementazione di origine completa per l'espressione regolare specificata a causa di un'opzione non supportata o di un'espressione regolare troppo complessa. L'implementazione interpreterà l'espressione regolare in fase di esecuzione.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">È stata raggiunta la limitazione di RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Criterio '{0}' non valido alla posizione di offset {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Il backreference denominato \\k&lt;...&gt; non è valido.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Sequenza di caratteri di escape \\p{X} non valida.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Carattere di controllo mancante.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Allo stesso metodo sono stati applicati più RegexGeneratorAttribute, ma ne è consentito solo uno</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Quantificatore '{0}' annidato.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Quantificatore annidato non racchiuso tra parentesi.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Impossibile chiamare Result su un Match non riuscito.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Le sostituzioni regex con sostituzioni di gruppi non sono supportate con RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">La raccolta è di sola lettura.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Questa piattaforma non supporta la scrittura di espressioni regolari compilate in un assembly.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Il quantificatore {x,y} non segue alcun elemento.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">I numeri del gruppo Capture devono essere minori o uguali a Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Timeout del motore RegEx durante il tentativo di corrispondenza di un criterio a una stringa di input. Il timeout si può verificare per molti motivi, compresi gli input molto grandi o un eccessivo backtracking causato dai quantificatori annidati, backreference e altri fattori.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Il metodo Regex deve essere parziale, senza parametri, non generico e restituire Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Errore nel criterio di sostituzione.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Intervallo [x-y] in ordine inverso.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} non valido con x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Non è possibile includere la classe \\{0} nell'intervallo di caratteri.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Non è possibile includere la classe nell'intervallo di caratteri.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Riferimento a nome di gruppo indefinito: '{0}'.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Riferimento a nome di gruppo indefinito.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Riferimento a numero di gruppo indefinito: {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Riferimento a numero di gruppo indefinito.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Carattere \\ non valido alla fine del criterio.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Carattere di controllo non riconosciuto.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Sequenza di escape non riconosciuta: \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Proprietà '{0}' sconosciuta.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Proprietà Unicode della proprietà sconosciuta.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Set [] senza terminazione.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Commento (?#...) non terminato.</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ja.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">選択条件をコメントにできません。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">条件付き (?(...)) 表現が無効です。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) の形式に誤りがあります。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">代替の参照の形式に誤りがあります。</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">選択条件が捕捉されないため、名前を指定できません。</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">(?()|) 内の | が多すぎます。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">未定義のグループへの (?({0}) ) 参照です。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">代替には未定義のグループへの参照が含まれています。</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">ターゲット配列の長さが不足しているため、コレクション内のすべての項目をコピーできません。配列のインデックスと長さをご確認ください。</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">開始インデックスに 0 より小さい値または入力長より大きい値を指定することはできません。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">グループ名が無効です。グループ名は語句で始めなければなりません。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">キャプチャ番号を 0 にすることはできません。</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">カウントを -1 未満にすることはできません。</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">列挙が開始していないか、または既に完了しています。</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">減算は、文字クラスの最後の要素でなければなりません。</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">オフセット {1} の正規表現パーサー エラー '{0}'。</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain データ '{0}' には、System.Text.RegularExpressions.Regex の既定の適切なタイムアウトを指定するうえで無効な値またはオブジェクト '{1}' が含まれています。</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">)' が足りません。</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">)' が多すぎます。</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">不十分な 16 進数の数字です。</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex に内部エラーが発生しました。</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">引数 {0} は長さゼロにすることはできません。</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">認識されないグループ化構成体です。</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">C# LangVersion 10 以上が必要です</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">指定された正規表現が無効です。'{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute の形式に誤りがあります</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">RegexGenerator の使用法が無効です</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">不完全な \\p{X} 文字エスケープです。</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">長さを 0 未満に設定したり、入力の長さを超えることはできません。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">オプションがサポートされていないか、または正規表現が複雑すぎるため、RegexGenerator は指定された正規表現の完全なソース実装を生成できませんでした。 実装では、実行時に正規表現が解釈されます。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">RegexGenerator の制限に達しました。</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">オフセット {1} に無効なパターン '{0}' があります。{2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">形式に誤りがある \\k&lt;...&gt; 名前付き逆参照です。</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">形式に誤りがある \\p{X} エスケープ文字です。</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">制御文字がありません。</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">複数の RegexGeneratorAttributes が同じメソッドに適用されましたが、許可されるのは 1 つだけです</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">入れ子になった量指定子 '{0}' です。</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">入れ子になった量指定子はかっこで囲まれません。</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">失敗した Match で Result を呼び出すことはできません。</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegexOptions.NonBacktracking では、グループの置換による正規表現の置換はサポートされていません。</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">コレクションは読み取り専用です。</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">このプラットフォームでは、コンパイルされた正規表現をアセンブリに書き込むことはサポートされていません。</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">量指定子 {x,y} の前に何もありません。</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">キャプチャ グループ数は、Int32.MaxValue 以下でなければなりません。</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">パターンと入力文字列との照合中に、RegEx エンジンがタイムアウトしました。これは、非常に大きな入力、入れ子になった量指定子によって生じた過剰なバックトラッキング、前方参照などの要因を含む、さまざまな原因によって発生する可能性があります。</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">正規表現メソッドは、部分的、パラメーターなし、非ジェネリックであり、正規表現を返す必要があります</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">置換パターン エラーです。</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y] 範囲の順序が逆です。</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} が無効です。x が y よりも大きい値です。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">文字範囲にクラス \\{0} を含めることはできません。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">文字範囲にクラスを含めることはできません。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">未定義のグループ名 '{0}' への参照です。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">未定義のグループ名への参照です。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">未定義のグループ番号 {0} が参照されました。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">未定義のグループ番号への参照です。</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">パターンの末尾に無効な \\ があります。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">認識されない制御文字です。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">認識できないエスケープ シーケンス \\{0} です。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">不明なプロパティ '{0}' です。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">不明なプロパティの Unicode プロパティです。</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">未終了の [] セットです。</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">未終了の (?#...) コメントです。</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">選択条件をコメントにできません。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">条件付き (?(...)) 表現が無効です。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) の形式に誤りがあります。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">代替の参照の形式に誤りがあります。</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">選択条件が捕捉されないため、名前を指定できません。</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">(?()|) 内の | が多すぎます。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">未定義のグループへの (?({0}) ) 参照です。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">代替には未定義のグループへの参照が含まれています。</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">ターゲット配列の長さが不足しているため、コレクション内のすべての項目をコピーできません。配列のインデックスと長さをご確認ください。</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">開始インデックスに 0 より小さい値または入力長より大きい値を指定することはできません。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">グループ名が無効です。グループ名は語句で始めなければなりません。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">キャプチャ番号を 0 にすることはできません。</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">カウントを -1 未満にすることはできません。</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">列挙が開始していないか、または既に完了しています。</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">減算は、文字クラスの最後の要素でなければなりません。</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">オフセット {1} の正規表現パーサー エラー '{0}'。</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain データ '{0}' には、System.Text.RegularExpressions.Regex の既定の適切なタイムアウトを指定するうえで無効な値またはオブジェクト '{1}' が含まれています。</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">)' が足りません。</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">)' が多すぎます。</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">不十分な 16 進数の数字です。</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex に内部エラーが発生しました。</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">引数 {0} は長さゼロにすることはできません。</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">認識されないグループ化構成体です。</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">指定された正規表現が無効です。'{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute の形式に誤りがあります</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">RegexGenerator の使用法が無効です</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">不完全な \\p{X} 文字エスケープです。</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">長さを 0 未満に設定したり、入力の長さを超えることはできません。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">オプションがサポートされていないか、または正規表現が複雑すぎるため、RegexGenerator は指定された正規表現の完全なソース実装を生成できませんでした。 実装では、実行時に正規表現が解釈されます。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">RegexGenerator の制限に達しました。</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">オフセット {1} に無効なパターン '{0}' があります。{2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">形式に誤りがある \\k&lt;...&gt; 名前付き逆参照です。</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">形式に誤りがある \\p{X} エスケープ文字です。</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">制御文字がありません。</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">複数の RegexGeneratorAttributes が同じメソッドに適用されましたが、許可されるのは 1 つだけです</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">入れ子になった量指定子 '{0}' です。</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">入れ子になった量指定子はかっこで囲まれません。</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">失敗した Match で Result を呼び出すことはできません。</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegexOptions.NonBacktracking では、グループの置換による正規表現の置換はサポートされていません。</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">コレクションは読み取り専用です。</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">このプラットフォームでは、コンパイルされた正規表現をアセンブリに書き込むことはサポートされていません。</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">量指定子 {x,y} の前に何もありません。</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">キャプチャ グループ数は、Int32.MaxValue 以下でなければなりません。</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">パターンと入力文字列との照合中に、RegEx エンジンがタイムアウトしました。これは、非常に大きな入力、入れ子になった量指定子によって生じた過剰なバックトラッキング、前方参照などの要因を含む、さまざまな原因によって発生する可能性があります。</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">正規表現メソッドは、部分的、パラメーターなし、非ジェネリックであり、正規表現を返す必要があります</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">置換パターン エラーです。</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y] 範囲の順序が逆です。</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} が無効です。x が y よりも大きい値です。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">文字範囲にクラス \\{0} を含めることはできません。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">文字範囲にクラスを含めることはできません。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">未定義のグループ名 '{0}' への参照です。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">未定義のグループ名への参照です。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">未定義のグループ番号 {0} が参照されました。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">未定義のグループ番号への参照です。</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">パターンの末尾に無効な \\ があります。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">認識されない制御文字です。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">認識できないエスケープ シーケンス \\{0} です。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">不明なプロパティ '{0}' です。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">不明なプロパティの Unicode プロパティです。</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">未終了の [] セットです。</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">未終了の (?#...) コメントです。</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ko.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">교체 조건은 주석이 될 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">조건(?(...))식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">대체에 잘못된 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">교체 조건은 캡처하지 않고 이름을 지정할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">(?()|)에 | 기호가 너무 많습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) 정의되지 않은 그룹을 참조합니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">대체에는 정의되지 않은 그룹에 대한 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">대상 배열이 컬렉션의 모든 항목을 복사하기에 충분히 길지 않습니다. 배열 인덱스와 길이를 확인하세요.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">시작 인덱스는 0보다 작거나 입력 길이보다 클 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">그룹 이름이 잘못되었습니다. 그룹 이름은 문자로 시작해야 합니다.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">캡처 번호는 0일 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">개수는 -1보다 작을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">열거가 시작되지 않았거나 이미 완료되었습니다.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">빼기는 문자 클래스의 마지막 요소여야 합니다.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">오프셋 {1}에서 정규식 파서 오류 '{0}'.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain 데이터 '{0}'에 System.Text.RegularExpressions.Regex에 대한 기본 일치 제한 시간을 지정하기 위한 잘못된 값 또는 개체 '{1}'이(가) 있습니다.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">)가 부족합니다.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">)가 너무 많습니다.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">16진수가 충분하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex에 내부 오류가 있습니다.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">인수 {0}은(는) 길이가 0일 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">인식할 수 없는 그룹화 구성입니다.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">10 이상의 C# LangVersion이 필요합니다.</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">지정한 regex가 잘못되었습니다. '{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute의 형식이 잘못되었습니다.</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">잘못된 RegexGenerator 사용</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">\\p{X} 문자 이스케이프가 완전하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">길이는 0보다 작거나 입력 길이를 초과할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">지원되지 않는 옵션 또는 너무 복잡한 정규식으로 인해 RegexGenerator가 지정한 정규식에 대한 전체 소스 구현을 생성할 수 없습니다. 구현에서는 런타임에 정규식을 해석합니다.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">RegexGenerator 제한에 도달했습니다.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">오프셋 {1}에서 잘못된 패턴 '{0}'. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">\\k&lt;...&gt; 역참조 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">\\p{X} 문자 이스케이프 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">제어 문자가 없습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">동일한 메서드에 여러 RegexGeneratorAttributes가 적용되었지만 하나만 허용됩니다.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">중첩 수량자 '{0}'입니다.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">중첩된 수량자에 괄호가 없습니다.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">실패한 Match에서 결과를 호출할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegexOptions.NonBacktracking에서는 그룹을 대체하는 Regex 대체가 지원되지 않습니다.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">읽기 전용 컬렉션입니다.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">이 플랫폼은 컴파일된 정규식을 어셈블리에 쓰는 것을 지원하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">수량자 {x,y} 앞에 아무 것도 없습니다.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">캡처 그룹 번호는 Int32.MaxValue보다 작거나 같아야 합니다.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">RegEx 엔진이 패턴을 입력 문자열에 일치시키는 동안 시간 초과되었습니다. 이 오류는 많은 입력, 중첩 수량자로 인한 과도한 역추적, 역참조, 기타 요인 등의 다양한 이유로 인해 발생할 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Regex 메서드는 부분적이고 매개 변수가 없고 제네릭이 아니어야 하며 Regex를 반환해야 합니다.</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">교체 패턴 오류입니다.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y] 범위가 역순으로 되어 있습니다.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">x &gt; y인 {x,y}를 사용할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">문자 범위에 \\{0} 클래스를 포함할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">문자 범위에 클래스를 포함할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">정의되지 않은 그룹 이름 '{0}'에 대한 참조입니다.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">정의되지 않은 그룹 이름에 대한 참조입니다.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">정의되지 않은 그룹 번호 {0}을(를) 참조합니다.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">정의되지 않은 그룹 번호에 대한 참조입니다.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">패턴 끝에 잘못된 \\가 있습니다.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">인식할 수 없는 제어 문자입니다.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">인식할 수 없는 이스케이프 시퀀스 \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">알 수 없는 속성 '{0}'.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">알 수 없는 속성 유니코드 속성입니다.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">종결되지 않은 [] 집합입니다.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">종결되지 않은 (?#...) 주석입니다.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">교체 조건은 주석이 될 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">조건(?(...))식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">대체에 잘못된 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">교체 조건은 캡처하지 않고 이름을 지정할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">(?()|)에 | 기호가 너무 많습니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) 정의되지 않은 그룹을 참조합니다.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">대체에는 정의되지 않은 그룹에 대한 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">대상 배열이 컬렉션의 모든 항목을 복사하기에 충분히 길지 않습니다. 배열 인덱스와 길이를 확인하세요.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">시작 인덱스는 0보다 작거나 입력 길이보다 클 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">그룹 이름이 잘못되었습니다. 그룹 이름은 문자로 시작해야 합니다.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">캡처 번호는 0일 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">개수는 -1보다 작을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">열거가 시작되지 않았거나 이미 완료되었습니다.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">빼기는 문자 클래스의 마지막 요소여야 합니다.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">오프셋 {1}에서 정규식 파서 오류 '{0}'.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain 데이터 '{0}'에 System.Text.RegularExpressions.Regex에 대한 기본 일치 제한 시간을 지정하기 위한 잘못된 값 또는 개체 '{1}'이(가) 있습니다.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">)가 부족합니다.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">)가 너무 많습니다.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">16진수가 충분하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex에 내부 오류가 있습니다.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">인수 {0}은(는) 길이가 0일 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">인식할 수 없는 그룹화 구성입니다.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">지정한 regex가 잘못되었습니다. '{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute의 형식이 잘못되었습니다.</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">잘못된 RegexGenerator 사용</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">\\p{X} 문자 이스케이프가 완전하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">길이는 0보다 작거나 입력 길이를 초과할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">지원되지 않는 옵션 또는 너무 복잡한 정규식으로 인해 RegexGenerator가 지정한 정규식에 대한 전체 소스 구현을 생성할 수 없습니다. 구현에서는 런타임에 정규식을 해석합니다.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">RegexGenerator 제한에 도달했습니다.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">오프셋 {1}에서 잘못된 패턴 '{0}'. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">\\k&lt;...&gt; 역참조 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">\\p{X} 문자 이스케이프 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">제어 문자가 없습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">동일한 메서드에 여러 RegexGeneratorAttributes가 적용되었지만 하나만 허용됩니다.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">중첩 수량자 '{0}'입니다.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">중첩된 수량자에 괄호가 없습니다.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">실패한 Match에서 결과를 호출할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegexOptions.NonBacktracking에서는 그룹을 대체하는 Regex 대체가 지원되지 않습니다.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">읽기 전용 컬렉션입니다.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">이 플랫폼은 컴파일된 정규식을 어셈블리에 쓰는 것을 지원하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">수량자 {x,y} 앞에 아무 것도 없습니다.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">캡처 그룹 번호는 Int32.MaxValue보다 작거나 같아야 합니다.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">RegEx 엔진이 패턴을 입력 문자열에 일치시키는 동안 시간 초과되었습니다. 이 오류는 많은 입력, 중첩 수량자로 인한 과도한 역추적, 역참조, 기타 요인 등의 다양한 이유로 인해 발생할 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Regex 메서드는 부분적이고 매개 변수가 없고 제네릭이 아니어야 하며 Regex를 반환해야 합니다.</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">교체 패턴 오류입니다.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y] 범위가 역순으로 되어 있습니다.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">x &gt; y인 {x,y}를 사용할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">문자 범위에 \\{0} 클래스를 포함할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">문자 범위에 클래스를 포함할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">정의되지 않은 그룹 이름 '{0}'에 대한 참조입니다.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">정의되지 않은 그룹 이름에 대한 참조입니다.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">정의되지 않은 그룹 번호 {0}을(를) 참조합니다.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">정의되지 않은 그룹 번호에 대한 참조입니다.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">패턴 끝에 잘못된 \\가 있습니다.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">인식할 수 없는 제어 문자입니다.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">인식할 수 없는 이스케이프 시퀀스 \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">알 수 없는 속성 '{0}'.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">알 수 없는 속성 유니코드 속성입니다.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">종결되지 않은 [] 집합입니다.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">종결되지 않은 (?#...) 주석입니다.</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pl.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Wyrażenia warunkowe nie mogą być komentarzami.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Niedozwolone wyrażenie warunkowe (?(...)).</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">Zmiana (?({0}) ) ma nieprawidłową postać.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Zmiana ma źle sformułowane odwołanie.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Wyrażenia warunkowe nie przechwytują i nie mogą być nazwane.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Za dużo | w (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">Odwołanie (?({0}) ) do niezdefiniowanej grupy.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Zmiana ma odwołanie do niezdefiniowanej grupy.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Tablica docelowa ma zbyt małą długość, aby móc skopiować wszystkie elementy kolekcji. Sprawdź indeks tablicy i jej długość.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Indeks początkowy nie może być mniejszy od 0 ani większy od długości danych wejściowych.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nieprawidłowa nazwa grupy: nazwy grup muszą się zaczynać od litery.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Numer przechwytywania nie może być równy zeru.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Wartość licznika nie może być mniejsza od -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Wyliczanie nie zostało uruchomione lub zostało już zakończone.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Odejmowanie musi być ostatnim elementem w klasie znaków.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Błąd analizatora wyrażeń regularnych „{0}” przy przesunięciu {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Dane AppDomain „{0}” zawierają nieprawidłową wartość lub obiekt „{1}” do określenia domyślnego zgodnego limitu czasu dla elementu System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Za mało nawiasów zamykających.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Za dużo nawiasów zamykających.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Za mało cyfr szesnastkowych.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Błąd wewnętrzny w elemencie ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Argument {0} nie może mieć zerowej długości.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Nierozpoznana konstrukcja grupowania.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">Wymagane jest wersja 10 lub nowsza języka C# LangVersion </target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Określone wyrażenie regularne jest nieprawidłowe. „{0}”</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">Atrybut RegexGeneratorAttribute jest źle sformułowany</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Nieprawidłowe użycie atrybutu RegexGenerator</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Niekompletny znak ucieczki \\p{X}.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Długość nie może być mniejsza od 0 ani przekraczać długości danych wejściowych.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">Obiekt RegexGenerator nie może wygenerować pełnej implementacji źródła dla określonego wyrażenia regularnego z powodu nieobsługiwanych opcji lub zbyt złożonego wyrażenia regularnego. Implementacja będzie interpretować wyrażenie regularne w czasie wykonywania.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Osiągnięto ograniczenie RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Nieprawidłowy wzorzec „{0}” przy przesunięciu {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Źle sformułowany znak \\k&lt;...&gt; nazwany odwołaniem wstecznym.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Źle sformułowany znak ucieczki \\p{X}.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Brak znaku kontrolnego.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Do tej samej metody zastosowano wiele atrybutów RegexGeneratorAttributes, ale dozwolony jest tylko jeden</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Zagnieżdżony kwantyfikator „{0}”.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Zagnieżdżony kwantyfikator nie ma nawiasów.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Nie można wywołać wyniku błędnego dopasowania.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Zamiany wyrażeń regularnych z podstawieniami grup nie są obsługiwane w przypadku metody RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Kolekcja jest tylko do odczytu.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Ta platforma nie obsługuje pisania skompilowanych wyrażeń regularnych do zestawu.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Nic nie występuje przed kwantyfikatorem {x,y}.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Numery grup przechwytywania muszą być mniejsze lub równe wartości Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Upłynął limit czasu podczas próby dopasowania przez aparat wyrażeń regularnych wzorca do ciągu wejściowego. Mogło to być spowodowane wieloma przyczynami, w tym bardzo dużą ilością danych wejściowych, nadmiernym wykorzystaniem algorytmu wycofywania związanym z kwantyfikatorami zagnieżdżonymi, odwołaniami wstecznymi i innymi czynnikami.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Metoda wyrażenia regularnego musi być częściowa, bez parametrów, niegeneryczna i zwracać wyrażenie regularne</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Błąd wzorca zastępczego.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Zakres [x-y] w kolejności odwrotnej.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">Niedozwolone wartości {x,y}, gdzie x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Nie można uwzględnić klasy \\{0} w zakresie znaków.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Nie można uwzględnić klasy w zakresie znaków.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Odwołanie do niezdefiniowanej nazwy grupy „{0}”.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Odwołanie do niezdefiniowanej nazwy grupy.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Odwołanie do niezdefiniowanego numeru grupy {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Odwołanie do niezdefiniowanego numeru grupy.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Niedozwolony znak \\ na końcu wzorca.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Nierozpoznany znak kontrolny.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Nierozpoznana sekwencja ucieczki \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Nieznana właściwość „{0}”.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Nieznana właściwość Unicode.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Nieskończony zestaw nawiasów [].</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Niezakończony komentarz (?#...).</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Wyrażenia warunkowe nie mogą być komentarzami.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Niedozwolone wyrażenie warunkowe (?(...)).</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">Zmiana (?({0}) ) ma nieprawidłową postać.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Zmiana ma źle sformułowane odwołanie.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Wyrażenia warunkowe nie przechwytują i nie mogą być nazwane.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Za dużo | w (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">Odwołanie (?({0}) ) do niezdefiniowanej grupy.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Zmiana ma odwołanie do niezdefiniowanej grupy.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Tablica docelowa ma zbyt małą długość, aby móc skopiować wszystkie elementy kolekcji. Sprawdź indeks tablicy i jej długość.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Indeks początkowy nie może być mniejszy od 0 ani większy od długości danych wejściowych.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nieprawidłowa nazwa grupy: nazwy grup muszą się zaczynać od litery.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Numer przechwytywania nie może być równy zeru.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Wartość licznika nie może być mniejsza od -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Wyliczanie nie zostało uruchomione lub zostało już zakończone.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Odejmowanie musi być ostatnim elementem w klasie znaków.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Błąd analizatora wyrażeń regularnych „{0}” przy przesunięciu {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Dane AppDomain „{0}” zawierają nieprawidłową wartość lub obiekt „{1}” do określenia domyślnego zgodnego limitu czasu dla elementu System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Za mało nawiasów zamykających.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Za dużo nawiasów zamykających.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Za mało cyfr szesnastkowych.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Błąd wewnętrzny w elemencie ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Argument {0} nie może mieć zerowej długości.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Nierozpoznana konstrukcja grupowania.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Określone wyrażenie regularne jest nieprawidłowe. „{0}”</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">Atrybut RegexGeneratorAttribute jest źle sformułowany</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Nieprawidłowe użycie atrybutu RegexGenerator</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Niekompletny znak ucieczki \\p{X}.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Długość nie może być mniejsza od 0 ani przekraczać długości danych wejściowych.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">Obiekt RegexGenerator nie może wygenerować pełnej implementacji źródła dla określonego wyrażenia regularnego z powodu nieobsługiwanych opcji lub zbyt złożonego wyrażenia regularnego. Implementacja będzie interpretować wyrażenie regularne w czasie wykonywania.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Osiągnięto ograniczenie RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Nieprawidłowy wzorzec „{0}” przy przesunięciu {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Źle sformułowany znak \\k&lt;...&gt; nazwany odwołaniem wstecznym.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Źle sformułowany znak ucieczki \\p{X}.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Brak znaku kontrolnego.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Do tej samej metody zastosowano wiele atrybutów RegexGeneratorAttributes, ale dozwolony jest tylko jeden</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Zagnieżdżony kwantyfikator „{0}”.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Zagnieżdżony kwantyfikator nie ma nawiasów.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Nie można wywołać wyniku błędnego dopasowania.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Zamiany wyrażeń regularnych z podstawieniami grup nie są obsługiwane w przypadku metody RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Kolekcja jest tylko do odczytu.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Ta platforma nie obsługuje pisania skompilowanych wyrażeń regularnych do zestawu.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Nic nie występuje przed kwantyfikatorem {x,y}.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Numery grup przechwytywania muszą być mniejsze lub równe wartości Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Upłynął limit czasu podczas próby dopasowania przez aparat wyrażeń regularnych wzorca do ciągu wejściowego. Mogło to być spowodowane wieloma przyczynami, w tym bardzo dużą ilością danych wejściowych, nadmiernym wykorzystaniem algorytmu wycofywania związanym z kwantyfikatorami zagnieżdżonymi, odwołaniami wstecznymi i innymi czynnikami.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Metoda wyrażenia regularnego musi być częściowa, bez parametrów, niegeneryczna i zwracać wyrażenie regularne</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Błąd wzorca zastępczego.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Zakres [x-y] w kolejności odwrotnej.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">Niedozwolone wartości {x,y}, gdzie x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Nie można uwzględnić klasy \\{0} w zakresie znaków.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Nie można uwzględnić klasy w zakresie znaków.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Odwołanie do niezdefiniowanej nazwy grupy „{0}”.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Odwołanie do niezdefiniowanej nazwy grupy.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Odwołanie do niezdefiniowanego numeru grupy {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Odwołanie do niezdefiniowanego numeru grupy.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Niedozwolony znak \\ na końcu wzorca.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Nierozpoznany znak kontrolny.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Nierozpoznana sekwencja ucieczki \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Nieznana właściwość „{0}”.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Nieznana właściwość Unicode.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Nieskończony zestaw nawiasów [].</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Niezakończony komentarz (?#...).</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.pt-BR.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pt-BR" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Condições de alternância não podem ser comentários.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Expressão condicional (?(...)) incorreta.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) malformado.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">A alternativa tem uma referência malformada.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Condições de alternância não fazem captura e não podem ser renomeadas.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Número excessivo de | em (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">Referência (?({0}) ) a um grupo indefinido.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">A alternativa tem uma referência a um grupo indefinido.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">A matriz de destino não é longa o suficiente para copiar todos os itens da coleção. Verifique o índice e o tamanho da matriz.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Índice inicial não pode ser menor que 0 ou maior que o comprimento de entrada.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nome de grupo inválido: nomes de grupo deve iniciar por um caractere alfabético.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Número de captura não pode ser zero.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Contagem não pode ser menor que -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">A enumeração não foi iniciada ou já foi concluída.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Uma subtração deve ser o último elemento em uma classe de caracteres.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Erro de análise de expressão regular '{0}' no deslocamento {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Os dados AppDomain '{0}' contêm o valor inválido ou objeto '{1}' para especificar um tempo limite de correspondência padrão para System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Não há )'s suficientes.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Número excessivo de )'s.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Dígitos hexadecimais insuficientes.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Erro interno em ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">O argumento {0} não pode ter comprimento zero.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Construção de agrupamento não reconhecida.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">C# LangVersion de 10 ou maior é necessário</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">O regex especificado é inválido. '{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">O RegexGeneratorAttribute está malformado</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Uso Inválido do RegexGenerator</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Caractere de escape \\p{X} incompleto.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Comprimento não pode ser menor que 0 ou exceder o comprimento de entrada.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">O RegexGenerator não pôde gerar uma implementação de origem completa para a expressão regular especificada, devido a uma opção sem suporte ou a uma expressão regular muito complexa. A implementação interpretará a expressão regular em tempo de execução.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Limitação de RegexGenerator atingida.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Padrão inválido '{0}' no deslocamento {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Referência inversa \\k&lt;...&gt; mal formada.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Caractere de escape \\p{X} mal formado.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Caractere de controle ausente.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Vários RegexGeneratorAttributes foram aplicados ao mesmo método, mas apenas um é permitido</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Quantificador aninhado '{0}'.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Quantificador aninhado sem parênteses.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Não é possível chamar resultado quando há falha na correspondência.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Substituições de regex com substituições de grupos não são suportadas com RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">A coleção é somente leitura.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Essa plataforma não suporta a escrita de expressões regulares compiladas em um assembly.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Nada precede o quantificador {x,y}.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Os números de grupo de captura devem ser menores que ou iguais a Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">O mecanismo de RegEx esgotou o tempo limite ao tentar combinar um padrão com uma cadeia de caracteres de entrada. Isso pode ocorrer por vários motivos, incluindo entradas muito grandes ou acompanhamento inverso excessivo causado por quantificadores aninhados, referências inversas e outros fatores.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">O método Regex deve ser parcial, sem parâmetros, não genérico e retornar Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Erro no padrão de substituição.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Intervalo [x-y] em ordem inversa.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} incorreto com x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Não é possível incluir classe \\{0} no intervalo de caracteres.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Não pode incluir classe no intervalo de caracteres.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Referência ao nome do grupo indefinido '{0}'.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Referência ao nome do grupo indefinido.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Referência a número de grupo {0} indefinido.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Referência ao número do grupo indefinido.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">\\ incorreto no final do padrão.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Caractere de controle não reconhecido.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Sequência de escape não reconhecida \\{0}</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Propriedade desconhecida '{0}'.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Propriedade Desconhecida Propriedade Unicode.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Conjunto [] não finalizado.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Comentário (?#...) não finalizado.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pt-BR" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Condições de alternância não podem ser comentários.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Expressão condicional (?(...)) incorreta.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) malformado.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">A alternativa tem uma referência malformada.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Condições de alternância não fazem captura e não podem ser renomeadas.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Número excessivo de | em (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">Referência (?({0}) ) a um grupo indefinido.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">A alternativa tem uma referência a um grupo indefinido.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">A matriz de destino não é longa o suficiente para copiar todos os itens da coleção. Verifique o índice e o tamanho da matriz.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Índice inicial não pode ser menor que 0 ou maior que o comprimento de entrada.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Nome de grupo inválido: nomes de grupo deve iniciar por um caractere alfabético.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Número de captura não pode ser zero.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Contagem não pode ser menor que -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">A enumeração não foi iniciada ou já foi concluída.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Uma subtração deve ser o último elemento em uma classe de caracteres.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Erro de análise de expressão regular '{0}' no deslocamento {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Os dados AppDomain '{0}' contêm o valor inválido ou objeto '{1}' para especificar um tempo limite de correspondência padrão para System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Não há )'s suficientes.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Número excessivo de )'s.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Dígitos hexadecimais insuficientes.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Erro interno em ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">O argumento {0} não pode ter comprimento zero.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Construção de agrupamento não reconhecida.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">O regex especificado é inválido. '{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">O RegexGeneratorAttribute está malformado</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Uso Inválido do RegexGenerator</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Caractere de escape \\p{X} incompleto.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Comprimento não pode ser menor que 0 ou exceder o comprimento de entrada.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">O RegexGenerator não pôde gerar uma implementação de origem completa para a expressão regular especificada, devido a uma opção sem suporte ou a uma expressão regular muito complexa. A implementação interpretará a expressão regular em tempo de execução.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Limitação de RegexGenerator atingida.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Padrão inválido '{0}' no deslocamento {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Referência inversa \\k&lt;...&gt; mal formada.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Caractere de escape \\p{X} mal formado.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Caractere de controle ausente.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Vários RegexGeneratorAttributes foram aplicados ao mesmo método, mas apenas um é permitido</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Quantificador aninhado '{0}'.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Quantificador aninhado sem parênteses.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Não é possível chamar resultado quando há falha na correspondência.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Substituições de regex com substituições de grupos não são suportadas com RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">A coleção é somente leitura.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Essa plataforma não suporta a escrita de expressões regulares compiladas em um assembly.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Nada precede o quantificador {x,y}.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Os números de grupo de captura devem ser menores que ou iguais a Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">O mecanismo de RegEx esgotou o tempo limite ao tentar combinar um padrão com uma cadeia de caracteres de entrada. Isso pode ocorrer por vários motivos, incluindo entradas muito grandes ou acompanhamento inverso excessivo causado por quantificadores aninhados, referências inversas e outros fatores.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">O método Regex deve ser parcial, sem parâmetros, não genérico e retornar Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Erro no padrão de substituição.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Intervalo [x-y] em ordem inversa.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} incorreto com x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Não é possível incluir classe \\{0} no intervalo de caracteres.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Não pode incluir classe no intervalo de caracteres.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Referência ao nome do grupo indefinido '{0}'.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Referência ao nome do grupo indefinido.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Referência a número de grupo {0} indefinido.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Referência ao número do grupo indefinido.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">\\ incorreto no final do padrão.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Caractere de controle não reconhecido.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Sequência de escape não reconhecida \\{0}</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Propriedade desconhecida '{0}'.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Propriedade Desconhecida Propriedade Unicode.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Conjunto [] não finalizado.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Comentário (?#...) não finalizado.</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.ru.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ru" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Условия чередования не могут быть комментариями.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Недопустимое условное выражение (?(...)).</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">Неверный формат (?({0}) ).</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Чередование содержит неправильную ссылку.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Условия чередования не записаны, и им невозможно присвоить имя.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Слишком много | в (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) ссылка на неопределенную группу.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Чередование содержит ссылку на неопределенную группу.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Длина конечного массива недостаточна для копирования всех элементов коллекции. Проверьте индекс и длину массива.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Начальный индекс не может быть меньше 0 или больше длины ввода.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Недопустимое имя группы: Имена групп должны начинаться с буквы.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Номер захвата не может быть равен нулю.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Не может быть меньше -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Перечисление либо не началось, либо уже закончилось.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Вычитание должно быть последним элементом в классе знаков.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Ошибка синтаксического анализатора регулярных выражений "{0}" при смещении {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Данные домена приложения "{0}" содержат недопустимые значение или объект "{1}", указывающие время ожидания сопоставления по умолчанию для объекта System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Нет парных закрывающих скобок ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Лишние закрывающие скобки ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Недостаточно шестнадцатеричных цифр.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Внутренняя ошибка в ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Аргумент {0} не может иметь нулевую длину.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Нераспознанная конструкция группирования.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">Требуется C# LangVersion 10 или выше</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Указанное регулярное выражение недопустимо. "{0}"</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">Ошибка в регулярном выражении RegexGeneratorAttribute</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Недопустимое использование RegexGenerator</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Неполная esc-последовательность \\p{X}.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Длина не может быть меньше 0 или превышать длину ввода.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">Средству RegexGenerator не удалось создать полную реализацию источника для указанного регулярного выражения, так как параметр не поддерживается или регулярное выражение является слишком сложным. Реализация будет интерпретировать регулярное выражение во время выполнения.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Достигнуто ограничение RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Недопустимый шаблон "{0}" со смещением {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Искажена именованная обратная ссылка \\k&lt;...&gt;.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Неверный формат esc-последовательности \\p{X}.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Отсутствует управляющий символ.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Несколько RegexGeneratorAttributes были применены к одному методу, но разрешен только один</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Вложенный квантификатор "{0}".</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Вложенный квантификатор не заключен в круглые скобки.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Вызов результата невозможен при сбойном соответствии.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Замена регулярных выражений на группы не поддерживается в RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Данная коллекция предназначена только для чтения.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Эта платформа не поддерживает запись скомпилированных регулярных выражений в сборку.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Перед квантификатором {x,y} ничего нет.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Номера групп захвата должны быть меньше или равны Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Истекло время ожидания модуля RegEx при попытке сравнить шаблон со входной строкой. Это могло произойти по многим причинам, в том числе из-за очень большого объема входных данных или излишнего обратного отслеживания, вызванного вложенными квантификаторами, обратными ссылками и прочими факторами.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Метод Regex должен быть частичным, без параметров, неуниверсальным и возвращать регулярное выражение</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Ошибка шаблона замены.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Обратный порядок диапазона [x-y].</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">Недопустимая пара {x,y} с x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Невозможно включить класс \\{0} в диапазон символов.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Невозможно включить класс в диапазон символов.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Ссылка на неопределенное имя группы "{0}".</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Ссылка на неопределенное имя группы.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Ссылка на неопределенный номер группы {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Ссылка на неопределенный номер группы.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Недопустимая обратная косая черта \\ в конце образца.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Нераспознанный управляющий знак.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Не удалось распознать escape-последовательность \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Неизвестное свойство "{0}".</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Неизвестное свойство Unicode свойства.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Набор [] без признака завершения.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Комментарий (?#...) без признака завершения.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ru" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Условия чередования не могут быть комментариями.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Недопустимое условное выражение (?(...)).</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">Неверный формат (?({0}) ).</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Чередование содержит неправильную ссылку.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Условия чередования не записаны, и им невозможно присвоить имя.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">Слишком много | в (?()|).</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) ссылка на неопределенную группу.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Чередование содержит ссылку на неопределенную группу.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Длина конечного массива недостаточна для копирования всех элементов коллекции. Проверьте индекс и длину массива.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Начальный индекс не может быть меньше 0 или больше длины ввода.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Недопустимое имя группы: Имена групп должны начинаться с буквы.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Номер захвата не может быть равен нулю.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Не может быть меньше -1.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Перечисление либо не началось, либо уже закончилось.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Вычитание должно быть последним элементом в классе знаков.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">Ошибка синтаксического анализатора регулярных выражений "{0}" при смещении {1}.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">Данные домена приложения "{0}" содержат недопустимые значение или объект "{1}", указывающие время ожидания сопоставления по умолчанию для объекта System.Text.RegularExpressions.Regex.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Нет парных закрывающих скобок ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Лишние закрывающие скобки ).</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Недостаточно шестнадцатеричных цифр.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">Внутренняя ошибка в ScanRegex.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Аргумент {0} не может иметь нулевую длину.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Нераспознанная конструкция группирования.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Указанное регулярное выражение недопустимо. "{0}"</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">Ошибка в регулярном выражении RegexGeneratorAttribute</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Недопустимое использование RegexGenerator</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Неполная esc-последовательность \\p{X}.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Длина не может быть меньше 0 или превышать длину ввода.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">Средству RegexGenerator не удалось создать полную реализацию источника для указанного регулярного выражения, так как параметр не поддерживается или регулярное выражение является слишком сложным. Реализация будет интерпретировать регулярное выражение во время выполнения.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">Достигнуто ограничение RegexGenerator.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">Недопустимый шаблон "{0}" со смещением {1}. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Искажена именованная обратная ссылка \\k&lt;...&gt;.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Неверный формат esc-последовательности \\p{X}.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Отсутствует управляющий символ.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Несколько RegexGeneratorAttributes были применены к одному методу, но разрешен только один</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">Вложенный квантификатор "{0}".</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">Вложенный квантификатор не заключен в круглые скобки.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Вызов результата невозможен при сбойном соответствии.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Замена регулярных выражений на группы не поддерживается в RegexOptions.NonBacktracking.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Данная коллекция предназначена только для чтения.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Эта платформа не поддерживает запись скомпилированных регулярных выражений в сборку.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">Перед квантификатором {x,y} ничего нет.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Номера групп захвата должны быть меньше или равны Int32.MaxValue.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">Истекло время ожидания модуля RegEx при попытке сравнить шаблон со входной строкой. Это могло произойти по многим причинам, в том числе из-за очень большого объема входных данных или излишнего обратного отслеживания, вызванного вложенными квантификаторами, обратными ссылками и прочими факторами.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Метод Regex должен быть частичным, без параметров, неуниверсальным и возвращать регулярное выражение</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Ошибка шаблона замены.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">Обратный порядок диапазона [x-y].</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">Недопустимая пара {x,y} с x &gt; y.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Невозможно включить класс \\{0} в диапазон символов.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Невозможно включить класс в диапазон символов.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Ссылка на неопределенное имя группы "{0}".</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Ссылка на неопределенное имя группы.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">Ссылка на неопределенный номер группы {0}.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Ссылка на неопределенный номер группы.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Недопустимая обратная косая черта \\ в конце образца.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Нераспознанный управляющий знак.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Не удалось распознать escape-последовательность \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Неизвестное свойство "{0}".</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Неизвестное свойство Unicode свойства.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Набор [] без признака завершения.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Комментарий (?#...) без признака завершения.</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.tr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="tr" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Değişim koşulları açıklama olamaz.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Geçersiz koşul (?(...)) ifadesi.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) hatalı biçimlendirilmiş.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Değişimin hatalı biçimlendirilmiş başvurusu var.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Değişim koşulları yakalamaz ve adlandırılamaz.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">(?()|) içinde çok fazla | var.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) tanımsız gruba başvuru.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Değişimin tanımsız bir gruba başvurusu var.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Hedef dizi, koleksiyondaki tüm öğeleri kopyalamak için yeterince uzun değil. Dizi dizinini ve uzunluğunu denetleyin.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Başlangıç dizini sıfırdan küçük veya giriş uzunluğundan büyük olamaz.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Geçersiz grup adı. Grup adları sözcük karakteriyle başlamalıdır.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Yakalama numarası sıfır olamaz.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Sayı -1'den küçük olamaz.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Sabit listesi işlemi başlamamış ya da zaten bitmiş.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Çıkarma, karakter sınıfında en son öğe olmalıdır.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">{1} ofsetinde normal ifade ayrıştırıcı hatası “{0}”.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">“{0}” AppDomain verileri, System.Text.RegularExpressions.Regex için varsayılan bir eşleştirme zaman aşımı belirtmek için geçersiz “{1}” değeri veya nesnesi içeriyor.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Yeterli ) yok.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Çok fazla ) var.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Yetersiz sayıda onaltılık basamak.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex iç hatası.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Bağımsız değişken {0}, sıfır uzunluğunda olamaz.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Tanınmayan gruplama yapısı.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">C# LangVersion 10 veya üstü gereklidir</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Belirtilen normal ifade geçersiz. ''{0}”</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute hatalı biçimlendirilmiş</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Geçersiz RegexGenerator kullanımı</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Tamamlanmamış \\p{X} karakter kaçışı.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Uzunluk sıfırdan küçük olamaz ve giriş uzunluğunu aşamaz.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator, desteklenmeyen bir seçenek veya çok karmaşık bir normal ifade nedeniyle belirtilen normal ifade için tam kaynak uygulaması oluşturamadı. Uygulama, normal ifadeyi çalışma zamanında yorumlar.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">RegexGenerator sınırına ulaşıldı.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">{1} ofsetinde geçersiz “{0}” deseni. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Hatalı biçimlendirilmiş \\k&lt;...&gt; adlı geri başvuru.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Hatalı biçimlendirilmiş \\p{X} karakter kaçışı.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Eksik denetim karakteri.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Aynı yönteme birden çok RegexGeneratorAttributes uygulandı, ancak yalnızca birine izin veriliyor</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">İç içe yerleştirilmiş niceleyici “{0}”.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">İç içe geçmiş niceleyici parantez içine alınmamış.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Sonuç, başarısız Eşleştirmede çağrılamaz.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Grup değiştirmeleri içeren normal ifade değiştirmeleri RegexOptions.NonBacktracking ile desteklenmez.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Koleksiyon salt okunur.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Bu platform, bütünleştirilmiş koda derlenmiş normal ifadeler yazılmasını desteklemiyor.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">{x,y} miktar belirleyicisinin izlediği bir öğe yok.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Yakalama grubu numaraları Int32.MaxValue değerine eşit veya bundan küçük olmalıdır.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">RegEx altyapısı bir deseni bir giriş dizesiyle eşleştirmeye çalışırken zaman aşımına uğradı. Bu birçok nedenle oluşabilir; buna çok büyük girişler ya da iç içe geçmiş miktar belirleyiciler, geri başvurular ve diğer faktörler nedeniyle oluşan aşırı geri dönüşler dahildir.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Regex yöntemi kısmi, parametresiz, genel olmayan olmalıdır ve Regex döndürmelidir</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Değiştirme deseni hatası.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y] aralığı ters sırada.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">x &gt; y olan geçersiz {x,y}.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Karakter aralığına \\{0} sınıfı dahil edilemez.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Karakter aralığına sınıf dahil edilemez.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Tanımsız grup adı “{0}” başvurusu.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Tanımsız grup adı başvurusu.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">{0} tanımsız grup numarası başvurusu.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Tanımsız grup numarası başvurusu.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Desenin sonunda geçersiz \\.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Tanınmayan denetim karakteri.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Tanınmayan kaçış dizisi \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Bilinmeyen özellik “{0}”.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Bilinmeyen özellik Unicode özelliği.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Sonlandırılmayan [] kümesi.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Sonlandırılmayan (?#...) yorumu.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="tr" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">Değişim koşulları açıklama olamaz.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">Geçersiz koşul (?(...)) ifadesi.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) hatalı biçimlendirilmiş.</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">Değişimin hatalı biçimlendirilmiş başvurusu var.</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">Değişim koşulları yakalamaz ve adlandırılamaz.</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">(?()|) içinde çok fazla | var.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) tanımsız gruba başvuru.</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">Değişimin tanımsız bir gruba başvurusu var.</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">Hedef dizi, koleksiyondaki tüm öğeleri kopyalamak için yeterince uzun değil. Dizi dizinini ve uzunluğunu denetleyin.</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">Başlangıç dizini sıfırdan küçük veya giriş uzunluğundan büyük olamaz.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">Geçersiz grup adı. Grup adları sözcük karakteriyle başlamalıdır.</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">Yakalama numarası sıfır olamaz.</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">Sayı -1'den küçük olamaz.</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">Sabit listesi işlemi başlamamış ya da zaten bitmiş.</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">Çıkarma, karakter sınıfında en son öğe olmalıdır.</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">{1} ofsetinde normal ifade ayrıştırıcı hatası “{0}”.</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">“{0}” AppDomain verileri, System.Text.RegularExpressions.Regex için varsayılan bir eşleştirme zaman aşımı belirtmek için geçersiz “{1}” değeri veya nesnesi içeriyor.</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">Yeterli ) yok.</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">Çok fazla ) var.</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">Yetersiz sayıda onaltılık basamak.</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex iç hatası.</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">Bağımsız değişken {0}, sıfır uzunluğunda olamaz.</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">Tanınmayan gruplama yapısı.</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">Belirtilen normal ifade geçersiz. ''{0}”</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute hatalı biçimlendirilmiş</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">Geçersiz RegexGenerator kullanımı</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">Tamamlanmamış \\p{X} karakter kaçışı.</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">Uzunluk sıfırdan küçük olamaz ve giriş uzunluğunu aşamaz.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator, desteklenmeyen bir seçenek veya çok karmaşık bir normal ifade nedeniyle belirtilen normal ifade için tam kaynak uygulaması oluşturamadı. Uygulama, normal ifadeyi çalışma zamanında yorumlar.</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">RegexGenerator sınırına ulaşıldı.</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">{1} ofsetinde geçersiz “{0}” deseni. {2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">Hatalı biçimlendirilmiş \\k&lt;...&gt; adlı geri başvuru.</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">Hatalı biçimlendirilmiş \\p{X} karakter kaçışı.</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">Eksik denetim karakteri.</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">Aynı yönteme birden çok RegexGeneratorAttributes uygulandı, ancak yalnızca birine izin veriliyor</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">İç içe yerleştirilmiş niceleyici “{0}”.</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">İç içe geçmiş niceleyici parantez içine alınmamış.</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">Sonuç, başarısız Eşleştirmede çağrılamaz.</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">Grup değiştirmeleri içeren normal ifade değiştirmeleri RegexOptions.NonBacktracking ile desteklenmez.</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">Koleksiyon salt okunur.</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">Bu platform, bütünleştirilmiş koda derlenmiş normal ifadeler yazılmasını desteklemiyor.</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">{x,y} miktar belirleyicisinin izlediği bir öğe yok.</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">Yakalama grubu numaraları Int32.MaxValue değerine eşit veya bundan küçük olmalıdır.</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">RegEx altyapısı bir deseni bir giriş dizesiyle eşleştirmeye çalışırken zaman aşımına uğradı. Bu birçok nedenle oluşabilir; buna çok büyük girişler ya da iç içe geçmiş miktar belirleyiciler, geri başvurular ve diğer faktörler nedeniyle oluşan aşırı geri dönüşler dahildir.</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Regex yöntemi kısmi, parametresiz, genel olmayan olmalıdır ve Regex döndürmelidir</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">Değiştirme deseni hatası.</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y] aralığı ters sırada.</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">x &gt; y olan geçersiz {x,y}.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">Karakter aralığına \\{0} sınıfı dahil edilemez.</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">Karakter aralığına sınıf dahil edilemez.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">Tanımsız grup adı “{0}” başvurusu.</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">Tanımsız grup adı başvurusu.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">{0} tanımsız grup numarası başvurusu.</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">Tanımsız grup numarası başvurusu.</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">Desenin sonunda geçersiz \\.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">Tanınmayan denetim karakteri.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">Tanınmayan kaçış dizisi \\{0}.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">Bilinmeyen özellik “{0}”.</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">Bilinmeyen özellik Unicode özelliği.</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">Sonlandırılmayan [] kümesi.</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">Sonlandırılmayan (?#...) yorumu.</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hans.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hans" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">替换条件不能是注释。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">非法的条件(?(...))表达式。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) )格式不正确。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">替换具有格式不正确的引用。</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">替换条件不捕获且不能命名。</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">(?()|)中的 | 过多。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) )引用未定义的组。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">替换具有对未定义组的引用。</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">目标数组不够长,无法复制集合中的所有项。请检查数组索引和长度。</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">起始索引不能小于 0 或大于输入长度。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">无效的组名: 组名必须以单词字符开头。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">捕获数不能为零。</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">计数不能小于 -1。</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">枚举尚未开始或者已经结束。</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">负号必须是字符类中的最后一个元素。</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">偏移 {0} 处的正则表达式分析程序错误“{1}”。</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain 数据“{0}”包含为 System.Text.RegularExpressions.Regex 指定默认匹配超时的无效值或对象“{1}”。</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">) 不足。</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">) 过多。</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">十六进制位数不足。</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex 中的内部错误。</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">自变量 {0} 长度不能为零。</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">无法识别的分组构造。</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">需要 C# LangVersion 10 或更高版本</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">指定的正则表达式无效。“{0}”</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute 格式不正确</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">无效的 RegexGenerator 用法</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">不完整的 \\p{X} 字符转义。</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">长度不能小于 0 或超过输入长度。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">由于不支持的选项或正则表达式过于复杂,RegexGenerator 无法为指定正则表达式生成完整的源实现。实现将在运行时解释正则表达式。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">已达到 RegexGenerator 限制。</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">偏移 {0} 处的模式“{1}”无效。{2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">名为“向后引用”的 \\k&lt;...&gt; 格式不正确。</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">格式不正确的 \\p{X} 字符转义。</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">缺少控制字符。</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">对同一方法应用了多个 RegexGeneratorAttribute,但只允许使用一个</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">嵌套限定符“{0}”。</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">不带圆括号的嵌套限定符。</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">不能对失败的匹配调用结果。</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegexOptions.NonBacktracking 不支持使用组替换的正则表达式替换。</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">集合是只读的。</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">此平台不支持将已编译的正则表达式写入程序集。</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">限定符 {x,y} 前没有任何内容。</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">捕获组的数量必须小于或等于 Int32.MaxValue。</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">尝试将模式与输入字符串匹配时,RegEx 引擎超时。许多原因均可能导致出现这种情况,包括由嵌套限定符、反向引用和其他因素引起的大量输入或过度回溯。</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Regex 方法必须是分部、无参数、非泛型,并返回 Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">替换模式错误。</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y] 范围的顺序颠倒。</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} 在 x &gt; y 时为非法。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">不能在字符范围内包含类 \\{0}。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">不能在字符范围内包含类。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">对未定义的组名“{0}”的引用。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">对未定义的组名的引用。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">对未定义的组成员 {0} 的引用。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">对未定义的组编号的引用。</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">\\ 在模式末尾非法。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">无法识别的控制字符。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">无法识别的转义序列 \\{0}。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">未知的属性“{0}”。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">未知属性 - Unicode 属性。</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">未终止的 [] 集。</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">未终止的(?#...)注释。</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hans" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">替换条件不能是注释。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">非法的条件(?(...))表达式。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) )格式不正确。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">替换具有格式不正确的引用。</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">替换条件不捕获且不能命名。</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">(?()|)中的 | 过多。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) )引用未定义的组。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">替换具有对未定义组的引用。</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">目标数组不够长,无法复制集合中的所有项。请检查数组索引和长度。</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">起始索引不能小于 0 或大于输入长度。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">无效的组名: 组名必须以单词字符开头。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">捕获数不能为零。</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">计数不能小于 -1。</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">枚举尚未开始或者已经结束。</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">负号必须是字符类中的最后一个元素。</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">偏移 {0} 处的正则表达式分析程序错误“{1}”。</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain 数据“{0}”包含为 System.Text.RegularExpressions.Regex 指定默认匹配超时的无效值或对象“{1}”。</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">) 不足。</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">) 过多。</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">十六进制位数不足。</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex 中的内部错误。</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">自变量 {0} 长度不能为零。</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">无法识别的分组构造。</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">指定的正则表达式无效。“{0}”</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute 格式不正确</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">无效的 RegexGenerator 用法</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">不完整的 \\p{X} 字符转义。</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">长度不能小于 0 或超过输入长度。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">由于不支持的选项或正则表达式过于复杂,RegexGenerator 无法为指定正则表达式生成完整的源实现。实现将在运行时解释正则表达式。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">已达到 RegexGenerator 限制。</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">偏移 {0} 处的模式“{1}”无效。{2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">名为“向后引用”的 \\k&lt;...&gt; 格式不正确。</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">格式不正确的 \\p{X} 字符转义。</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">缺少控制字符。</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">对同一方法应用了多个 RegexGeneratorAttribute,但只允许使用一个</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">嵌套限定符“{0}”。</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">不带圆括号的嵌套限定符。</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">不能对失败的匹配调用结果。</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegexOptions.NonBacktracking 不支持使用组替换的正则表达式替换。</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">集合是只读的。</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">此平台不支持将已编译的正则表达式写入程序集。</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">限定符 {x,y} 前没有任何内容。</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">捕获组的数量必须小于或等于 Int32.MaxValue。</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">尝试将模式与输入字符串匹配时,RegEx 引擎超时。许多原因均可能导致出现这种情况,包括由嵌套限定符、反向引用和其他因素引起的大量输入或过度回溯。</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Regex 方法必须是分部、无参数、非泛型,并返回 Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">替换模式错误。</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">[x-y] 范围的顺序颠倒。</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">{x,y} 在 x &gt; y 时为非法。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">不能在字符范围内包含类 \\{0}。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">不能在字符范围内包含类。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">对未定义的组名“{0}”的引用。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">对未定义的组名的引用。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">对未定义的组成员 {0} 的引用。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">对未定义的组编号的引用。</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">\\ 在模式末尾非法。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">无法识别的控制字符。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">无法识别的转义序列 \\{0}。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">未知的属性“{0}”。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">未知属性 - Unicode 属性。</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">未终止的 [] 集。</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">未终止的(?#...)注释。</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.RegularExpressions/gen/Resources/xlf/Strings.zh-Hant.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">替代條件不能為註解。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">不合法的條件 (?(...)) 運算式。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) 格式錯誤。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">替代具有格式錯誤的參考。</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">替代條件無法擷取且無法命名。</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">太多 | 符號於 (?()|)。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) 參考到未定義的群組。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">替代具有未定義之群組的參考。</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">目的地陣列的長度不足以複製集合中的所有項目。請檢查陣列索引以及長度。</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">起始索引不能小於 0 或大於輸入長度。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">無效的群組名稱: 群組名稱必須以文字字元為開頭。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">擷取的數字不能為零。</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">計數不能小於 -1。</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">列舉尚未啟動或已經完成。</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">減法必須是字元類別中的最後一個項目。</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">規則運算式剖析器錯誤 '{0}' 位於位移 {1}。</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain 資料 '{0}' 包含用於為 System.Text.RegularExpressions.Regex 指定預設相符逾時的無效值或物件 '{1}'。</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">沒有足夠的 ) 符號。</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">太多 ) 符號。</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">十六進位數字不足。</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex 發生內部錯誤。</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">引數 {0} 長度不可以為零。</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">無法識別的分組建構。</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="needs-review-translation">需要 10 或更大的 C# LangVersion</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">指定的 RegEx 無效。'{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute 格式錯誤</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">無效的 RegexGenerator 使用方式</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">不完整的 \\p{X} 逸出字元。</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">長度不能小於零或超過輸入長度。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator 無法為指定的規則運算式產生完整的來源實作,因為不支援的選項或規則運算式太複雜。實作會在執行時間解譯規則運算式。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">已達 RegexGenerator 限制。</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">位移 {1} 的模式 '{0}' 無效。{2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">格式錯誤 \\k&lt;...&gt; 命名的反向參考。</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">格式錯誤的 \\p{X} 逸出字元。</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">缺少控制字元。</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">已將多個 RegexGeneratorAttributes 套用到同一個方法,但只允許一個</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">巢狀數量詞 '{0}'。</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">巢狀數量詞沒有小括號。</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">無法在已失敗的對應 (Match) 上呼叫結果。</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegexOptions.NonBacktracking 不支援以替代群組取代 Regex。</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">集合是唯讀的。</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">此平台不支援將已編譯的規則運算式寫入組件。</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">數量詞 {x,y} 之後沒有東西。</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">擷取的群組數目必須小於或等於 Int32.MaxValue。</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">嘗試將模式對應至輸入字串時,RegEx 引擎發生逾時。有很多原因會導致這個情形,其中包括巢狀數量詞、反向參考及其他因素所造成的極大量輸入或過度使用回溯法。</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Regex 方法必須是部分、無參數、非泛型,並且傳回 Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">取代模式錯誤。</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">相反順序的 [x-y] 範圍。</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">不合法的 {x,y},因為 x &gt; y。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">無法在字元範圍內包含類別 \\{0}。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">無法在字元範圍內包含類別。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">未定義群組名稱 '{0}' 的參考。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">未定義群組名稱的參考。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">參考到未定義的群組編號 {0}。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">參考未定義的群組號碼。</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">模式結尾有不合法的 \\。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">無法識別的控制字元。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">無法識別的逸出序列 \\{0}。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">未知的屬性 '{0}'。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">未知屬性 Unicode 屬性。</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">未結束的 [] 集合。</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">未結束的 (?#...) 註解。</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../Strings.resx"> <body> <trans-unit id="AlternationHasComment"> <source>Alternation conditions cannot be comments.</source> <target state="translated">替代條件不能為註解。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedCondition"> <source>Illegal conditional (?(...)) expression.</source> <target state="translated">不合法的條件 (?(...)) 運算式。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReference"> <source>(?({0}) ) malformed.</source> <target state="translated">(?({0}) ) 格式錯誤。</target> <note /> </trans-unit> <trans-unit id="AlternationHasMalformedReferenceNoPlaceholder"> <source>Alternation has malformed reference.</source> <target state="translated">替代具有格式錯誤的參考。</target> <note /> </trans-unit> <trans-unit id="AlternationHasNamedCapture"> <source>Alternation conditions do not capture and cannot be named.</source> <target state="translated">替代條件無法擷取且無法命名。</target> <note /> </trans-unit> <trans-unit id="AlternationHasTooManyConditions"> <source>Too many | in (?()|).</source> <target state="translated">太多 | 符號於 (?()|)。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReference"> <source>(?({0}) ) reference to undefined group.</source> <target state="translated">(?({0}) ) 參考到未定義的群組。</target> <note /> </trans-unit> <trans-unit id="AlternationHasUndefinedReferenceNoPlaceholder"> <source>Alternation has a reference to undefined group.</source> <target state="translated">替代具有未定義之群組的參考。</target> <note /> </trans-unit> <trans-unit id="Arg_ArrayPlusOffTooSmall"> <source>Destination array is not long enough to copy all the items in the collection. Check array index and length.</source> <target state="translated">目的地陣列的長度不足以複製集合中的所有項目。請檢查陣列索引以及長度。</target> <note /> </trans-unit> <trans-unit id="BeginIndexNotNegative"> <source>Start index cannot be less than 0 or greater than input length.</source> <target state="translated">起始索引不能小於 0 或大於輸入長度。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupNameInvalid"> <source>Invalid group name: Group names must begin with a word character.</source> <target state="translated">無效的群組名稱: 群組名稱必須以文字字元為開頭。</target> <note /> </trans-unit> <trans-unit id="CaptureGroupOfZero"> <source>Capture number cannot be zero.</source> <target state="translated">擷取的數字不能為零。</target> <note /> </trans-unit> <trans-unit id="CountTooSmall"> <source>Count cannot be less than -1.</source> <target state="translated">計數不能小於 -1。</target> <note /> </trans-unit> <trans-unit id="EnumNotStarted"> <source>Enumeration has either not started or has already finished.</source> <target state="translated">列舉尚未啟動或已經完成。</target> <note /> </trans-unit> <trans-unit id="ExclusionGroupNotLast"> <source>A subtraction must be the last element in a character class.</source> <target state="translated">減法必須是字元類別中的最後一個項目。</target> <note /> </trans-unit> <trans-unit id="Generic"> <source>Regular expression parser error '{0}' at offset {1}.</source> <target state="translated">規則運算式剖析器錯誤 '{0}' 位於位移 {1}。</target> <note /> </trans-unit> <trans-unit id="IllegalDefaultRegexMatchTimeoutInAppDomain"> <source>AppDomain data '{0}' contains the invalid value or object '{1}' for specifying a default matching timeout for System.Text.RegularExpressions.Regex.</source> <target state="translated">AppDomain 資料 '{0}' 包含用於為 System.Text.RegularExpressions.Regex 指定預設相符逾時的無效值或物件 '{1}'。</target> <note /> </trans-unit> <trans-unit id="InsufficientClosingParentheses"> <source>Not enough )'s.</source> <target state="translated">沒有足夠的 ) 符號。</target> <note /> </trans-unit> <trans-unit id="InsufficientOpeningParentheses"> <source>Too many )'s.</source> <target state="translated">太多 ) 符號。</target> <note /> </trans-unit> <trans-unit id="InsufficientOrInvalidHexDigits"> <source>Insufficient hexadecimal digits.</source> <target state="translated">十六進位數字不足。</target> <note /> </trans-unit> <trans-unit id="InternalError_ScanRegex"> <source>Internal error in ScanRegex.</source> <target state="translated">ScanRegex 發生內部錯誤。</target> <note>{Locked="ScanRegex"}</note> </trans-unit> <trans-unit id="InvalidEmptyArgument"> <source>Argument {0} cannot be zero-length.</source> <target state="translated">引數 {0} 長度不可以為零。</target> <note /> </trans-unit> <trans-unit id="InvalidGroupingConstruct"> <source>Unrecognized grouping construct.</source> <target state="translated">無法識別的分組建構。</target> <note /> </trans-unit> <trans-unit id="InvalidLangVersionMessage"> <source>C# LangVersion of 11 or greater is required</source> <target state="new">C# LangVersion of 11 or greater is required</target> <note /> </trans-unit> <trans-unit id="InvalidRegexArgumentsMessage"> <source>The specified regex is invalid. '{0}'</source> <target state="translated">指定的 RegEx 無效。'{0}'</target> <note /> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeMessage"> <source>The RegexGeneratorAttribute is malformed</source> <target state="translated">RegexGeneratorAttribute 格式錯誤</target> <note>{Locked="RegexGeneratorAttribute"}</note> </trans-unit> <trans-unit id="InvalidRegexGeneratorAttributeTitle"> <source>Invalid RegexGenerator usage</source> <target state="translated">無效的 RegexGenerator 使用方式</target> <note>{Locked="RegexGenerator"}</note> </trans-unit> <trans-unit id="InvalidUnicodePropertyEscape"> <source>Incomplete \\p{X} character escape.</source> <target state="translated">不完整的 \\p{X} 逸出字元。</target> <note /> </trans-unit> <trans-unit id="LengthNotNegative"> <source>Length cannot be less than 0 or exceed input length.</source> <target state="translated">長度不能小於零或超過輸入長度。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationMessage"> <source>The RegexGenerator couldn't generate a complete source implementation for the specified regular expression, due to an unsupported option or too complex a regular expression. The implementation will interpret the regular expression at run-time.</source> <target state="translated">RegexGenerator 無法為指定的規則運算式產生完整的來源實作,因為不支援的選項或規則運算式太複雜。實作會在執行時間解譯規則運算式。</target> <note /> </trans-unit> <trans-unit id="LimitedSourceGenerationTitle"> <source>RegexGenerator limitation reached.</source> <target state="translated">已達 RegexGenerator 限制。</target> <note /> </trans-unit> <trans-unit id="MakeException"> <source>Invalid pattern '{0}' at offset {1}. {2}</source> <target state="translated">位移 {1} 的模式 '{0}' 無效。{2}</target> <note /> </trans-unit> <trans-unit id="MalformedNamedReference"> <source>Malformed \\k&lt;...&gt; named back reference.</source> <target state="translated">格式錯誤 \\k&lt;...&gt; 命名的反向參考。</target> <note /> </trans-unit> <trans-unit id="MalformedUnicodePropertyEscape"> <source>Malformed \\p{X} character escape.</source> <target state="translated">格式錯誤的 \\p{X} 逸出字元。</target> <note /> </trans-unit> <trans-unit id="MissingControlCharacter"> <source>Missing control character.</source> <target state="translated">缺少控制字元。</target> <note /> </trans-unit> <trans-unit id="MultipleRegexGeneratorAttributesMessage"> <source>Multiple RegexGeneratorAttributes were applied to the same method, but only one is allowed</source> <target state="translated">已將多個 RegexGeneratorAttributes 套用到同一個方法,但只允許一個</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesized"> <source>Nested quantifier '{0}'.</source> <target state="translated">巢狀數量詞 '{0}'。</target> <note /> </trans-unit> <trans-unit id="NestedQuantifiersNotParenthesizedNoPlaceholder"> <source>Nested quantifier no parenthesized.</source> <target state="translated">巢狀數量詞沒有小括號。</target> <note /> </trans-unit> <trans-unit id="NoResultOnFailed"> <source>Result cannot be called on a failed Match.</source> <target state="translated">無法在已失敗的對應 (Match) 上呼叫結果。</target> <note /> </trans-unit> <trans-unit id="NotSupported_NonBacktrackingAndReplacementsWithSubstitutionsOfGroups"> <source>Regex replacements with substitutions of groups are not supported with RegexOptions.NonBacktracking.</source> <target state="translated">RegexOptions.NonBacktracking 不支援以替代群組取代 Regex。</target> <note>{Locked="RegexOptions.NonBacktracking"}</note> </trans-unit> <trans-unit id="NotSupported_ReadOnlyCollection"> <source>Collection is read-only.</source> <target state="translated">集合是唯讀的。</target> <note /> </trans-unit> <trans-unit id="PlatformNotSupported_CompileToAssembly"> <source>This platform does not support writing compiled regular expressions to an assembly.</source> <target state="translated">此平台不支援將已編譯的規則運算式寫入組件。</target> <note /> </trans-unit> <trans-unit id="QuantifierAfterNothing"> <source>Quantifier {x,y} following nothing.</source> <target state="translated">數量詞 {x,y} 之後沒有東西。</target> <note /> </trans-unit> <trans-unit id="QuantifierOrCaptureGroupOutOfRange"> <source>Capture group numbers must be less than or equal to Int32.MaxValue.</source> <target state="translated">擷取的群組數目必須小於或等於 Int32.MaxValue。</target> <note>{Locked="Int32.MaxValue"}</note> </trans-unit> <trans-unit id="RegexMatchTimeoutException_Occurred"> <source>The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.</source> <target state="translated">嘗試將模式對應至輸入字串時,RegEx 引擎發生逾時。有很多原因會導致這個情形,其中包括巢狀數量詞、反向參考及其他因素所造成的極大量輸入或過度使用回溯法。</target> <note /> </trans-unit> <trans-unit id="RegexMethodMustHaveValidSignatureMessage"> <source>Regex method must be partial, parameterless, non-generic, and return Regex</source> <target state="translated">Regex 方法必須是部分、無參數、非泛型,並且傳回 Regex</target> <note /> </trans-unit> <trans-unit id="ReplacementError"> <source>Replacement pattern error.</source> <target state="translated">取代模式錯誤。</target> <note /> </trans-unit> <trans-unit id="ReversedCharacterRange"> <source>[x-y] range in reverse order.</source> <target state="translated">相反順序的 [x-y] 範圍。</target> <note /> </trans-unit> <trans-unit id="ReversedQuantifierRange"> <source>Illegal {x,y} with x &gt; y.</source> <target state="translated">不合法的 {x,y},因為 x &gt; y。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRange"> <source>Cannot include class \\{0} in character range.</source> <target state="translated">無法在字元範圍內包含類別 \\{0}。</target> <note /> </trans-unit> <trans-unit id="ShorthandClassInCharacterRangeNoPlaceholder"> <source>Cannot include class in character range.</source> <target state="translated">無法在字元範圍內包含類別。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReference"> <source>Reference to undefined group name '{0}'.</source> <target state="translated">未定義群組名稱 '{0}' 的參考。</target> <note /> </trans-unit> <trans-unit id="UndefinedNamedReferenceNoPlaceholder"> <source>Reference to undefined group name.</source> <target state="translated">未定義群組名稱的參考。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReference"> <source>Reference to undefined group number {0}.</source> <target state="translated">參考到未定義的群組編號 {0}。</target> <note /> </trans-unit> <trans-unit id="UndefinedNumberedReferenceNoPlaceholder"> <source>Reference to undefined group number.</source> <target state="translated">參考未定義的群組號碼。</target> <note /> </trans-unit> <trans-unit id="UnescapedEndingBackslash"> <source>Illegal \\ at end of pattern.</source> <target state="translated">模式結尾有不合法的 \\。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedControlCharacter"> <source>Unrecognized control character.</source> <target state="translated">無法識別的控制字元。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedEscape"> <source>Unrecognized escape sequence \\{0}.</source> <target state="translated">無法識別的逸出序列 \\{0}。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodeProperty"> <source>Unknown property '{0}'.</source> <target state="translated">未知的屬性 '{0}'。</target> <note /> </trans-unit> <trans-unit id="UnrecognizedUnicodePropertyNoPlaceholder"> <source>Unknown property Unicode property.</source> <target state="translated">未知屬性 Unicode 屬性。</target> <note /> </trans-unit> <trans-unit id="UnterminatedBracket"> <source>Unterminated [] set.</source> <target state="translated">未結束的 [] 集合。</target> <note /> </trans-unit> <trans-unit id="UnterminatedComment"> <source>Unterminated (?#...) comment.</source> <target state="translated">未結束的 (?#...) 註解。</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.zh-Hans.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hans" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">派生的 “JsonSerializerContext” 类型“{0}”指定 JSON-serializable 类型。该类型和所有包含类型必须设为部分,以启动源生成。</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">派生的 “JsonSerializerContext” 类型以及所有包含类型必须是部分。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">数据扩展属性“{0}.{1}”无效。它必须实现“IDictionary&lt;string, JsonElement&gt;”或“IDictionary&lt;string, object&gt;”,或为 “JsonObject”。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">数据扩展属性类型无效。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">有多个名为 {0} 的类型。已为第一个检测到类型的生成源。请使用 'JsonSerializableAttribute.TypeInfoPropertyName' 以解决此冲突。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">重复的类型名称。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">已使用 JsonIncludeAttribute 注释成员“{0}.{1}”,但对源生成器不可见。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">源生成模式不支持使用 JsonIncludeAttribute 注释的不可访问属性。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">类型“{0}”定义仅初始化属性,源生成模式当前不支持其反序列化。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">源生成模式当前不支持仅初始化属性的反序列化。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">类型“{0}”具有用 “JsonConstructorAttribute” 批注的多个构造函数。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">类型具有用 JsonConstructorAttribute 批注的多个构造函数。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">类型“{0}”具有多个带有 “JsonExtensionDataAttribute” 注释的成员。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">类型具有多个带有 JsonExtensionDataAttribute 注释的成员。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">未生成类型 '{0}' 的序列化元数据。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">未生成类型的序列化元数据。</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hans" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">派生的 “JsonSerializerContext” 类型“{0}”指定 JSON-serializable 类型。该类型和所有包含类型必须设为部分,以启动源生成。</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">派生的 “JsonSerializerContext” 类型以及所有包含类型必须是部分。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">数据扩展属性“{0}.{1}”无效。它必须实现“IDictionary&lt;string, JsonElement&gt;”或“IDictionary&lt;string, object&gt;”,或为 “JsonObject”。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">数据扩展属性类型无效。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">有多个名为 {0} 的类型。已为第一个检测到类型的生成源。请使用 'JsonSerializableAttribute.TypeInfoPropertyName' 以解决此冲突。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">重复的类型名称。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">已使用 JsonIncludeAttribute 注释成员“{0}.{1}”,但对源生成器不可见。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">源生成模式不支持使用 JsonIncludeAttribute 注释的不可访问属性。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">类型“{0}”定义仅初始化属性,源生成模式当前不支持其反序列化。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">源生成模式当前不支持仅初始化属性的反序列化。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">类型“{0}”具有用 “JsonConstructorAttribute” 批注的多个构造函数。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">类型具有用 JsonConstructorAttribute 批注的多个构造函数。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">类型“{0}”具有多个带有 “JsonExtensionDataAttribute” 注释的成员。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">类型具有多个带有 JsonExtensionDataAttribute 注释的成员。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">未生成类型 '{0}' 的序列化元数据。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">未生成类型的序列化元数据。</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hant.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">引數 '{0}' 未參照記錄訊息</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">未從記錄訊息參照引數</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">不支援產生 6 個以上的引數</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">不能有不同大小寫的相同範本</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">記錄方法名稱的開頭不能為 _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">記錄方法參數名稱的開頭不能為 _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">記錄方法不能有主體</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">記錄方法不可為泛型</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">記錄方法必須是部分</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">記錄方法必須傳回 void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">記錄方法必須是靜態</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">不能有格式錯誤的格式字串 (例如懸空 {, 等等)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">必須在 LoggerMessage 屬性中提供 LogLevel 值,或將其做為記錄方法的參數。</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">靜態記錄方法 '{0}' 的其中一個引數必須實作 Microsoft.Extensions.Logging.ILogger 介面</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">靜態記錄方法的其中一個引數必須實作 Microsoft.Extensions.Logging.ILogger 介面</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">找不到類別 {0} 中 Microsoft.Extensions.Logging.ILogger 類型的欄位</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">找不到 Microsoft.Extensions.Logging.ILogger 類型的欄位</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">找不到類型 {0} 的定義</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">找不到所需的類型定義</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">在類別 {0} 中找到多個 Microsoft.Extensions.Logging.ILogger 類型的欄位</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">找到多個 Microsoft.Extensions.Logging.ILogger 類型的欄位</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">從記錄訊息中移除備援限定詞 (資訊:、警告:、錯誤: 等等),因為它在指定的記錄層級中為隱含。</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">記錄訊息中的備援限定詞</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">請勿在記錄訊息中包含做為範本的例外狀況參數</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">請勿在記錄訊息中包含 {0} 的範本,因為系統是將它隱含處理</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">請勿在記錄訊息中包含做為範本的記錄層級參數</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">請勿在記錄訊息中包含做為範本的記錄器參數</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">多個記錄方法是使用類別 {1} 中的事件識別碼 {0}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">多個記錄方法不能在類別內使用相同的事件識別碼</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">未將範本 '{0}' 提供做為記錄方法的引數</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">記錄範本沒有對應的方法引數</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">引數 '{0}' 未參照記錄訊息</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">未從記錄訊息參照引數</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">不支援產生 6 個以上的引數</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">不能有不同大小寫的相同範本</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">記錄方法名稱的開頭不能為 _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">記錄方法參數名稱的開頭不能為 _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">記錄方法不能有主體</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">記錄方法不可為泛型</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">記錄方法必須是部分</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">記錄方法必須傳回 void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">記錄方法必須是靜態</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">不能有格式錯誤的格式字串 (例如懸空 {, 等等)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">必須在 LoggerMessage 屬性中提供 LogLevel 值,或將其做為記錄方法的參數。</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">靜態記錄方法 '{0}' 的其中一個引數必須實作 Microsoft.Extensions.Logging.ILogger 介面</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">靜態記錄方法的其中一個引數必須實作 Microsoft.Extensions.Logging.ILogger 介面</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">找不到類別 {0} 中 Microsoft.Extensions.Logging.ILogger 類型的欄位</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">找不到 Microsoft.Extensions.Logging.ILogger 類型的欄位</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">找不到類型 {0} 的定義</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">找不到所需的類型定義</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">在類別 {0} 中找到多個 Microsoft.Extensions.Logging.ILogger 類型的欄位</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">找到多個 Microsoft.Extensions.Logging.ILogger 類型的欄位</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">從記錄訊息中移除備援限定詞 (資訊:、警告:、錯誤: 等等),因為它在指定的記錄層級中為隱含。</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">記錄訊息中的備援限定詞</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">請勿在記錄訊息中包含做為範本的例外狀況參數</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">請勿在記錄訊息中包含 {0} 的範本,因為系統是將它隱含處理</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">請勿在記錄訊息中包含做為範本的記錄層級參數</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">請勿在記錄訊息中包含做為範本的記錄器參數</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">多個記錄方法是使用類別 {1} 中的事件識別碼 {0}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">多個記錄方法不能在類別內使用相同的事件識別碼</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">未將範本 '{0}' 提供做為記錄方法的引數</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">記錄範本沒有對應的方法引數</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ru.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ru" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">В сообщении ведения журнала нет ссылки на аргумент "{0}"</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">В сообщении ведения журнала нет ссылки на аргумент</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">Формирование более 6 аргументов не поддерживается</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Невозможно использовать шаблон с таким же именем в другом регистре</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Имена методов ведения журнала не могут начинаться с символа "_"</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Имена параметров метода ведения журнала не могут начинаться с символа "_"</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">У методов ведения журнала не может быть текста</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Методы ведения журнала не могут быть универсальными</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Методы ведения журнала должны быть частичными</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Методы ведения журнала должны возвращать значение void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Методы ведения журнала должны быть статическими</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Для строк формата не допускается неправильный формат (висячие символы "{" и т. п.)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Значение LogLevel должно быть указано в атрибуте LoggerMessage или в качестве параметра метода ведения журнала</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Один из аргументов статического метода ведения журнала "{0}" должен реализовывать интерфейс Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Один из аргументов статического метода ведения журнала должен реализовывать интерфейс Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">В классе {0} не найдены поля типа Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Не удалось найти поле типа Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Не найдено определение для типа {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Не найдено требуемое определение типа</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">В классе {0} обнаружено несколько полей типа Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Обнаружено несколько полей типа Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Удалите избыточный квалификатор (Info:, Warning:, Error:, и т. п.) из сообщения журнала, поскольку квалификатор подразумевается на указанном уровне ведения журнала.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Избыточный квалификатор в сообщении журнала</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Не включайте параметры исключений в качестве шаблонов в сообщение ведения журнала</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Не включайте шаблон для {0} в сообщение ведения журнала, поскольку он используется неявным образом</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Не включайте параметры уровня журнала в качестве шаблонов в сообщение ведения журнала</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Не включайте параметры средства ведения журнала в качестве шаблонов в сообщение ведения журнала</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Несколько методов ведения журнала используют идентификатор события {0} в классе {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Несколько методов ведения журнала не могут использовать одинаковый ИД события в пределах класса</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Шаблон "{0}" не указан в качестве аргумента для метода ведения журнала</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">У шаблона журнала нет соответствующего аргумента метода</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ru" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">В сообщении ведения журнала нет ссылки на аргумент "{0}"</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">В сообщении ведения журнала нет ссылки на аргумент</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">Формирование более 6 аргументов не поддерживается</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Невозможно использовать шаблон с таким же именем в другом регистре</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Имена методов ведения журнала не могут начинаться с символа "_"</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Имена параметров метода ведения журнала не могут начинаться с символа "_"</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">У методов ведения журнала не может быть текста</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Методы ведения журнала не могут быть универсальными</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Методы ведения журнала должны быть частичными</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Методы ведения журнала должны возвращать значение void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Методы ведения журнала должны быть статическими</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Для строк формата не допускается неправильный формат (висячие символы "{" и т. п.)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Значение LogLevel должно быть указано в атрибуте LoggerMessage или в качестве параметра метода ведения журнала</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Один из аргументов статического метода ведения журнала "{0}" должен реализовывать интерфейс Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Один из аргументов статического метода ведения журнала должен реализовывать интерфейс Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">В классе {0} не найдены поля типа Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Не удалось найти поле типа Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Не найдено определение для типа {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Не найдено требуемое определение типа</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">В классе {0} обнаружено несколько полей типа Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Обнаружено несколько полей типа Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Удалите избыточный квалификатор (Info:, Warning:, Error:, и т. п.) из сообщения журнала, поскольку квалификатор подразумевается на указанном уровне ведения журнала.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Избыточный квалификатор в сообщении журнала</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Не включайте параметры исключений в качестве шаблонов в сообщение ведения журнала</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Не включайте шаблон для {0} в сообщение ведения журнала, поскольку он используется неявным образом</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Не включайте параметры уровня журнала в качестве шаблонов в сообщение ведения журнала</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Не включайте параметры средства ведения журнала в качестве шаблонов в сообщение ведения журнала</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Несколько методов ведения журнала используют идентификатор события {0} в классе {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Несколько методов ведения журнала не могут использовать одинаковый ИД события в пределах класса</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Шаблон "{0}" не указан в качестве аргумента для метода ведения журнала</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">У шаблона журнала нет соответствующего аргумента метода</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.it.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="it" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Il tipo 'JsonSerializerContext 'derivato '{0}' specifica i tipi serializzabili JSON. Il tipo e tutti i tipi contenenti devono essere parziali per iniziare la generazione dell'origine.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">I tipi derivati 'JsonSerializerContext' e tutti i tipi contenenti devono essere parziali.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">La proprietà '{0}.{1}' dell'estensione dati non è valida. Deve implementare 'IDictionary&lt;string, JsonElement&gt;' o 'IDictionary&lt;String, Object&gt;' o 'JsonObject '.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Il tipo di proprietà dell'estensione dati non è valido.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Sono presenti più tipi denominati {0}. L'origine è stata generata per il primo tipo rilevato. Per risolvere questa collisione, usare 'JsonSerializableAttribute.TypeInfoPropertyName'.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Nome di tipo duplicato.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Il membro ' {0}.{1}' è stato annotato con JsonIncludeAttribute ma non è visibile al generatore di origine.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Le proprietà inaccessibili annotate con JsonIncludeAttribute non sono supportate nella modalità di generazione di origine.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Il tipo '{0}' definisce le proprietà di sola inizializzazione, la cui deserializzazione al momento non è supportata nella modalità di generazione di origine.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">La deserializzazione delle proprietà di sola inizializzazione al momento non è supportata nella modalità di generazione di origine.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Il tipo '{0}' contiene più costruttori che presentano l'annotazione 'JsonConstructorAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Il tipo contiene più costruttori che presentano l'annotazione JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Nel tipo '{0}' sono presenti più membri annotati con 'JsonExtensionDataAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Nel tipo sono presenti più membri annotati con JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Non sono stati generati metadati di serializzazione per il tipo '{0}'.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Non sono stati generati metadati di serializzazione per il tipo.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="it" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Il tipo 'JsonSerializerContext 'derivato '{0}' specifica i tipi serializzabili JSON. Il tipo e tutti i tipi contenenti devono essere parziali per iniziare la generazione dell'origine.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">I tipi derivati 'JsonSerializerContext' e tutti i tipi contenenti devono essere parziali.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">La proprietà '{0}.{1}' dell'estensione dati non è valida. Deve implementare 'IDictionary&lt;string, JsonElement&gt;' o 'IDictionary&lt;String, Object&gt;' o 'JsonObject '.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Il tipo di proprietà dell'estensione dati non è valido.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Sono presenti più tipi denominati {0}. L'origine è stata generata per il primo tipo rilevato. Per risolvere questa collisione, usare 'JsonSerializableAttribute.TypeInfoPropertyName'.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Nome di tipo duplicato.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Il membro ' {0}.{1}' è stato annotato con JsonIncludeAttribute ma non è visibile al generatore di origine.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Le proprietà inaccessibili annotate con JsonIncludeAttribute non sono supportate nella modalità di generazione di origine.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Il tipo '{0}' definisce le proprietà di sola inizializzazione, la cui deserializzazione al momento non è supportata nella modalità di generazione di origine.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">La deserializzazione delle proprietà di sola inizializzazione al momento non è supportata nella modalità di generazione di origine.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Il tipo '{0}' contiene più costruttori che presentano l'annotazione 'JsonConstructorAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Il tipo contiene più costruttori che presentano l'annotazione JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Nel tipo '{0}' sono presenti più membri annotati con 'JsonExtensionDataAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Nel tipo sono presenti più membri annotati con JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Non sono stati generati metadati di serializzazione per il tipo '{0}'.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Non sono stati generati metadati di serializzazione per il tipo.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.zh-Hant.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">衍生的 'JsonSerializerContext' 型別 '{0}' 指定了 JSON 可序列化類型。類型和所有包含類型必須設為部份,才可開始產生原始檔。</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">衍生的 'JsonSerializerContext' 類型和所有包含類型必須是部份。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">資料延伸屬性 '{0}.{1}' 無效。它必須實作 'IDictionary&lt;string, JsonElement&gt;' 或 'IDictionary&lt;string, object&gt;',或者為 'JsonObject'。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">資料延伸屬性類型無效。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">有多個名為 {0} 的類型。已為偵測到的第一個項目產生來源。請使用 'JsonSerializableAttribute.TypeInfoPropertyName' 解決此衝突。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">重複類型名稱。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">成員 '{0}.{1}' 已經以 JsonIncludeAttribute 標註,但對來源產生器是不可見的。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">來源產生模式不支援以 JsonIncludeAttribute 標註的無法存取屬性。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">來源產生模式目前不支援類型 '{0}' 定義之 init-only 屬性的還原序列化。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">來源產生模式目前不支援 init-only 屬性的還原序列化。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">類型 '{0}' 包含多個以 'JsonConstructorAttribute' 註解的建構函式。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">類型包含多個以 JsonConstructorAttribute 註解的建構函式。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">類型 '{0}' 有使用 'JsonExtensionDataAttribute' 標註的多個成員。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">類型具有使用 JsonExtensionDataAttribute 標註的多個成員。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">未產生類型 '{0}' 的序列化中繼資料。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">未產生類型的序列化中繼資料。</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">衍生的 'JsonSerializerContext' 型別 '{0}' 指定了 JSON 可序列化類型。類型和所有包含類型必須設為部份,才可開始產生原始檔。</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">衍生的 'JsonSerializerContext' 類型和所有包含類型必須是部份。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">資料延伸屬性 '{0}.{1}' 無效。它必須實作 'IDictionary&lt;string, JsonElement&gt;' 或 'IDictionary&lt;string, object&gt;',或者為 'JsonObject'。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">資料延伸屬性類型無效。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">有多個名為 {0} 的類型。已為偵測到的第一個項目產生來源。請使用 'JsonSerializableAttribute.TypeInfoPropertyName' 解決此衝突。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">重複類型名稱。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">成員 '{0}.{1}' 已經以 JsonIncludeAttribute 標註,但對來源產生器是不可見的。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">來源產生模式不支援以 JsonIncludeAttribute 標註的無法存取屬性。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">來源產生模式目前不支援類型 '{0}' 定義之 init-only 屬性的還原序列化。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">來源產生模式目前不支援 init-only 屬性的還原序列化。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">類型 '{0}' 包含多個以 'JsonConstructorAttribute' 註解的建構函式。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">類型包含多個以 JsonConstructorAttribute 註解的建構函式。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">類型 '{0}' 有使用 'JsonExtensionDataAttribute' 標註的多個成員。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">類型具有使用 JsonExtensionDataAttribute 標註的多個成員。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">未產生類型 '{0}' 的序列化中繼資料。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">未產生類型的序列化中繼資料。</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.de.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="de" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">Auf das Argument „{0}“ wird in der Protokollierungsnachricht nicht verwiesen.</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Auf das Argument wird in der Protokollierungsmeldung nicht verwiesen</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">Das Generieren von mehr als 6 Argumenten wird nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Die gleiche Vorlage darf nicht mit einer anderen Groß-/Kleinschreibung vorliegen.</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Namen für die Protokollierungsmethode dürfen nicht mit "_" beginnen.</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Parameternamen für die Protokollierungsmethode dürfen nicht mit "_" beginnen.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Protokollierungsmethoden dürfen keinen Text enthalten.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Protokollierungsmethoden können nicht generisch sein.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Protokollierungsmethoden müssen partiell sein.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Protokollierungsmethoden müssen leer zurückgegeben werden.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Protokollierungsmethoden müssen statisch sein.</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Nicht wohlgeformte Formatzeichenfolgen (beispielsweise mit überzähligen geschweiften Klammern) sind unzulässig.</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Ein LogLevel-Wert muss im LoggerMessage-Attribut oder als Parameter für die Protokollierungsmethode angegeben werden.</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Eines der Argumente für die statische Protokollierungsmethode „{0}“ muss die Microsoft.Extensions.Logging.ILogger-Schnittstelle implementieren.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Eines der Argumente für eine statische Protokollierungsmethode muss die Microsoft.Extensions.Logging.ILogger-Schnittstelle implementieren.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">In der Klasse "{0}" wurde kein Feld vom Typ "Microsoft.Extensions.Logging.ILogger" gefunden.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Feld vom Typ "Microsoft.Extensions.Logging.ILogger" nicht gefunden</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Die Definition für den Typ "{0}" wurde nicht gefunden.</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Erforderliche Typdefinition nicht gefunden</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">In der Klasse "{0}" wurden mehrere Felder vom Typ "Microsoft.Extensions.Logging.ILogger" gefunden.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Mehrere Felder vom Typ "Microsoft.Extensions.Logging.ILogger" gefunden</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Entfernen Sie den redundanten Qualifizierer (z. B. "Info:", "Warnung:" oder "Fehler:") aus der Protokollierungsmeldung, weil er auf der angegebenen Protokollebene implizit enthalten ist.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Redundanter Qualifizierer in Protokollierungsmeldung</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Ausnahmeparameter nicht als Vorlagen in die Protokollierungsmeldung einbeziehen</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Fügen Sie in der Protokollierungsmeldung keine Vorlage für "{0}" ein, weil dies implizit berücksichtigt wird.</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Protokolliergradparameter nicht als Vorlagen in die Protokollierungsmeldung einbeziehen</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Protokollierungsparameter nicht als Vorlagen in die Protokollierungsmeldung einbeziehen</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Die Ereignis-ID "{0}" wird von mehreren Protokollierungsmethoden in der Klasse "{1}" verwendet.</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Dieselbe Ereignis-ID kann nicht von mehreren Protokollierungsmethoden innerhalb einer Klasse verwendet werden</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Die Vorlage „{0}“ wird nicht als Argument für die Protokollierungsmethode bereitgestellt</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Protokollierungsvorlage weist kein entsprechendes Methodenargument auf</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="de" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">Auf das Argument „{0}“ wird in der Protokollierungsnachricht nicht verwiesen.</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Auf das Argument wird in der Protokollierungsmeldung nicht verwiesen</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">Das Generieren von mehr als 6 Argumenten wird nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Die gleiche Vorlage darf nicht mit einer anderen Groß-/Kleinschreibung vorliegen.</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Namen für die Protokollierungsmethode dürfen nicht mit "_" beginnen.</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Parameternamen für die Protokollierungsmethode dürfen nicht mit "_" beginnen.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Protokollierungsmethoden dürfen keinen Text enthalten.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Protokollierungsmethoden können nicht generisch sein.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Protokollierungsmethoden müssen partiell sein.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Protokollierungsmethoden müssen leer zurückgegeben werden.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Protokollierungsmethoden müssen statisch sein.</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Nicht wohlgeformte Formatzeichenfolgen (beispielsweise mit überzähligen geschweiften Klammern) sind unzulässig.</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Ein LogLevel-Wert muss im LoggerMessage-Attribut oder als Parameter für die Protokollierungsmethode angegeben werden.</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Eines der Argumente für die statische Protokollierungsmethode „{0}“ muss die Microsoft.Extensions.Logging.ILogger-Schnittstelle implementieren.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Eines der Argumente für eine statische Protokollierungsmethode muss die Microsoft.Extensions.Logging.ILogger-Schnittstelle implementieren.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">In der Klasse "{0}" wurde kein Feld vom Typ "Microsoft.Extensions.Logging.ILogger" gefunden.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Feld vom Typ "Microsoft.Extensions.Logging.ILogger" nicht gefunden</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Die Definition für den Typ "{0}" wurde nicht gefunden.</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Erforderliche Typdefinition nicht gefunden</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">In der Klasse "{0}" wurden mehrere Felder vom Typ "Microsoft.Extensions.Logging.ILogger" gefunden.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Mehrere Felder vom Typ "Microsoft.Extensions.Logging.ILogger" gefunden</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Entfernen Sie den redundanten Qualifizierer (z. B. "Info:", "Warnung:" oder "Fehler:") aus der Protokollierungsmeldung, weil er auf der angegebenen Protokollebene implizit enthalten ist.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Redundanter Qualifizierer in Protokollierungsmeldung</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Ausnahmeparameter nicht als Vorlagen in die Protokollierungsmeldung einbeziehen</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Fügen Sie in der Protokollierungsmeldung keine Vorlage für "{0}" ein, weil dies implizit berücksichtigt wird.</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Protokolliergradparameter nicht als Vorlagen in die Protokollierungsmeldung einbeziehen</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Protokollierungsparameter nicht als Vorlagen in die Protokollierungsmeldung einbeziehen</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Die Ereignis-ID "{0}" wird von mehreren Protokollierungsmethoden in der Klasse "{1}" verwendet.</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Dieselbe Ereignis-ID kann nicht von mehreren Protokollierungsmethoden innerhalb einer Klasse verwendet werden</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Die Vorlage „{0}“ wird nicht als Argument für die Protokollierungsmethode bereitgestellt</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Protokollierungsvorlage weist kein entsprechendes Methodenargument auf</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ko.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">로깅 메시지에서 ‘{0}’ 인수를 참조하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">로깅 메시지에서 인수를 참조하지 않음</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">6개가 넘는 인수 생성은 지원되지 않음</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">동일한 템플릿을 대/소문자를 다르게 하여 사용할 수는 없음</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">로깅 메서드 이름은 _로 시작할 수 없음</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">로깅 메서드 매개 변수 이름은 _로 시작할 수 없음</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">로깅 메서드에는 본문을 사용할 수 없음</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">로깅 메서드는 제네릭일 수 없음</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">로깅 메서드는 부분이어야 함</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">로깅 메서드는 void를 반환해야 함</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">로깅 메서드는 정적이어야 함</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">잘못된 형식의 문자열(예: 짝이 맞지 않는 중괄호({))은 사용할 수 없음</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">LogLevel 값은 LoggerMessage 특성에 지정하거나 로깅 메서드에 대한 매개 변수로 제공해야 함</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">정적 로깅 메서드 ‘{0}’의 인수 중 하나가 Microsoft.Extensions.Logging.ILogger 인터페이스를 구현해야 함</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">정적 로깅 메서드 인수 중 하나가 Microsoft.Extensions.Logging.ILogger 인터페이스를 구현해야 함</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">{0} 클래스에서 Microsoft.Extensions.Logging.ILogger 형식의 필드를 찾을 수 없음</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger 형식의 필드를 찾을 수 없음</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">형식 {0}에 대한 정의를 찾을 수 없음</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">필요한 형식 정의를 찾을 수 없음</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">{0} 클래스에 Microsoft.Extensions.Logging.ILogger 형식의 필드가 여러 개 있음</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger 형식의 필드가 여러 개 있음</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">중복 한정자(정보:, 경고:, 오류: 등)가 지정된 로그 수준에서 암시적이기 때문에 로깅 메시지에서 제거합니다.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">로깅 메시지에 중복 한정자가 있음</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">로깅 메시지에 템플릿으로 예외 매개 변수를 포함하지 않음</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">{0}에 대한 템플릿은 암시적으로 처리되므로 로깅 메시지에 포함하지 않음</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">로깅 메시지에 템플릿으로 로그 수준 매개 변수를 포함하지 않음</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">로깅 메시지에 템플릿으로 로거 매개 변수를 포함하지 않음</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">{1} 클래스에서 여러 로깅 메서드가 이벤트 ID {0}을(를) 사용함</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">여러 로깅 메서드가 한 클래스 내에서 동일한 이벤트 ID를 사용할 수는 없음</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">템플릿 {0}이(가) 로깅 메서드에 인수로 제공되지 않음</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">로깅 템플릿에 해당 하는 메서드 인수가 없음</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">로깅 메시지에서 ‘{0}’ 인수를 참조하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">로깅 메시지에서 인수를 참조하지 않음</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">6개가 넘는 인수 생성은 지원되지 않음</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">동일한 템플릿을 대/소문자를 다르게 하여 사용할 수는 없음</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">로깅 메서드 이름은 _로 시작할 수 없음</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">로깅 메서드 매개 변수 이름은 _로 시작할 수 없음</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">로깅 메서드에는 본문을 사용할 수 없음</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">로깅 메서드는 제네릭일 수 없음</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">로깅 메서드는 부분이어야 함</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">로깅 메서드는 void를 반환해야 함</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">로깅 메서드는 정적이어야 함</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">잘못된 형식의 문자열(예: 짝이 맞지 않는 중괄호({))은 사용할 수 없음</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">LogLevel 값은 LoggerMessage 특성에 지정하거나 로깅 메서드에 대한 매개 변수로 제공해야 함</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">정적 로깅 메서드 ‘{0}’의 인수 중 하나가 Microsoft.Extensions.Logging.ILogger 인터페이스를 구현해야 함</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">정적 로깅 메서드 인수 중 하나가 Microsoft.Extensions.Logging.ILogger 인터페이스를 구현해야 함</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">{0} 클래스에서 Microsoft.Extensions.Logging.ILogger 형식의 필드를 찾을 수 없음</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger 형식의 필드를 찾을 수 없음</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">형식 {0}에 대한 정의를 찾을 수 없음</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">필요한 형식 정의를 찾을 수 없음</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">{0} 클래스에 Microsoft.Extensions.Logging.ILogger 형식의 필드가 여러 개 있음</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger 형식의 필드가 여러 개 있음</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">중복 한정자(정보:, 경고:, 오류: 등)가 지정된 로그 수준에서 암시적이기 때문에 로깅 메시지에서 제거합니다.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">로깅 메시지에 중복 한정자가 있음</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">로깅 메시지에 템플릿으로 예외 매개 변수를 포함하지 않음</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">{0}에 대한 템플릿은 암시적으로 처리되므로 로깅 메시지에 포함하지 않음</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">로깅 메시지에 템플릿으로 로그 수준 매개 변수를 포함하지 않음</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">로깅 메시지에 템플릿으로 로거 매개 변수를 포함하지 않음</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">{1} 클래스에서 여러 로깅 메서드가 이벤트 ID {0}을(를) 사용함</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">여러 로깅 메서드가 한 클래스 내에서 동일한 이벤트 ID를 사용할 수는 없음</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">템플릿 {0}이(가) 로깅 메서드에 인수로 제공되지 않음</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">로깅 템플릿에 해당 하는 메서드 인수가 없음</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.pl.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="pl" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Podczas wiązania operacji dynamicznej wystąpił nieoczekiwany wyjątek.</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Nie można powiązać wywołania z niewywołującym obiektem.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Ustalanie przeciążenia nie powiodło się.</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Operatory binarne muszą być wywoływane z dwoma argumentami.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Operatory jednoargumentowe muszą być wywoływane z jednym argumentem.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Nazwa „{0}” jest ograniczona do metody i nie można jej używać jak właściwości.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">Zdarzenie „{0}” może pojawić się tylko po lewej stronie wyrażenia +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Nie można wywołać typu niebędącego delegatem.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Operatorów binarnych nie można wywoływać z jednym argumentem.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Nie można wykonać przypisania członka na pustym odwołaniu.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Nie można wykonać wiązania w czasie wykonania na pustym odwołaniu.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Nie można dynamicznie wywołać metody „{0}”, ponieważ ma atrybut Conditional.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można niejawnie przekonwertować typu „void” na „object”.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można zastosować operatora „{0}” do argumentów operacji typu „{1}” lub „{2}”.</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Do wyrażenia typu „{0}” nie można zastosować indeksowania przy użyciu konstrukcji [].</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Wewnątrz konstrukcji [] występuje niewłaściwa liczba indeksów. Oczekiwana liczba to „{0}”</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można zastosować operatora „{0}” do argumentu operacji typu „{1}”.</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można niejawnie przekonwertować typu „{0}” na „{1}”.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować typu „{0}” na „{1}”.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować wartości stałej „{0}” na „{1}”.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Operator „{0}” jest niejednoznaczny dla operandów typu „{1}” i „{2}”</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Dla argumentu operacji typu „{0}” operator „{1}” jest niejednoznaczny.</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować zera na „{0}”, ponieważ jest to niezerowalny typ wartości.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Za pośrednictwem typu zagnieżdżonego „{1}” nie można uzyskać dostępu do niestatycznego członka typu zewnętrznego „{0}”.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Element „{0}” nie zawiera definicji „{1}”.</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Dla niestatycznego pola, metody lub właściwości „{0}” wymagane jest odwołanie do obiektu.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Wystąpiło niejednoznaczne wywołanie między następującymi dwiema metodami lub właściwościami: „{0}” i „{1}”</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">Element „{0}” jest niedostępny z powodu swojego poziomu ochrony.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Żadne z przeciążeń dla elementu „{0}” nie pasuje do delegata „{1}”.</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Lewa strona przypisania musi być zmienną, właściwością lub indeksatorem</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Typ „{0}” nie ma zdefiniowanego konstruktora.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">W tym kontekście nie można użyć właściwości lub indeksatora „{0}”, ponieważ brakuje dla niej metody dostępu Get.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Nie można uzyskać dostępu do członka „{0}” przy użyciu odwołania do wystąpienia. Należy użyć nazwy typu jako kwalifikatora.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać pola tylko do odczytu (z wyjątkiem konstruktora lub inicjatora zmiennej)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Polu tylko do odczytu nie można przekazać parametru ref ani out (z wyjątkiem konstruktora)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać wartości do statycznego pola tylko do odczytu (jest to możliwe tylko w konstruktorze statycznym lub w inicjatorze zmiennej).</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Statycznemu polu tylko do odczytu nie można przekazać parametru ref lub out (z wyjątkiem konstruktora statycznego)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać wartości do właściwości lub indeksatora „{0}” – jest on tylko do odczytu</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekazać właściwości lub indeksatora jako parametru „out” lub „ref”.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Wywołań dynamicznych nie można używać w połączeniu ze wskaźnikami.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Aby istniała możliwość zastosowania zdefiniowanego przez użytkownika operatora logicznego („{0}”) jako operatora „short circuit”, typ zwracany tego operatora logicznego musi być identyczny z typem dwóch jego parametrów.</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Typ („{0}”) musi zawierać deklaracje operatora True i operatora False</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować wartości stałej „{0}” na „{1}” (w celu przesłonięcia należy użyć składni instrukcji „unchecked”).</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Niejednoznaczność pomiędzy „{0}” i „{1}”</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można niejawnie przekonwertować typu „{0}” na „{1}”. Istnieje konwersja jawna (czy nie brakuje rzutu?).</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Właściwości lub indeksatora „{0}” nie można użyć w tym kontekście, ponieważ metoda dostępu Get jest niedostępna.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Właściwości lub indeksatora „{0}” nie można użyć w tym kontekście, ponieważ metoda dostępu Set jest niedostępna.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Użycie ogólnego elementu {1} „{0}” wymaga argumentów typu „{2}”.</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Elementu {1} „{0}” nie można używać z argumentami typu.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Nieogólnego elementu {1} „{0}” nie można używać z argumentami typu.</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Element „{2}” musi być typem nieabstrakcyjnym z publicznym konstruktorem bez parametrów, aby można go było użyć jako parametru „{1}” w typie ogólnym lub metodzie „{0}”.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można użyć typu „{3}” jako parametru typu „{2}” w typie ogólnym lub metodzie „{0}”. Brak niejawnej konwersji odwołania z typu „{3}” na „{1}”.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można użyć typu „{3}” jako parametru typu „{2}” w typie ogólnym lub metodzie „{0}”. Typ zerowalny „{3}” nie spełnia ograniczenia elementu „{1}”.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można użyć typu „{3}” jako parametru typu „{2}” w typie ogólnym lub metodzie „{0}”. Typ zerowalny „{3}” nie spełnia ograniczenia elementu „{1}”. Typy zerowalne nie mogą spełniać żadnych ograniczeń interfejsów.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można użyć typu „{3}” jako parametru typu „{2}” w typie ogólnym lub metodzie „{0}”. Brak konwersji pakującej z „{3}” na „{1}”.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można wywnioskować argumentów typu dla metody „{0}” na podstawie użytkowania. Spróbuj jawnie określić argumenty typu.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ „{2}” musi być typem referencyjnym, aby można było używać go jako parametru „{1}” w typie ogólnym lub metodzie ogólnej „{0}”.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ „{2}” musi być niezerowalnym typem wartości, aby można było użyć go jako parametru „{1}” w typie ogólnym lub metodzie ogólnej „{0}”.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Niejednoznaczne zdefiniowane przez użytkownika konwersje „{0}” i „{1}” podczas konwertowania z „{2}” na „{3}”.</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">Element „{0}” nie jest obsługiwany przez język.</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">„{0}”: nie można jawnie wywołać operatora lub metody dostępu.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować na typ statyczny „{0}”.</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Argument operatora zwiększania lub zmniejszania musi być zmienną, właściwością lub indeksatorem.</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Żadna metoda przeciążenia metody „{0}” nie pobiera takiej liczby argumentów: „{1}”.</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Najlepiej dopasowana metoda przeciążona metody „{0}” zawiera niektóre nieprawidłowe argumenty.</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Argument „ref” lub „out” musi być zmienną umożliwiającą przypisanie.</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można uzyskać dostępu do członka chronionego „{0}” za pośrednictwem kwalifikatora typu „{1}”. Wymagany jest kwalifikator typu „{2}” (lub typu pochodzącego od tego typu).</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Właściwość, indeksator lub zdarzenie „{0}” nie jest obsługiwane przez język. Spróbuj bezpośrednio wywołać metody dostępu „{1}” lub „{2}”.</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Właściwość, indeksator lub zdarzenie „{0}” nie jest obsługiwane przez język. Spróbuj bezpośrednio wywołać metodę dostępu „{1}”.</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Delegat „{0}” nie przyjmuje argumentów „{1}”</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">W delegacie „{0}” występują nieprawidłowe argumenty.</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać wartości do elementu „{0}” ponieważ jest on tylko do odczytu</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekazać elementu „{0}” jako argumentu „ref” lub „out”, ponieważ jest on tylko do odczytu.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Nie można zmodyfikować zwracanej wartości „{0}”, ponieważ nie jest to zmienna.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można modyfikować członków pola tylko do odczytu „{0}” (z wyjątkiem członków w konstruktorze lub inicjatorze zmiennych).</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Członkom pola tylko do odczytu „{0}” nie można nadać atrybutu „ref” lub „out” (z wyjątkiem członków w konstruktorze).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Polom statycznego pola tylko do odczytu „{0}” nie można przypisać wartości (z wyjątkiem pól w statycznym konstruktorze lub inicjatorze zmiennych).</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Polom statycznego pola tylko do odczytu „{0}” nie można nadać atrybutu „ref” lub „out” (z wyjątkiem pól w konstruktorze statycznym).</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać wartości do elementu „{0}”, ponieważ jest to „{1}”.</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekazać elementu „{0}” jako argumentu „ref” lub „out”, ponieważ jest to „{1}”.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Element „{0}” nie zawiera konstruktora przyjmującego następującą liczbę argumentów: „{1}”.</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Członka „{0}”, którego nie można wywoływać, nie można używać jak metody.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Specyfikacje argumentu nazwanego muszą występować po wszystkich stałych argumentach, które zostały określone</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Najlepsza metoda przeładowania dla elementu „{0}” nie ma parametru o nazwie „{1}”.</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Delegat „{0}” nie ma parametru o nazwie „{1}”</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Nazwanego argumentu „{0}” nie można wprowadzać wiele razy.</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">Nazwany argument „{0}” określa parametr, dla którego argument pozycyjny został już wskazany.</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="pl" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Podczas wiązania operacji dynamicznej wystąpił nieoczekiwany wyjątek.</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Nie można powiązać wywołania z niewywołującym obiektem.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Ustalanie przeciążenia nie powiodło się.</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Operatory binarne muszą być wywoływane z dwoma argumentami.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Operatory jednoargumentowe muszą być wywoływane z jednym argumentem.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Nazwa „{0}” jest ograniczona do metody i nie można jej używać jak właściwości.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">Zdarzenie „{0}” może pojawić się tylko po lewej stronie wyrażenia +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Nie można wywołać typu niebędącego delegatem.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Operatorów binarnych nie można wywoływać z jednym argumentem.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Nie można wykonać przypisania członka na pustym odwołaniu.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Nie można wykonać wiązania w czasie wykonania na pustym odwołaniu.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Nie można dynamicznie wywołać metody „{0}”, ponieważ ma atrybut Conditional.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można niejawnie przekonwertować typu „void” na „object”.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można zastosować operatora „{0}” do argumentów operacji typu „{1}” lub „{2}”.</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Do wyrażenia typu „{0}” nie można zastosować indeksowania przy użyciu konstrukcji [].</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Wewnątrz konstrukcji [] występuje niewłaściwa liczba indeksów. Oczekiwana liczba to „{0}”</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można zastosować operatora „{0}” do argumentu operacji typu „{1}”.</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można niejawnie przekonwertować typu „{0}” na „{1}”.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować typu „{0}” na „{1}”.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować wartości stałej „{0}” na „{1}”.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Operator „{0}” jest niejednoznaczny dla operandów typu „{1}” i „{2}”</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Dla argumentu operacji typu „{0}” operator „{1}” jest niejednoznaczny.</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować zera na „{0}”, ponieważ jest to niezerowalny typ wartości.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Za pośrednictwem typu zagnieżdżonego „{1}” nie można uzyskać dostępu do niestatycznego członka typu zewnętrznego „{0}”.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Element „{0}” nie zawiera definicji „{1}”.</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Dla niestatycznego pola, metody lub właściwości „{0}” wymagane jest odwołanie do obiektu.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Wystąpiło niejednoznaczne wywołanie między następującymi dwiema metodami lub właściwościami: „{0}” i „{1}”</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">Element „{0}” jest niedostępny z powodu swojego poziomu ochrony.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Żadne z przeciążeń dla elementu „{0}” nie pasuje do delegata „{1}”.</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Lewa strona przypisania musi być zmienną, właściwością lub indeksatorem</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Typ „{0}” nie ma zdefiniowanego konstruktora.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">W tym kontekście nie można użyć właściwości lub indeksatora „{0}”, ponieważ brakuje dla niej metody dostępu Get.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Nie można uzyskać dostępu do członka „{0}” przy użyciu odwołania do wystąpienia. Należy użyć nazwy typu jako kwalifikatora.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać pola tylko do odczytu (z wyjątkiem konstruktora lub inicjatora zmiennej)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Polu tylko do odczytu nie można przekazać parametru ref ani out (z wyjątkiem konstruktora)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać wartości do statycznego pola tylko do odczytu (jest to możliwe tylko w konstruktorze statycznym lub w inicjatorze zmiennej).</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Statycznemu polu tylko do odczytu nie można przekazać parametru ref lub out (z wyjątkiem konstruktora statycznego)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać wartości do właściwości lub indeksatora „{0}” – jest on tylko do odczytu</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekazać właściwości lub indeksatora jako parametru „out” lub „ref”.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Wywołań dynamicznych nie można używać w połączeniu ze wskaźnikami.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Aby istniała możliwość zastosowania zdefiniowanego przez użytkownika operatora logicznego („{0}”) jako operatora „short circuit”, typ zwracany tego operatora logicznego musi być identyczny z typem dwóch jego parametrów.</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Typ („{0}”) musi zawierać deklaracje operatora True i operatora False</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować wartości stałej „{0}” na „{1}” (w celu przesłonięcia należy użyć składni instrukcji „unchecked”).</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Niejednoznaczność pomiędzy „{0}” i „{1}”</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można niejawnie przekonwertować typu „{0}” na „{1}”. Istnieje konwersja jawna (czy nie brakuje rzutu?).</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Właściwości lub indeksatora „{0}” nie można użyć w tym kontekście, ponieważ metoda dostępu Get jest niedostępna.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Właściwości lub indeksatora „{0}” nie można użyć w tym kontekście, ponieważ metoda dostępu Set jest niedostępna.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Użycie ogólnego elementu {1} „{0}” wymaga argumentów typu „{2}”.</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Elementu {1} „{0}” nie można używać z argumentami typu.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Nieogólnego elementu {1} „{0}” nie można używać z argumentami typu.</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Element „{2}” musi być typem nieabstrakcyjnym z publicznym konstruktorem bez parametrów, aby można go było użyć jako parametru „{1}” w typie ogólnym lub metodzie „{0}”.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można użyć typu „{3}” jako parametru typu „{2}” w typie ogólnym lub metodzie „{0}”. Brak niejawnej konwersji odwołania z typu „{3}” na „{1}”.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można użyć typu „{3}” jako parametru typu „{2}” w typie ogólnym lub metodzie „{0}”. Typ zerowalny „{3}” nie spełnia ograniczenia elementu „{1}”.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można użyć typu „{3}” jako parametru typu „{2}” w typie ogólnym lub metodzie „{0}”. Typ zerowalny „{3}” nie spełnia ograniczenia elementu „{1}”. Typy zerowalne nie mogą spełniać żadnych ograniczeń interfejsów.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można użyć typu „{3}” jako parametru typu „{2}” w typie ogólnym lub metodzie „{0}”. Brak konwersji pakującej z „{3}” na „{1}”.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Nie można wywnioskować argumentów typu dla metody „{0}” na podstawie użytkowania. Spróbuj jawnie określić argumenty typu.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ „{2}” musi być typem referencyjnym, aby można było używać go jako parametru „{1}” w typie ogólnym lub metodzie ogólnej „{0}”.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ „{2}” musi być niezerowalnym typem wartości, aby można było użyć go jako parametru „{1}” w typie ogólnym lub metodzie ogólnej „{0}”.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Niejednoznaczne zdefiniowane przez użytkownika konwersje „{0}” i „{1}” podczas konwertowania z „{2}” na „{3}”.</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">Element „{0}” nie jest obsługiwany przez język.</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">„{0}”: nie można jawnie wywołać operatora lub metody dostępu.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekonwertować na typ statyczny „{0}”.</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Argument operatora zwiększania lub zmniejszania musi być zmienną, właściwością lub indeksatorem.</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Żadna metoda przeciążenia metody „{0}” nie pobiera takiej liczby argumentów: „{1}”.</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Najlepiej dopasowana metoda przeciążona metody „{0}” zawiera niektóre nieprawidłowe argumenty.</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Argument „ref” lub „out” musi być zmienną umożliwiającą przypisanie.</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można uzyskać dostępu do członka chronionego „{0}” za pośrednictwem kwalifikatora typu „{1}”. Wymagany jest kwalifikator typu „{2}” (lub typu pochodzącego od tego typu).</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Właściwość, indeksator lub zdarzenie „{0}” nie jest obsługiwane przez język. Spróbuj bezpośrednio wywołać metody dostępu „{1}” lub „{2}”.</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Właściwość, indeksator lub zdarzenie „{0}” nie jest obsługiwane przez język. Spróbuj bezpośrednio wywołać metodę dostępu „{1}”.</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Delegat „{0}” nie przyjmuje argumentów „{1}”</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">W delegacie „{0}” występują nieprawidłowe argumenty.</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać wartości do elementu „{0}” ponieważ jest on tylko do odczytu</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekazać elementu „{0}” jako argumentu „ref” lub „out”, ponieważ jest on tylko do odczytu.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Nie można zmodyfikować zwracanej wartości „{0}”, ponieważ nie jest to zmienna.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Nie można modyfikować członków pola tylko do odczytu „{0}” (z wyjątkiem członków w konstruktorze lub inicjatorze zmiennych).</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Członkom pola tylko do odczytu „{0}” nie można nadać atrybutu „ref” lub „out” (z wyjątkiem członków w konstruktorze).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Polom statycznego pola tylko do odczytu „{0}” nie można przypisać wartości (z wyjątkiem pól w statycznym konstruktorze lub inicjatorze zmiennych).</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Polom statycznego pola tylko do odczytu „{0}” nie można nadać atrybutu „ref” lub „out” (z wyjątkiem pól w konstruktorze statycznym).</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przypisać wartości do elementu „{0}”, ponieważ jest to „{1}”.</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nie można przekazać elementu „{0}” jako argumentu „ref” lub „out”, ponieważ jest to „{1}”.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Element „{0}” nie zawiera konstruktora przyjmującego następującą liczbę argumentów: „{1}”.</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Członka „{0}”, którego nie można wywoływać, nie można używać jak metody.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Specyfikacje argumentu nazwanego muszą występować po wszystkich stałych argumentach, które zostały określone</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Najlepsza metoda przeładowania dla elementu „{0}” nie ma parametru o nazwie „{1}”.</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Delegat „{0}” nie ma parametru o nazwie „{1}”</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Nazwanego argumentu „{0}” nie można wprowadzać wiele razy.</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">Nazwany argument „{0}” określa parametr, dla którego argument pozycyjny został już wskazany.</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.fr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="fr" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Une exception inattendue s'est produite lors de la liaison d'une opération dynamique</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de lier l'appel sans objet appelant</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Échec de la résolution de surcharge</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Les opérateurs binaires doivent être appelés avec deux arguments</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Les opérateurs unaires doivent être appelés à l'aide d'un seul argument</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Le nom '{0}' est lié à une méthode et ne peut pas être utilisé comme une propriété</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">L'événement « {0} » ne peut apparaître qu'à gauche de +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appeler un type non-délégué</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appeler les opérateurs binaires avec un argument</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'effectuer une assignation de membre sur une référence null</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'effectuer une liaison au moment de l'exécution sur une référence null</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appeler dynamiquement la méthode '{0}' car elle a un attribut Conditional</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir implicitement le type 'void' en 'object'</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appliquer l'opérateur '{0}' aux opérandes de type '{1}' et '{2}'</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appliquer l'indexation à l'aide de [] à une expression de type '{0}'</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Nombre d'index incorrects dans [], '{0}' attendu</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appliquer l'opérateur '{0}' à un opérande de type '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir implicitement le type '{0}' en '{1}'</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir le type '{0}' en '{1}'</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir la valeur de constante '{0}' en '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">L'opérateur '{0}' est ambigu pour des opérandes de type '{1}' et '{2}'</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">L'opérateur '{0}' est ambigu pour un opérande de type '{1}'</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir null en '{0}', car il s'agit d'un type valeur qui n'autorise pas les valeurs null</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'accéder à un membre non statique de type externe '{0}' par l'intermédiaire du type imbriqué '{1}'</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' ne contient pas de définition pour '{1}'</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Une référence d'objet est requise pour la propriété, la méthode ou le champ non statique '{0}'</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">L'appel est ambigu entre les méthodes ou propriétés suivantes : '{0}' et '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' est inaccessible en raison de son niveau de protection</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Aucune surcharge pour '{0}' ne correspond au délégué '{1}'</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">La partie gauche d'une assignation doit être une variable, une propriété ou un indexeur</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Aucun constructeur n'est défini pour le type '{0}'</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser la propriété ou l'indexeur '{0}' dans ce contexte, car il lui manque l'accesseur get</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Le membre '{0}' est inaccessible avec une référence d'instance ; qualifiez-le avec un nom de type</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Un champ readonly ne peut pas être assigné (sauf s'il appartient à un constructeur ou un initialiseur de variable)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Un champ readonly ne peut pas être passé en ref ou out (sauf s'il appartient à un constructeur)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Un champ readonly statique ne peut pas être assigné (sauf s'il appartient à un constructeur statique ou un initialiseur de variable)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Un champ readonly statique ne peut pas être passé en ref ou out (sauf s'il appartient à un constructeur statique)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'assigner la propriété ou l'indexeur '{0}' -- il est en lecture seule</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer une propriété ou un indexeur en tant que paramètre de sortie (out) ni de référence (ref)</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser des appels dynamiques avec des pointeurs</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Pour être applicable en tant qu'opérateur de court-circuit, un opérateur logique défini par l'utilisateur '{0}') doit avoir le même type de retour que le type de ses 2 paramètres</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Le type ('{0}') doit contenir les déclarations de l'opérateur true et de l'opérateur false</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir la valeur de constante '{0}' en '{1}' (utilisez la syntaxe 'unchecked)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ambiguïté entre '{0}' et '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir implicitement le type '{0}' en '{1}'. Une conversion explicite existe (un cast est-il manquant ?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser la propriété ou l'indexeur '{0}' dans ce contexte, car l'accesseur get n'est pas accessible</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser la propriété ou l'indexeur '{0}' dans ce contexte, car l'accesseur set n'est pas accessible</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">L'utilisation du {1} '{0}' générique requiert les arguments de type '{2}'</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le {1} '{0}' avec des arguments de type</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le {1} '{0}' non générique avec des arguments de type</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' doit être un type non abstrait avec un constructeur sans paramètre public afin de l'utiliser comme paramètre '{1}' dans le type ou la méthode générique '{0}'</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le type '{3}' comme paramètre de type '{2}' dans le type ou la méthode générique '{0}'. Il n'y a pas de conversion de référence implicite de '{3}' en '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le type '{3}' comme paramètre de type '{2}' dans le type ou la méthode générique '{0}'. Le type Nullable '{3}' ne satisfait pas la contrainte de '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le type '{3}' comme paramètre de type '{2}' dans le type ou la méthode générique '{0}'. Le type Nullable '{3}' ne satisfait pas la contrainte de '{1}'. Les types Nullable ne peuvent pas satisfaire les contraintes d'interface.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le type '{3}' comme paramètre de type '{2}' dans le type ou la méthode générique '{0}'. Il n'y a pas de conversion boxing de '{3}' en '{1}'.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de déduire les arguments de type pour la méthode '{0}' à partir de l'utilisation. Essayez de spécifier les arguments de type de façon explicite.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Le type '{2}' doit être un type référence afin d'être utilisé comme paramètre '{1}' dans le type ou la méthode générique '{0}'</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Le type '{2}' doit être un type valeur non Nullable afin d'être utilisé comme paramètre '{1}' dans le type ou la méthode générique '{0}'</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Conversions définies par l'utilisateur ambiguës '{0}' et '{1}' lors de la conversion de '{2}' en '{3}'</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' n'est pas pris en charge par le langage</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' : impossible d'appeler explicitement un opérateur ou un accesseur</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir en type static '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">L'opérande d'un opérateur d'incrémentation ou de décrémentation doit être une variable, une propriété ou un indexeur</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Aucune surcharge pour la méthode '{0}' ne prend d'arguments '{1}'</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">La méthode surchargée correspondant le mieux à '{0}' a des arguments non valides</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Un argument ref ou out doit être une variable qui peut être assignée</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'accéder au membre protégé '{0}' par l'intermédiaire d'un qualificateur de type '{1}' ; le qualificateur doit être de type '{2}' (ou dérivé de celui-ci)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">La propriété, l'indexeur ou l'événement '{0}' n'est pas pris en charge par le langage ; essayez d'appeler directement les méthodes d'accesseur '{1}' ou '{2}'</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La propriété, l'indexeur ou l'événement '{0}' n'est pas pris en charge par le langage ; essayez d'appeler directement la méthode d'accesseur '{1}'</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Le délégué '{0}' ne prend pas les arguments '{1}'</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Le délégué '{0}' utilise des arguments non valides</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'assigner à '{0}', car il est en lecture seule</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer '{0}' comme argument ref ou out, car il est en lecture seule</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de modifier la valeur de retour de '{0}' car il ne s'agit pas d'une variable</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de modifier les membres d'un champ readonly '{0}' (sauf s'ils appartiennent à un constructeur ou un initialiseur de variable)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer les membres d'un champ readonly '{0}' en ref ou out (sauf s'ils appartiennent à un constructeur)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'assigner les champs du champ readonly statique '{0}' (sauf s'ils appartiennent à un constructeur statique ou un initialiseur de variable)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer les champs d'un champ readonly statique '{0}' en ref ou out (sauf s'ils appartiennent à un constructeur statique)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'assigner à '{0}', car il s'agit d'un '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer '{0}' en tant qu'argument ref ou out, car il s'agit d'un '{1}'</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' ne contient pas de constructeur qui accepte des arguments '{1}'</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser un membre '{0}' ne pouvant pas être appelé comme une méthode.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Les spécifications d'argument nommé doivent s'afficher après la spécification de tous les arguments fixes</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La meilleure surcharge pour '{0}' n'a pas de paramètre nommé '{1}'</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Le délégué '{0}' n'a pas de paramètre nommé '{1}'</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de spécifier plusieurs fois l'argument nommé '{0}'</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">L'argument nommé '{0}' spécifie un paramètre pour lequel un paramètre positionnel a déjà été donné</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="fr" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Une exception inattendue s'est produite lors de la liaison d'une opération dynamique</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de lier l'appel sans objet appelant</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Échec de la résolution de surcharge</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Les opérateurs binaires doivent être appelés avec deux arguments</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Les opérateurs unaires doivent être appelés à l'aide d'un seul argument</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Le nom '{0}' est lié à une méthode et ne peut pas être utilisé comme une propriété</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">L'événement « {0} » ne peut apparaître qu'à gauche de +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appeler un type non-délégué</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appeler les opérateurs binaires avec un argument</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'effectuer une assignation de membre sur une référence null</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'effectuer une liaison au moment de l'exécution sur une référence null</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appeler dynamiquement la méthode '{0}' car elle a un attribut Conditional</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir implicitement le type 'void' en 'object'</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appliquer l'opérateur '{0}' aux opérandes de type '{1}' et '{2}'</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appliquer l'indexation à l'aide de [] à une expression de type '{0}'</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Nombre d'index incorrects dans [], '{0}' attendu</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'appliquer l'opérateur '{0}' à un opérande de type '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir implicitement le type '{0}' en '{1}'</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir le type '{0}' en '{1}'</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir la valeur de constante '{0}' en '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">L'opérateur '{0}' est ambigu pour des opérandes de type '{1}' et '{2}'</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">L'opérateur '{0}' est ambigu pour un opérande de type '{1}'</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir null en '{0}', car il s'agit d'un type valeur qui n'autorise pas les valeurs null</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'accéder à un membre non statique de type externe '{0}' par l'intermédiaire du type imbriqué '{1}'</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' ne contient pas de définition pour '{1}'</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Une référence d'objet est requise pour la propriété, la méthode ou le champ non statique '{0}'</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">L'appel est ambigu entre les méthodes ou propriétés suivantes : '{0}' et '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' est inaccessible en raison de son niveau de protection</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Aucune surcharge pour '{0}' ne correspond au délégué '{1}'</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">La partie gauche d'une assignation doit être une variable, une propriété ou un indexeur</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Aucun constructeur n'est défini pour le type '{0}'</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser la propriété ou l'indexeur '{0}' dans ce contexte, car il lui manque l'accesseur get</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Le membre '{0}' est inaccessible avec une référence d'instance ; qualifiez-le avec un nom de type</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Un champ readonly ne peut pas être assigné (sauf s'il appartient à un constructeur ou un initialiseur de variable)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Un champ readonly ne peut pas être passé en ref ou out (sauf s'il appartient à un constructeur)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Un champ readonly statique ne peut pas être assigné (sauf s'il appartient à un constructeur statique ou un initialiseur de variable)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Un champ readonly statique ne peut pas être passé en ref ou out (sauf s'il appartient à un constructeur statique)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'assigner la propriété ou l'indexeur '{0}' -- il est en lecture seule</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer une propriété ou un indexeur en tant que paramètre de sortie (out) ni de référence (ref)</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser des appels dynamiques avec des pointeurs</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Pour être applicable en tant qu'opérateur de court-circuit, un opérateur logique défini par l'utilisateur '{0}') doit avoir le même type de retour que le type de ses 2 paramètres</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Le type ('{0}') doit contenir les déclarations de l'opérateur true et de l'opérateur false</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir la valeur de constante '{0}' en '{1}' (utilisez la syntaxe 'unchecked)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ambiguïté entre '{0}' et '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir implicitement le type '{0}' en '{1}'. Une conversion explicite existe (un cast est-il manquant ?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser la propriété ou l'indexeur '{0}' dans ce contexte, car l'accesseur get n'est pas accessible</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser la propriété ou l'indexeur '{0}' dans ce contexte, car l'accesseur set n'est pas accessible</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">L'utilisation du {1} '{0}' générique requiert les arguments de type '{2}'</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le {1} '{0}' avec des arguments de type</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le {1} '{0}' non générique avec des arguments de type</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' doit être un type non abstrait avec un constructeur sans paramètre public afin de l'utiliser comme paramètre '{1}' dans le type ou la méthode générique '{0}'</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le type '{3}' comme paramètre de type '{2}' dans le type ou la méthode générique '{0}'. Il n'y a pas de conversion de référence implicite de '{3}' en '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le type '{3}' comme paramètre de type '{2}' dans le type ou la méthode générique '{0}'. Le type Nullable '{3}' ne satisfait pas la contrainte de '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le type '{3}' comme paramètre de type '{2}' dans le type ou la méthode générique '{0}'. Le type Nullable '{3}' ne satisfait pas la contrainte de '{1}'. Les types Nullable ne peuvent pas satisfaire les contraintes d'interface.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser le type '{3}' comme paramètre de type '{2}' dans le type ou la méthode générique '{0}'. Il n'y a pas de conversion boxing de '{3}' en '{1}'.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de déduire les arguments de type pour la méthode '{0}' à partir de l'utilisation. Essayez de spécifier les arguments de type de façon explicite.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Le type '{2}' doit être un type référence afin d'être utilisé comme paramètre '{1}' dans le type ou la méthode générique '{0}'</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Le type '{2}' doit être un type valeur non Nullable afin d'être utilisé comme paramètre '{1}' dans le type ou la méthode générique '{0}'</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Conversions définies par l'utilisateur ambiguës '{0}' et '{1}' lors de la conversion de '{2}' en '{3}'</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' n'est pas pris en charge par le langage</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' : impossible d'appeler explicitement un opérateur ou un accesseur</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de convertir en type static '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">L'opérande d'un opérateur d'incrémentation ou de décrémentation doit être une variable, une propriété ou un indexeur</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Aucune surcharge pour la méthode '{0}' ne prend d'arguments '{1}'</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">La méthode surchargée correspondant le mieux à '{0}' a des arguments non valides</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Un argument ref ou out doit être une variable qui peut être assignée</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'accéder au membre protégé '{0}' par l'intermédiaire d'un qualificateur de type '{1}' ; le qualificateur doit être de type '{2}' (ou dérivé de celui-ci)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">La propriété, l'indexeur ou l'événement '{0}' n'est pas pris en charge par le langage ; essayez d'appeler directement les méthodes d'accesseur '{1}' ou '{2}'</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La propriété, l'indexeur ou l'événement '{0}' n'est pas pris en charge par le langage ; essayez d'appeler directement la méthode d'accesseur '{1}'</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Le délégué '{0}' ne prend pas les arguments '{1}'</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Le délégué '{0}' utilise des arguments non valides</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'assigner à '{0}', car il est en lecture seule</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer '{0}' comme argument ref ou out, car il est en lecture seule</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de modifier la valeur de retour de '{0}' car il ne s'agit pas d'une variable</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de modifier les membres d'un champ readonly '{0}' (sauf s'ils appartiennent à un constructeur ou un initialiseur de variable)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer les membres d'un champ readonly '{0}' en ref ou out (sauf s'ils appartiennent à un constructeur)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'assigner les champs du champ readonly statique '{0}' (sauf s'ils appartiennent à un constructeur statique ou un initialiseur de variable)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer les champs d'un champ readonly statique '{0}' en ref ou out (sauf s'ils appartiennent à un constructeur statique)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'assigner à '{0}', car il s'agit d'un '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de passer '{0}' en tant qu'argument ref ou out, car il s'agit d'un '{1}'</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' ne contient pas de constructeur qui accepte des arguments '{1}'</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Impossible d'utiliser un membre '{0}' ne pouvant pas être appelé comme une méthode.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Les spécifications d'argument nommé doivent s'afficher après la spécification de tous les arguments fixes</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La meilleure surcharge pour '{0}' n'a pas de paramètre nommé '{1}'</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Le délégué '{0}' n'a pas de paramètre nommé '{1}'</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Impossible de spécifier plusieurs fois l'argument nommé '{0}'</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">L'argument nommé '{0}' spécifie un paramètre pour lequel un paramètre positionnel a déjà été donné</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.tr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="tr" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Türetilmiş 'JsonSerializerContext' türü '{0}' JSON ile seri hale getirilebilir türleri belirtir. kaynak oluşturmayı başlatmak için bu türün ve bu türü içeren tüm türlerin kısmi yapılması gerekir.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Türetilmiş 'JsonSerializerContext' türleri ve bunları içeren tüm türler kısmi olmalıdır.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">'{0}.{1}' veri uzantısı özelliği geçersiz. 'IDictionary&lt;string, JsonElement&gt;' veya 'IDictionary&lt;string, object&gt;' uygulamalı ya da 'JsonObject' olmalıdır.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Veri uzantısı özellik türü geçersiz.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">{0} adını taşıyan birden çok tür var. Kaynak, algılanan ilk tür için oluşturuldu. Bu çarpışmayı çözmek için 'JsonSerializableAttribute.TypeInfoPropertyName' özelliğini kullanın.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Yinelenen tür adı.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">'{0}.{1}' üyesine JsonIncludeAttribute notu eklendi ancak bu üye kaynak oluşturucu tarafından görülmüyor.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">JsonIncludeAttribute notu eklenmiş erişilemeyen özellikler kaynak oluşturma modunda desteklenmiyor.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">‘{0}’ türü, seri durumdan çıkarılması şu anda kaynak oluşturma modunda desteklenmeyen yalnızca başlangıç özelliklerini tanımlar.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Yalnızca başlangıç özelliklerini seri durumdan çıkarma şu anda kaynak oluşturma modunda desteklenmiyor.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">'{0}' türünün 'JsonConstructorAttribute' ile açıklanan birden çok oluşturucusu var.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Türün JsonConstructorAttribute ile açıklanan birden çok oluşturucusu var.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">'{0}' türü, JsonExtensionDataAttribute ile ilişkili birden çok üyeye sahip.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Tür, JsonExtensionDataAttribute ile açıklanan birden çok üyeye sahip.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">'{0}' türü için serileştirme meta verileri oluşturulmadı.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Tür için serileştirme meta verileri oluşturulmadı.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="tr" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Türetilmiş 'JsonSerializerContext' türü '{0}' JSON ile seri hale getirilebilir türleri belirtir. kaynak oluşturmayı başlatmak için bu türün ve bu türü içeren tüm türlerin kısmi yapılması gerekir.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Türetilmiş 'JsonSerializerContext' türleri ve bunları içeren tüm türler kısmi olmalıdır.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">'{0}.{1}' veri uzantısı özelliği geçersiz. 'IDictionary&lt;string, JsonElement&gt;' veya 'IDictionary&lt;string, object&gt;' uygulamalı ya da 'JsonObject' olmalıdır.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Veri uzantısı özellik türü geçersiz.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">{0} adını taşıyan birden çok tür var. Kaynak, algılanan ilk tür için oluşturuldu. Bu çarpışmayı çözmek için 'JsonSerializableAttribute.TypeInfoPropertyName' özelliğini kullanın.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Yinelenen tür adı.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">'{0}.{1}' üyesine JsonIncludeAttribute notu eklendi ancak bu üye kaynak oluşturucu tarafından görülmüyor.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">JsonIncludeAttribute notu eklenmiş erişilemeyen özellikler kaynak oluşturma modunda desteklenmiyor.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">‘{0}’ türü, seri durumdan çıkarılması şu anda kaynak oluşturma modunda desteklenmeyen yalnızca başlangıç özelliklerini tanımlar.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Yalnızca başlangıç özelliklerini seri durumdan çıkarma şu anda kaynak oluşturma modunda desteklenmiyor.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">'{0}' türünün 'JsonConstructorAttribute' ile açıklanan birden çok oluşturucusu var.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Türün JsonConstructorAttribute ile açıklanan birden çok oluşturucusu var.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">'{0}' türü, JsonExtensionDataAttribute ile ilişkili birden çok üyeye sahip.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Tür, JsonExtensionDataAttribute ile açıklanan birden çok üyeye sahip.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">'{0}' türü için serileştirme meta verileri oluşturulmadı.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Tür için serileştirme meta verileri oluşturulmadı.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.ja.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">引数 '{0}' はログ メッセージから参照されていません</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">引数はログ メッセージから参照されていません</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">6 つ以上の引数の生成はサポートされません</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">大文字と小文字に対して同じテンプレートを使用できません</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">ログ メソッド名は「 _ 」で始まることはできません</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Logging method パラメーター名は「 _ 」で始まることはできません</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">ログ メソッドは本文を含めることができません</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">ログ メソッドを汎用にすることはできません</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">ログ記録方法の一部が必要です</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">ログ メソッドは無効を返す必要があります</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">ログ メソッドは静的である必要があります</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">(dangling {など) 誤った形式の文字列を持つことはできません</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">LogLevel 値は、LoggingMessage 属性または logging メソッドのパラメーターとして指定する必要があります</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">静的ログ メソッド '{0}' への引数の 1 つには、Microsoft.Extensions.Logging.ILogger インターフェイスを実装する必要があります。</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">静的ログ メソッドへの引数の 1 つには、Microsoft.Extensions.Logging.ILogger インターフェイスを実装する必要があります。</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">クラスで Microsoft.Extensions.Logging.ILogger 型のフィールドが見つかりませんでした {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger 型のフィールドが見つかりませんでした</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">{0} 型の定義が見つかりません</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">必要な型の定義が見つかりませんでした</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">クラスに Microsoft.Extensions.Logging.ILogger という種類の複数のフィールドがあります {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger という種類の複数のフィールドが見つかりました</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">指定されたログ レベルでは暗黙的であるため、冗長な修飾子 (Info:、Warning:、Error: など) をログ メッセージから削除します。</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">ログ メッセージ内の冗長な修飾子</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">ログ メッセージに例外パラメーターをテンプレートとして含めません</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">暗黙的に処理が行 われているため、ログ メッセージに {0} のテンプレートを含めません</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">ログ メッセージには、ログ レベル パラメーターをテンプレートとして含めることはできません</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">ログ メッセージにロガー パラメーターをテンプレートとして含めません</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">複数のログ記録方法でクラス {1}内のイベント ID {0} を使用しています</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">複数のログ記録方法では、クラス内で同じイベント ID を使用できません</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">テンプレート '{0}' は、ログ メソッドの引数として提供されません</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">ログ テンプレートに対応するメソッド引数がありません</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">引数 '{0}' はログ メッセージから参照されていません</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">引数はログ メッセージから参照されていません</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">6 つ以上の引数の生成はサポートされません</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">大文字と小文字に対して同じテンプレートを使用できません</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">ログ メソッド名は「 _ 」で始まることはできません</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Logging method パラメーター名は「 _ 」で始まることはできません</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">ログ メソッドは本文を含めることができません</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">ログ メソッドを汎用にすることはできません</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">ログ記録方法の一部が必要です</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">ログ メソッドは無効を返す必要があります</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">ログ メソッドは静的である必要があります</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">(dangling {など) 誤った形式の文字列を持つことはできません</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">LogLevel 値は、LoggingMessage 属性または logging メソッドのパラメーターとして指定する必要があります</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">静的ログ メソッド '{0}' への引数の 1 つには、Microsoft.Extensions.Logging.ILogger インターフェイスを実装する必要があります。</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">静的ログ メソッドへの引数の 1 つには、Microsoft.Extensions.Logging.ILogger インターフェイスを実装する必要があります。</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">クラスで Microsoft.Extensions.Logging.ILogger 型のフィールドが見つかりませんでした {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger 型のフィールドが見つかりませんでした</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">{0} 型の定義が見つかりません</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">必要な型の定義が見つかりませんでした</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">クラスに Microsoft.Extensions.Logging.ILogger という種類の複数のフィールドがあります {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger という種類の複数のフィールドが見つかりました</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">指定されたログ レベルでは暗黙的であるため、冗長な修飾子 (Info:、Warning:、Error: など) をログ メッセージから削除します。</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">ログ メッセージ内の冗長な修飾子</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">ログ メッセージに例外パラメーターをテンプレートとして含めません</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">暗黙的に処理が行 われているため、ログ メッセージに {0} のテンプレートを含めません</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">ログ メッセージには、ログ レベル パラメーターをテンプレートとして含めることはできません</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">ログ メッセージにロガー パラメーターをテンプレートとして含めません</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">複数のログ記録方法でクラス {1}内のイベント ID {0} を使用しています</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">複数のログ記録方法では、クラス内で同じイベント ID を使用できません</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">テンプレート '{0}' は、ログ メソッドの引数として提供されません</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">ログ テンプレートに対応するメソッド引数がありません</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.tr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="tr" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">'{0}' bağımsız değişkenine günlük iletisinden başvurulmuyor</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Bağımsız değişkene günlüğe kaydetme iletisinden başvurulmuyor</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">6’dan fazla bağımsız değişken oluşturma özelliği desteklenmiyor</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Aynı şablon farklı büyük/küçük harfler içeremez</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Günlüğe kaydetme yöntemi adları _ ile başlayamaz</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Günlüğe kaydetme yöntemi parametre adları _ ile başlayamaz</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Günlüğe kaydetme yöntemleri gövde içeremez</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Günlüğe kaydetme yöntemleri genel olamaz</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Günlüğe kaydetme yöntemleri kısmi olmalıdır</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Günlüğe kaydetme yöntemleri boş değer döndürmelidir</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Günlüğe kaydetme yöntemleri statik olmalıdır</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Hatalı biçimlendirilmiş biçim dizeleri (aykırı { vb. gibi) içeremez</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">LoggerMessage özniteliğinde veya günlüğe kaydetme yönteminin parametresi olarak bir LogLevel değerinin belirtilmesi gerekiyor</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">'{0}' statik günlük metoduna yönelik bağımsız değişkenlerden biri Microsoft.Extensions.Logging.ILogger arabirimini uygulamalıdır</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Statik günlük metoduna yönelik bağımsız değişkenlerden biri Microsoft.Extensions.Logging.ILogger arabirimini uygulamalıdır</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">{0} sınıfında Microsoft.Extensions.Logging.ILogger türündeki alan bulunamadı</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger türündeki alan bulunamadı</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">{0} türü için tanım bulunamadı</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Gerekli bir tür tanımı bulunamadı</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">{0} sınıfında Microsoft.Extensions.Logging.ILogger türünde birden çok alan bulundu</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger türünde birden çok alan bulundu</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Belirtilen günlük düzeyinde örtük olduğundan gereksiz niteleyiciyi (Bilgi:, Uyarı:, Hata: vb.) günlüğe kaydetme iletisinden kaldırın.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Günlüğe kaydetme iletisindeki gereksiz niteleyici</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Özel durum parametrelerini günlüğe kaydetme iletisine şablon olarak eklemeyin</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Örtük olarak dikkate alındığından günlüğe kaydetme iletisine {0} şablonu eklemeyin</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Günlük düzeyi parametrelerini günlüğe kaydetme iletisine şablon olarak eklemeyin</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Günlükçü parametrelerini günlüğe kaydetme iletisine şablon olarak eklemeyin</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Birden çok günlüğe kaydetme yöntemi {1} sınıfında {0} olay kimliğini kullanıyor</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Birden çok günlüğe kaydetme yöntemi bir sınıf içinde aynı olay kimliğini kullanamaz</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">‘{0}’ şablonu günlüğe kaydetme yönteminin bağımsız değişkeni olarak sağlanmadı</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Günlüğe kaydetme şablonunda karşılık gelen yöntem bağımsız değişkeni yok</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="tr" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">'{0}' bağımsız değişkenine günlük iletisinden başvurulmuyor</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Bağımsız değişkene günlüğe kaydetme iletisinden başvurulmuyor</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">6’dan fazla bağımsız değişken oluşturma özelliği desteklenmiyor</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Aynı şablon farklı büyük/küçük harfler içeremez</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Günlüğe kaydetme yöntemi adları _ ile başlayamaz</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Günlüğe kaydetme yöntemi parametre adları _ ile başlayamaz</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Günlüğe kaydetme yöntemleri gövde içeremez</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Günlüğe kaydetme yöntemleri genel olamaz</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Günlüğe kaydetme yöntemleri kısmi olmalıdır</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Günlüğe kaydetme yöntemleri boş değer döndürmelidir</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Günlüğe kaydetme yöntemleri statik olmalıdır</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Hatalı biçimlendirilmiş biçim dizeleri (aykırı { vb. gibi) içeremez</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">LoggerMessage özniteliğinde veya günlüğe kaydetme yönteminin parametresi olarak bir LogLevel değerinin belirtilmesi gerekiyor</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">'{0}' statik günlük metoduna yönelik bağımsız değişkenlerden biri Microsoft.Extensions.Logging.ILogger arabirimini uygulamalıdır</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Statik günlük metoduna yönelik bağımsız değişkenlerden biri Microsoft.Extensions.Logging.ILogger arabirimini uygulamalıdır</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">{0} sınıfında Microsoft.Extensions.Logging.ILogger türündeki alan bulunamadı</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger türündeki alan bulunamadı</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">{0} türü için tanım bulunamadı</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Gerekli bir tür tanımı bulunamadı</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">{0} sınıfında Microsoft.Extensions.Logging.ILogger türünde birden çok alan bulundu</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Microsoft.Extensions.Logging.ILogger türünde birden çok alan bulundu</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Belirtilen günlük düzeyinde örtük olduğundan gereksiz niteleyiciyi (Bilgi:, Uyarı:, Hata: vb.) günlüğe kaydetme iletisinden kaldırın.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Günlüğe kaydetme iletisindeki gereksiz niteleyici</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Özel durum parametrelerini günlüğe kaydetme iletisine şablon olarak eklemeyin</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Örtük olarak dikkate alındığından günlüğe kaydetme iletisine {0} şablonu eklemeyin</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Günlük düzeyi parametrelerini günlüğe kaydetme iletisine şablon olarak eklemeyin</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Günlükçü parametrelerini günlüğe kaydetme iletisine şablon olarak eklemeyin</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Birden çok günlüğe kaydetme yöntemi {1} sınıfında {0} olay kimliğini kullanıyor</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Birden çok günlüğe kaydetme yöntemi bir sınıf içinde aynı olay kimliğini kullanamaz</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">‘{0}’ şablonu günlüğe kaydetme yönteminin bağımsız değişkeni olarak sağlanmadı</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Günlüğe kaydetme şablonunda karşılık gelen yöntem bağımsız değişkeni yok</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.es.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="es" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">El tipo derivado "JsonSerializerContext" "{0}" especifica tipos de JSON serializables. El tipo y todos los tipos que contienen deben hacerse parciales para iniciar la generación de origen.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Los tipos derivados "JsonSerializerContext" y todos los tipos que contienen deben ser parciales.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">La propiedad de extensión de datos '{0}.{1}' no es válida. Debe implementar 'IDictionary&lt;string, JsonElement&gt;' o 'IDictionary&lt;string, object&gt;', o ser 'JsonObject'.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Tipo de propiedad de extensión de datos no válido.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Hay varios tipos denominados {0}. El origen se generó para el primero detectado. Use "JsonSerializableAttribute.TypeInfoPropertyName" para resolver esta colisión.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Nombre de tipo duplicado.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">El miembro '{0}.{1}' se ha anotado con JsonIncludeAttribute, pero no es visible para el generador de origen.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Las propiedades inaccesibles anotadas con JsonIncludeAttribute no se admiten en el modo de generación de origen.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">El tipo '{0}' define propiedades de solo inicialización, pero la deserialización no es compatible actualmente con el modo de generación de origen.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Actualmente no se admite la deserialización de propiedades de solo inicialización en el modo de generación de origen.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">El tipo '{0}' tiene varios constructores anotados con 'JsonConstructorAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">El tipo tiene varios constructores anotados con JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">El tipo '{0}' tiene varios miembros anotados con 'JsonExtensionDataAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">El tipo tiene varios miembros anotados con JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">No generó metadatos de serialización para el tipo '{0}".</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">No generó metadatos de serialización de metadatos para el tipo.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="es" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">El tipo derivado "JsonSerializerContext" "{0}" especifica tipos de JSON serializables. El tipo y todos los tipos que contienen deben hacerse parciales para iniciar la generación de origen.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Los tipos derivados "JsonSerializerContext" y todos los tipos que contienen deben ser parciales.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">La propiedad de extensión de datos '{0}.{1}' no es válida. Debe implementar 'IDictionary&lt;string, JsonElement&gt;' o 'IDictionary&lt;string, object&gt;', o ser 'JsonObject'.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Tipo de propiedad de extensión de datos no válido.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Hay varios tipos denominados {0}. El origen se generó para el primero detectado. Use "JsonSerializableAttribute.TypeInfoPropertyName" para resolver esta colisión.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Nombre de tipo duplicado.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">El miembro '{0}.{1}' se ha anotado con JsonIncludeAttribute, pero no es visible para el generador de origen.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Las propiedades inaccesibles anotadas con JsonIncludeAttribute no se admiten en el modo de generación de origen.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">El tipo '{0}' define propiedades de solo inicialización, pero la deserialización no es compatible actualmente con el modo de generación de origen.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Actualmente no se admite la deserialización de propiedades de solo inicialización en el modo de generación de origen.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">El tipo '{0}' tiene varios constructores anotados con 'JsonConstructorAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">El tipo tiene varios constructores anotados con JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">El tipo '{0}' tiene varios miembros anotados con 'JsonExtensionDataAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">El tipo tiene varios miembros anotados con JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">No generó metadatos de serialización para el tipo '{0}".</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">No generó metadatos de serialización de metadatos para el tipo.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.pt-BR.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="pt-BR" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Ocorreu uma exceção inesperada ao associar uma operação dinâmica</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível associar chamada sem objeto de chamada</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Falha na resolução da sobrecarga</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Os operadores binários devem ser chamados com dois argumentos</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Os operadores unários devem ser chamados com um argumento</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">O nome '{0}' é associado a um método e não pode ser usado como uma propriedade</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">O evento '{0}' somente pode aparecer no lado esquerdo de +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível chamar um tipo não delegado</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Os operadores binários não podem ser chamados com um argumento</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível executar atribuição de membro em uma referência nula</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível fazer associação em tempo de execução em uma referência nula</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível chamar o método '{0}' dinamicamente porque ele tem um atributo Conditional</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter implicitamente o tipo 'void' em 'object'</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">O operador '{0}' não pode ser aplicado a operandos dos tipos '{1}' e '{2}'</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível aplicar a indexação com [] a uma expressão do tipo '{0}'</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Número incorreto de índices dentro de []; esperava-se '{0}'</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O operador '{0}' não pode ser aplicado ao operando do tipo '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter implicitamente tipo '{0}' em '{1}'</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter tipo '{0}' em '{1}'</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O valor de constante '{0}' não pode ser convertido em '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">O operador '{0}' é ambíguo em operandos dos tipos '{1}' e '{2}'</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O operador '{0}' é ambíguo em um operando do tipo '{1}'</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter o valor nulo em '{0}' porque ele não é um tipo de valor não nulo</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível acessar um membro não estático do tipo externo '{0}' através do tipo aninhado '{1}'</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" não contém uma definição para "{1}"</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Uma referência de objeto é necessária para o campo, o método ou a propriedade '{0}' não estática</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">A chamada é ambígua entre os seguintes métodos ou propriedades: '{0}' e '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" é inacessível devido ao seu nível de proteção</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nenhuma sobrecarga de '{0}' corresponde ao representante '{1}'</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">O lado esquerdo de uma atribuição deve ser uma variável, uma propriedade ou um indexador</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{0}' não tem construtores definidos</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">A propriedade ou o indexador '{0}' não pode ser usado neste contexto porque não possui o acessador get</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">O membro '{0}' não pode ser acessado com uma referência de instância; qualifique-o com um nome de tipo</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Um campo somente leitura não pode ser atribuído (exceto em um construtor ou inicializador de variável)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Um campo somente leitura não pode ser passado como ref ou out (exceto em um construtor)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Um campo somente leitura estático não pode ser atribuído (exceto em um construtor estático ou inicializador de variável)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Um campo somente leitura estático não pode ser passado como ref ou out (exceto em um construtor estático)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">A propriedade ou o indexador '{0}' não pode ser atribuído -- ele(a) é somente leitura</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Talvez uma propriedade ou um indexador não possa ser passado como um parâmetro out ou ref</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">As chamadas dinâmicas não podem ser usadas junto com ponteiros</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Para ser aplicado como um operador de curto-circuito, um operador lógico definido por usuário ('{0}') deve ter o mesmo tipo de retorno que o tipo dos seus dois parâmetros</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">O tipo ('{0}') deve conter declarações do operador true e do operador false</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">O valor de constante '{0}' não pode ser convertido em '{1}' (use a sintaxe 'unchecked' para substituir)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ambiguidade entre '{0}' e '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter implicitamente tipo '{0}' em '{1}'. Existe uma conversão explícita (há uma conversão ausente?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">A propriedade ou o indexador '{0}' não pode ser usado neste contexto porque o acessador get é inacessível</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">A propriedade ou o indexador '{0}' não pode ser usado neste contexto porque o acessador set é inacessível</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">O uso do {1} genérico '{0}' requer argumentos de tipo '{2}'</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">O {1} '{0}' não pode ser usado com argumentos de tipo</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">O {1} não genérico '{0}' não pode ser usado como argumentos de tipo</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">"{2}" deve ser um tipo non-abstract com um construtor público sem-parâmetros para que possa ser usado como parâmetro "{1}" no tipo ou método genérico "{0}"</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{3}' não pode ser usado como parâmetro de tipo '{2}' no tipo ou método genérico '{0}'. Não há conversão de referência implícita de '{3}' em '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{3}' não pode ser usado como parâmetro de tipo '{2}' no tipo ou método genérico '{0}'. O tipo '{3}' que permite valores nulos não satisfaz a restrição de '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{3}' não pode ser usado como parâmetro de tipo '{2}' no tipo ou método genérico '{0}'. O tipo '{3}' que permite valores nulos não satisfaz a restrição de '{1}'. Os tipos que permitem valores nulos não satisfazem as restrições de interface.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{3}' não pode ser usado como parâmetro de tipo '{2}' no tipo ou método genérico '{0}'. Não há conversão boxing de '{3}' em '{1}'.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Os argumentos de tipo do método '{0}' não podem ser inferidos a partir do uso. Tente especificar explicitamente os argumentos de tipo.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{2}' deve ser um tipo de referência para que seja usado como parâmetro '{1}' no tipo ou método genérico '{0}'</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{2}' deve ser um tipo de valor não nulo para que seja usado como parâmetro '{1}' no tipo ou método genérico '{0}'</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Conversões ambíguas definidas por usuário '{0}' e '{1}' ao realizar a conversão de '{2}' em '{3}'</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">O idioma não oferece suporte a '{0}'</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">"{0}": não é possível chamar explicitamente o operador ou acessador</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter em tipo estático '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">O operando de incremento ou decremento deve ser uma variável, uma propriedade ou um indexador</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Nenhuma sobrecarga do método '{0}' obtém argumentos '{1}'</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">A melhor correspondência de método sobrecarregado '{0}' tem alguns argumentos inválidos</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Um argumento ref ou out deve ser uma variável que possa ser atribuída</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível acessar membro protegido '{0}' através de um qualificador do tipo '{1}'; o qualificador deve ser do tipo '{2}' (ou derivado dele)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">O idioma não oferece suporte à propriedade, ao indexador ou ao evento '{0}'; tente chamar diretamente o método de acessador '{1}' ou '{2}'</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O idioma não oferece suporte à propriedade, ao indexador ou ao evento '{0}'; tente chamar diretamente o método de acessador '{1}'</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">O representante '{0}' não obtém argumentos '{1}'</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">O representante '{0}' tem alguns argumentos inválidos</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível atribuir a '{0}' porque ele é somente leitura</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível passar '{0}' como um argumento ref ou out porque ele é somente leitura</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível modificar o valor de retorno '{0}' porque ele não é uma variável</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Os membros do campo somente leitura '{0}' não podem ser modificados (exceto em um construtor ou inicializador de variável)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Os membros do campo somente leitura '{0}' não podem ser passados como ref ou out (a não ser em um construtor)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Campos do campo estático somente leitura '{0}' não podem ser atribuídos (exceto em um construtor estático ou inicializador de variável)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Os campos do campo somente leitura estático '{0}' não podem ser passados como ref ou out (exceto em um construtor estático)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível atribuir a '{0}' porque ele é um '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível passar '{0}' como um argumento ref ou out porque ele é '{1}'</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' não contém um construtor que obtém argumentos '{1}'</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">O membro não invocável '{0}' não pode ser usado como um método.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">As especificações de argumento nomeado devem aparecer depois que todos os argumentos fixos forem especificados</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">A melhor sobrecarga de '{0}' não tem um parâmetro chamado '{1}'</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O representante '{0}' não tem um parâmetro chamado '{1}'</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">O argumento nomeado '{0}' não pode ser especificado várias vezes</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">O argumento nomeado '{0}' especifica um parâmetro para o qual já foi atribuído um argumento posicional</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="pt-BR" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Ocorreu uma exceção inesperada ao associar uma operação dinâmica</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível associar chamada sem objeto de chamada</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Falha na resolução da sobrecarga</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Os operadores binários devem ser chamados com dois argumentos</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Os operadores unários devem ser chamados com um argumento</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">O nome '{0}' é associado a um método e não pode ser usado como uma propriedade</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">O evento '{0}' somente pode aparecer no lado esquerdo de +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível chamar um tipo não delegado</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Os operadores binários não podem ser chamados com um argumento</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível executar atribuição de membro em uma referência nula</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível fazer associação em tempo de execução em uma referência nula</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível chamar o método '{0}' dinamicamente porque ele tem um atributo Conditional</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter implicitamente o tipo 'void' em 'object'</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">O operador '{0}' não pode ser aplicado a operandos dos tipos '{1}' e '{2}'</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível aplicar a indexação com [] a uma expressão do tipo '{0}'</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Número incorreto de índices dentro de []; esperava-se '{0}'</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O operador '{0}' não pode ser aplicado ao operando do tipo '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter implicitamente tipo '{0}' em '{1}'</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter tipo '{0}' em '{1}'</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O valor de constante '{0}' não pode ser convertido em '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">O operador '{0}' é ambíguo em operandos dos tipos '{1}' e '{2}'</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O operador '{0}' é ambíguo em um operando do tipo '{1}'</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter o valor nulo em '{0}' porque ele não é um tipo de valor não nulo</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível acessar um membro não estático do tipo externo '{0}' através do tipo aninhado '{1}'</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" não contém uma definição para "{1}"</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Uma referência de objeto é necessária para o campo, o método ou a propriedade '{0}' não estática</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">A chamada é ambígua entre os seguintes métodos ou propriedades: '{0}' e '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" é inacessível devido ao seu nível de proteção</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nenhuma sobrecarga de '{0}' corresponde ao representante '{1}'</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">O lado esquerdo de uma atribuição deve ser uma variável, uma propriedade ou um indexador</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{0}' não tem construtores definidos</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">A propriedade ou o indexador '{0}' não pode ser usado neste contexto porque não possui o acessador get</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">O membro '{0}' não pode ser acessado com uma referência de instância; qualifique-o com um nome de tipo</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Um campo somente leitura não pode ser atribuído (exceto em um construtor ou inicializador de variável)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Um campo somente leitura não pode ser passado como ref ou out (exceto em um construtor)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Um campo somente leitura estático não pode ser atribuído (exceto em um construtor estático ou inicializador de variável)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Um campo somente leitura estático não pode ser passado como ref ou out (exceto em um construtor estático)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">A propriedade ou o indexador '{0}' não pode ser atribuído -- ele(a) é somente leitura</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Talvez uma propriedade ou um indexador não possa ser passado como um parâmetro out ou ref</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">As chamadas dinâmicas não podem ser usadas junto com ponteiros</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Para ser aplicado como um operador de curto-circuito, um operador lógico definido por usuário ('{0}') deve ter o mesmo tipo de retorno que o tipo dos seus dois parâmetros</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">O tipo ('{0}') deve conter declarações do operador true e do operador false</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">O valor de constante '{0}' não pode ser convertido em '{1}' (use a sintaxe 'unchecked' para substituir)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ambiguidade entre '{0}' e '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter implicitamente tipo '{0}' em '{1}'. Existe uma conversão explícita (há uma conversão ausente?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">A propriedade ou o indexador '{0}' não pode ser usado neste contexto porque o acessador get é inacessível</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">A propriedade ou o indexador '{0}' não pode ser usado neste contexto porque o acessador set é inacessível</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">O uso do {1} genérico '{0}' requer argumentos de tipo '{2}'</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">O {1} '{0}' não pode ser usado com argumentos de tipo</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">O {1} não genérico '{0}' não pode ser usado como argumentos de tipo</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">"{2}" deve ser um tipo non-abstract com um construtor público sem-parâmetros para que possa ser usado como parâmetro "{1}" no tipo ou método genérico "{0}"</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{3}' não pode ser usado como parâmetro de tipo '{2}' no tipo ou método genérico '{0}'. Não há conversão de referência implícita de '{3}' em '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{3}' não pode ser usado como parâmetro de tipo '{2}' no tipo ou método genérico '{0}'. O tipo '{3}' que permite valores nulos não satisfaz a restrição de '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{3}' não pode ser usado como parâmetro de tipo '{2}' no tipo ou método genérico '{0}'. O tipo '{3}' que permite valores nulos não satisfaz a restrição de '{1}'. Os tipos que permitem valores nulos não satisfazem as restrições de interface.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{3}' não pode ser usado como parâmetro de tipo '{2}' no tipo ou método genérico '{0}'. Não há conversão boxing de '{3}' em '{1}'.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Os argumentos de tipo do método '{0}' não podem ser inferidos a partir do uso. Tente especificar explicitamente os argumentos de tipo.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{2}' deve ser um tipo de referência para que seja usado como parâmetro '{1}' no tipo ou método genérico '{0}'</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">O tipo '{2}' deve ser um tipo de valor não nulo para que seja usado como parâmetro '{1}' no tipo ou método genérico '{0}'</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Conversões ambíguas definidas por usuário '{0}' e '{1}' ao realizar a conversão de '{2}' em '{3}'</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">O idioma não oferece suporte a '{0}'</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">"{0}": não é possível chamar explicitamente o operador ou acessador</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível converter em tipo estático '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">O operando de incremento ou decremento deve ser uma variável, uma propriedade ou um indexador</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Nenhuma sobrecarga do método '{0}' obtém argumentos '{1}'</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">A melhor correspondência de método sobrecarregado '{0}' tem alguns argumentos inválidos</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Um argumento ref ou out deve ser uma variável que possa ser atribuída</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível acessar membro protegido '{0}' através de um qualificador do tipo '{1}'; o qualificador deve ser do tipo '{2}' (ou derivado dele)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">O idioma não oferece suporte à propriedade, ao indexador ou ao evento '{0}'; tente chamar diretamente o método de acessador '{1}' ou '{2}'</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O idioma não oferece suporte à propriedade, ao indexador ou ao evento '{0}'; tente chamar diretamente o método de acessador '{1}'</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">O representante '{0}' não obtém argumentos '{1}'</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">O representante '{0}' tem alguns argumentos inválidos</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível atribuir a '{0}' porque ele é somente leitura</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível passar '{0}' como um argumento ref ou out porque ele é somente leitura</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível modificar o valor de retorno '{0}' porque ele não é uma variável</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Os membros do campo somente leitura '{0}' não podem ser modificados (exceto em um construtor ou inicializador de variável)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Os membros do campo somente leitura '{0}' não podem ser passados como ref ou out (a não ser em um construtor)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Campos do campo estático somente leitura '{0}' não podem ser atribuídos (exceto em um construtor estático ou inicializador de variável)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Os campos do campo somente leitura estático '{0}' não podem ser passados como ref ou out (exceto em um construtor estático)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível atribuir a '{0}' porque ele é um '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Não é possível passar '{0}' como um argumento ref ou out porque ele é '{1}'</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' não contém um construtor que obtém argumentos '{1}'</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">O membro não invocável '{0}' não pode ser usado como um método.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">As especificações de argumento nomeado devem aparecer depois que todos os argumentos fixos forem especificados</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">A melhor sobrecarga de '{0}' não tem um parâmetro chamado '{1}'</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">O representante '{0}' não tem um parâmetro chamado '{1}'</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">O argumento nomeado '{0}' não pode ser especificado várias vezes</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">O argumento nomeado '{0}' especifica um parâmetro para o qual já foi atribuído um argumento posicional</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.cs.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Odvozený typ JsonSerializerContext {0} určuje typy serializovatelné na JSON. Typ a všechny obsahující typy musí být částečné, aby se zahájilo generování zdroje.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Odvozené typy JsonSerializerContext a všechny obsahující typy musí být částečné.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">Vlastnost rozšíření dat {0}.{1} není platná. Musí implementovat IDictionary&lt;string, JsonElement&gt; nebo IDictionary&lt;string, object&gt;, nebo být JsonObject.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Typ vlastnosti rozšíření dat není platný</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Existuje několik typů s názvem {0}. Zdroj se vygeneroval pro první zjištěný typ. Tuto kolizi vyřešíte pomocí JsonSerializableAttribute.TypeInfoPropertyName.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Duplicitní název typu</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Člen {0}.{1} má anotaci od JsonIncludeAttribute, ale není pro zdrojový generátor viditelný.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Nepřístupné vlastnosti anotované s JsonIncludeAttribute se v režimu generování zdroje nepodporují.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Typ {0} definuje vlastnosti pouze pro inicializaci, jejichž deserializace se v režimu generování zdroje v současnosti nepodporuje.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Deserializace vlastností pouze pro inicializaci se v současnosti v režimu generování zdroje nepodporuje.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Typ {0} má více konstruktorů anotovaných s JsonConstructorAttribute. </target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Typ obsahuje více konstruktorů anotovaných s JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Typ {0} obsahuje více členů s komentářem JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Typ obsahuje více členů s komentářem JsonExtensionDataAttribute</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Nevygenerovala se metadata serializace pro typ {0}.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Nevygenerovala se metadata serializace pro typ</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Odvozený typ JsonSerializerContext {0} určuje typy serializovatelné na JSON. Typ a všechny obsahující typy musí být částečné, aby se zahájilo generování zdroje.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Odvozené typy JsonSerializerContext a všechny obsahující typy musí být částečné.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">Vlastnost rozšíření dat {0}.{1} není platná. Musí implementovat IDictionary&lt;string, JsonElement&gt; nebo IDictionary&lt;string, object&gt;, nebo být JsonObject.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Typ vlastnosti rozšíření dat není platný</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Existuje několik typů s názvem {0}. Zdroj se vygeneroval pro první zjištěný typ. Tuto kolizi vyřešíte pomocí JsonSerializableAttribute.TypeInfoPropertyName.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Duplicitní název typu</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Člen {0}.{1} má anotaci od JsonIncludeAttribute, ale není pro zdrojový generátor viditelný.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Nepřístupné vlastnosti anotované s JsonIncludeAttribute se v režimu generování zdroje nepodporují.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Typ {0} definuje vlastnosti pouze pro inicializaci, jejichž deserializace se v režimu generování zdroje v současnosti nepodporuje.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Deserializace vlastností pouze pro inicializaci se v současnosti v režimu generování zdroje nepodporuje.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Typ {0} má více konstruktorů anotovaných s JsonConstructorAttribute. </target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Typ obsahuje více konstruktorů anotovaných s JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Typ {0} obsahuje více členů s komentářem JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Typ obsahuje více členů s komentářem JsonExtensionDataAttribute</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Nevygenerovala se metadata serializace pro typ {0}.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Nevygenerovala se metadata serializace pro typ</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.cs.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="cs" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Při vytváření vazby dynamické operace došlo k neočekávané výjimce.</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Nelze vytvořit volání vazby s objektem neúčastnícím se volání.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Rozlišení přetěžování neproběhlo úspěšně.</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Binární operátory je nutné volat se dvěma argumenty.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Unární operátory je nutné volat s jedním argumentem.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Název {0} je vázán na metodu a nemůže být použit jako vlastnost.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">Událost {0} se může vyskytnout pouze na levé straně výrazu +.</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Nelze volat nedelegující typ.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Binární operátory nelze volat s jedním argumentem.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">U nulového odkazu nelze provést přiřazení členů.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">U nulového odkazu nelze provést vazbu za běhu.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Nelze dynamicky volat metodu {0}, protože má atribut Conditional.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Nelze implicitně převést typ void na object.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Operátor {0} nelze použít na operandy typu {1} a {2}.</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Ve výrazu typu {0} nelze použít indexování pomocí hranatých závorek ([]).</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Uvnitř hranatých závorek ([]) byl nalezen nesprávný počet indexů. Očekávaný počet indexů: {0}</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Operátor {0} nelze použít na operand typu {1}.</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ {0} nelze implicitně převést na typ {1}.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ {0} nelze převést na typ {1}.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Konstantní hodnotu {0} nelze převést na typ {1}.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Operátor {0} je nejednoznačný na operandech typu {1} a {2}.</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Operátor {0} je nejednoznačný na operandu typu {1}.</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Hodnotu null nelze převést na typ {0}, protože se jedná o typ, který nepovoluje hodnotu null.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Pomocí vnořeného typu {1} nelze přistupovat k nestatickému členu vnějšího typu {0}.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">{0} neobsahuje definici pro {1}.</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Pro nestatické pole, metodu nebo vlastnost {0} je vyžadován odkaz na objekt.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Volání je nejednoznačné mezi následujícími metodami nebo vlastnostmi: {0} a {1}</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">Typ {0} je vzhledem k úrovni ochrany nepřístupný.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Žádná přetížená metoda {0} neodpovídá delegátovi {1}.</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Levou stranou přiřazení musí být proměnná, vlastnost nebo indexer.</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Pro typ {0} nebyly definovány žádné konstruktory.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer {0} nelze v tomto kontextu použít, protože neobsahuje přistupující objekt get.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">K členovi {0} nelze přistupovat pomocí odkazu na instanci. Namísto toho použijte kvalifikaci pomocí názvu typu.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Do pole readonly nejde přiřazovat (kromě případu, kdy se nachází uvnitř konstruktoru nebo inicializátoru proměnné).</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Pole určené jen pro čtení nejde předat jako parametr Ref nebo Out (kromě případu, kdy se nachází uvnitř konstruktoru).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Do statického pole určeného jen pro čtení nejde přiřazovat (kromě případu, kdy se nachází uvnitř statického konstruktoru nebo inicializátoru proměnné).</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Statické pole určené jen pro čtení nejde předat jako parametr Ref nebo Out (kromě případu, kdy se nachází uvnitř statického konstruktoru).</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer {0} nelze přiřadit – je jen pro čtení.</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer nelze předat jako parametr ref nebo out.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Dynamická volání nelze použít v kombinaci s ukazateli.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Má-li být uživatelem definovaný logický operátor ({0}) použitelný jako operátor zkráceného vyhodnocení, musí vracet hodnotu stejného typu jako jeho dva parametry.</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Typ ({0}) musí obsahovat deklarace operátorů true a false.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Konstantní hodnotu {0} nelze převést na typ {1} (k přepsání lze použít syntaxi unchecked).</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Došlo k nejednoznačnosti mezi metodami nebo vlastnostmi {0} a {1}.</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Typ {0} nelze implicitně převést na typ {1}. Existuje explicitní převod. (Nechybí výraz přetypování?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer {0} nelze v tomto kontextu použít, protože přistupující objekt get není dostupný.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer {0} nelze v tomto kontextu použít, protože přistupující objekt jet není dostupný.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Použití obecné možnosti {1} {0} vyžaduje argumenty typu {2}.</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} {0} nelze použít s argumenty typů.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Neobecnou možnost {1} {0} nelze použít s argumenty typů.</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Objekt {2} musí být neabstraktního typu s veřejným konstruktorem bez parametrů, jinak jej nelze použít jako parametr {1} v obecném typu nebo metodě {0}.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Typ {3} nelze použít jako parametr typu {2} v obecném typu nebo metodě {0}. Neexistuje žádný implicitní převod odkazu z {3} na {1}.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Typ {3} nelze použít jako parametr typu {2} v obecném typu nebo metodě {0}. Typ {3} s možnou hodnotou null nevyhovuje omezení {1}.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Typ {3} nelze použít jako parametr typu {2} v obecném typu nebo metodě {0}. Typ {3} s možnou hodnotou null nevyhovuje omezení {1}. Typy s možnou hodnotou null nemohou vyhovět žádným omezením rozhraní.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Typ {3} nelze použít jako parametr typu {2} v obecném typu nebo metodě {0}. Neexistuje žádný převod na uzavřené určení z {3} na {1}.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Argumenty typu pro metodu {0} nelze stanovit z použití. Zadejte argumenty typu explicitně.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ {2} musí být typ odkazu, aby ho bylo možné používat jako parametr {1} v obecném typu nebo metodě {0}.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ {2} musí být typ, který nepovoluje hodnotu null, aby ho bylo možné používat jako parametr {1} v obecném typu nebo metodě {0}.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Při převodu typu {2} na typ {3} došlo k uživatelem definovaným nejednoznačným převodům typu {0} na typ {1}.</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">{0} není tímto jazykem podporovaný.</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">{0}: Nejde explicitně volat operátor nebo přistupující objekt.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Nelze převést na statický typ {0}.</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Operandem operátoru přičtení nebo odečtení musí být proměnná, vlastnost nebo indexer.</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Žádná přetížená metoda {0} nepoužívá tento počet argumentů ({1}).</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Některé argumenty přetěžované metody, která je nejlepší shodou pro deklaraci {0}, jsou neplatné.</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Argumentem ref nebo out musí být proměnná s možností přiřazení hodnoty</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">K chráněnému členu {0} nelze přistupovat prostřednictvím kvalifikátoru typu {1}. Kvalifikátor musí být typu {2} (nebo musí být od tohoto typu odvozen).</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost, indexer nebo událost {0} nejsou tímto jazykem podporovány. Zkuste přímo volat metody přistupujícího objektu {1} nebo {2}.</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost, indexer nebo událost {0} nejsou tímto jazykem podporovány. Zkuste přímo volat metodu přistupujícího objektu {1}.</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Počet argumentů delegáta {0} neodpovídá (počet: {1}).</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Některé argumenty delegáta {0} jsou neplatné.</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">K položce nelze přiřadit {0} protože je jen pro čtení.</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Element {0} nelze předat jako argument Ref nebo Out, protože je jen pro čtení.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Vrácenou hodnotu {0} nelze změnit, protože se nejedná o proměnnou.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Členy pole jen pro čtení {0} nelze měnit (kromě případu, kdy se nacházejí uvnitř konstruktoru nebo inicializátoru proměnné).</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Členy pole jen pro čtení {0} nelze předat jako parametr Ref nebo Out (kromě případu, kdy se nacházejí uvnitř konstruktoru).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Pole statických polí jen pro čtení {0} nelze přiřadit (kromě případu, kdy se nacházejí uvnitř statického konstruktoru nebo inicializátoru proměnné).</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Pole statického pole jen pro čtení {0} nelze předat jako parametr Ref nebo Out (kromě případu, kdy se nacházejí uvnitř statického konstruktoru).</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">K položce nelze přiřadit {0} protože je typu {1}.</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Element {0} nelze předat jako argument Ref nebo Out, protože je {1}.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">{0} neobsahuje konstruktor daným počtem vstupních argumentů ({1}).</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Nevyvolatelného člena {0} nelze použít jako metodu.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Specifikace pojmenovaných argumentů musí následovat po specifikaci všech pevných argumentů</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nejlepší přetížení pro {0} neobsahuje parametr s názvem {1}.</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Delegát {0} neobsahuje parametr s názvem {1}.</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Pojmenovaný argument {0} nelze zadat vícekrát.</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">Pojmenovaný argument {0} určuje parametr, pro který již byl poskytnut poziční argument.</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="cs" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Při vytváření vazby dynamické operace došlo k neočekávané výjimce.</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Nelze vytvořit volání vazby s objektem neúčastnícím se volání.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Rozlišení přetěžování neproběhlo úspěšně.</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Binární operátory je nutné volat se dvěma argumenty.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Unární operátory je nutné volat s jedním argumentem.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Název {0} je vázán na metodu a nemůže být použit jako vlastnost.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">Událost {0} se může vyskytnout pouze na levé straně výrazu +.</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Nelze volat nedelegující typ.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Binární operátory nelze volat s jedním argumentem.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">U nulového odkazu nelze provést přiřazení členů.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">U nulového odkazu nelze provést vazbu za běhu.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Nelze dynamicky volat metodu {0}, protože má atribut Conditional.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Nelze implicitně převést typ void na object.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Operátor {0} nelze použít na operandy typu {1} a {2}.</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Ve výrazu typu {0} nelze použít indexování pomocí hranatých závorek ([]).</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Uvnitř hranatých závorek ([]) byl nalezen nesprávný počet indexů. Očekávaný počet indexů: {0}</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Operátor {0} nelze použít na operand typu {1}.</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ {0} nelze implicitně převést na typ {1}.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ {0} nelze převést na typ {1}.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Konstantní hodnotu {0} nelze převést na typ {1}.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Operátor {0} je nejednoznačný na operandech typu {1} a {2}.</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Operátor {0} je nejednoznačný na operandu typu {1}.</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Hodnotu null nelze převést na typ {0}, protože se jedná o typ, který nepovoluje hodnotu null.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Pomocí vnořeného typu {1} nelze přistupovat k nestatickému členu vnějšího typu {0}.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">{0} neobsahuje definici pro {1}.</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Pro nestatické pole, metodu nebo vlastnost {0} je vyžadován odkaz na objekt.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Volání je nejednoznačné mezi následujícími metodami nebo vlastnostmi: {0} a {1}</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">Typ {0} je vzhledem k úrovni ochrany nepřístupný.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Žádná přetížená metoda {0} neodpovídá delegátovi {1}.</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Levou stranou přiřazení musí být proměnná, vlastnost nebo indexer.</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Pro typ {0} nebyly definovány žádné konstruktory.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer {0} nelze v tomto kontextu použít, protože neobsahuje přistupující objekt get.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">K členovi {0} nelze přistupovat pomocí odkazu na instanci. Namísto toho použijte kvalifikaci pomocí názvu typu.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Do pole readonly nejde přiřazovat (kromě případu, kdy se nachází uvnitř konstruktoru nebo inicializátoru proměnné).</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Pole určené jen pro čtení nejde předat jako parametr Ref nebo Out (kromě případu, kdy se nachází uvnitř konstruktoru).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Do statického pole určeného jen pro čtení nejde přiřazovat (kromě případu, kdy se nachází uvnitř statického konstruktoru nebo inicializátoru proměnné).</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Statické pole určené jen pro čtení nejde předat jako parametr Ref nebo Out (kromě případu, kdy se nachází uvnitř statického konstruktoru).</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer {0} nelze přiřadit – je jen pro čtení.</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer nelze předat jako parametr ref nebo out.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Dynamická volání nelze použít v kombinaci s ukazateli.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Má-li být uživatelem definovaný logický operátor ({0}) použitelný jako operátor zkráceného vyhodnocení, musí vracet hodnotu stejného typu jako jeho dva parametry.</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Typ ({0}) musí obsahovat deklarace operátorů true a false.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Konstantní hodnotu {0} nelze převést na typ {1} (k přepsání lze použít syntaxi unchecked).</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Došlo k nejednoznačnosti mezi metodami nebo vlastnostmi {0} a {1}.</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Typ {0} nelze implicitně převést na typ {1}. Existuje explicitní převod. (Nechybí výraz přetypování?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer {0} nelze v tomto kontextu použít, protože přistupující objekt get není dostupný.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost nebo indexer {0} nelze v tomto kontextu použít, protože přistupující objekt jet není dostupný.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Použití obecné možnosti {1} {0} vyžaduje argumenty typu {2}.</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} {0} nelze použít s argumenty typů.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Neobecnou možnost {1} {0} nelze použít s argumenty typů.</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Objekt {2} musí být neabstraktního typu s veřejným konstruktorem bez parametrů, jinak jej nelze použít jako parametr {1} v obecném typu nebo metodě {0}.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Typ {3} nelze použít jako parametr typu {2} v obecném typu nebo metodě {0}. Neexistuje žádný implicitní převod odkazu z {3} na {1}.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Typ {3} nelze použít jako parametr typu {2} v obecném typu nebo metodě {0}. Typ {3} s možnou hodnotou null nevyhovuje omezení {1}.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Typ {3} nelze použít jako parametr typu {2} v obecném typu nebo metodě {0}. Typ {3} s možnou hodnotou null nevyhovuje omezení {1}. Typy s možnou hodnotou null nemohou vyhovět žádným omezením rozhraní.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Typ {3} nelze použít jako parametr typu {2} v obecném typu nebo metodě {0}. Neexistuje žádný převod na uzavřené určení z {3} na {1}.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Argumenty typu pro metodu {0} nelze stanovit z použití. Zadejte argumenty typu explicitně.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ {2} musí být typ odkazu, aby ho bylo možné používat jako parametr {1} v obecném typu nebo metodě {0}.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Typ {2} musí být typ, který nepovoluje hodnotu null, aby ho bylo možné používat jako parametr {1} v obecném typu nebo metodě {0}.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Při převodu typu {2} na typ {3} došlo k uživatelem definovaným nejednoznačným převodům typu {0} na typ {1}.</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">{0} není tímto jazykem podporovaný.</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">{0}: Nejde explicitně volat operátor nebo přistupující objekt.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Nelze převést na statický typ {0}.</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Operandem operátoru přičtení nebo odečtení musí být proměnná, vlastnost nebo indexer.</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Žádná přetížená metoda {0} nepoužívá tento počet argumentů ({1}).</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Některé argumenty přetěžované metody, která je nejlepší shodou pro deklaraci {0}, jsou neplatné.</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Argumentem ref nebo out musí být proměnná s možností přiřazení hodnoty</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">K chráněnému členu {0} nelze přistupovat prostřednictvím kvalifikátoru typu {1}. Kvalifikátor musí být typu {2} (nebo musí být od tohoto typu odvozen).</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost, indexer nebo událost {0} nejsou tímto jazykem podporovány. Zkuste přímo volat metody přistupujícího objektu {1} nebo {2}.</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Vlastnost, indexer nebo událost {0} nejsou tímto jazykem podporovány. Zkuste přímo volat metodu přistupujícího objektu {1}.</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Počet argumentů delegáta {0} neodpovídá (počet: {1}).</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Některé argumenty delegáta {0} jsou neplatné.</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">K položce nelze přiřadit {0} protože je jen pro čtení.</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Element {0} nelze předat jako argument Ref nebo Out, protože je jen pro čtení.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Vrácenou hodnotu {0} nelze změnit, protože se nejedná o proměnnou.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Členy pole jen pro čtení {0} nelze měnit (kromě případu, kdy se nacházejí uvnitř konstruktoru nebo inicializátoru proměnné).</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Členy pole jen pro čtení {0} nelze předat jako parametr Ref nebo Out (kromě případu, kdy se nacházejí uvnitř konstruktoru).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Pole statických polí jen pro čtení {0} nelze přiřadit (kromě případu, kdy se nacházejí uvnitř statického konstruktoru nebo inicializátoru proměnné).</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Pole statického pole jen pro čtení {0} nelze předat jako parametr Ref nebo Out (kromě případu, kdy se nacházejí uvnitř statického konstruktoru).</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">K položce nelze přiřadit {0} protože je typu {1}.</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Element {0} nelze předat jako argument Ref nebo Out, protože je {1}.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">{0} neobsahuje konstruktor daným počtem vstupních argumentů ({1}).</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Nevyvolatelného člena {0} nelze použít jako metodu.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Specifikace pojmenovaných argumentů musí následovat po specifikaci všech pevných argumentů</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nejlepší přetížení pro {0} neobsahuje parametr s názvem {1}.</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Delegát {0} neobsahuje parametr s názvem {1}.</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Pojmenovaný argument {0} nelze zadat vícekrát.</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">Pojmenovaný argument {0} určuje parametr, pro který již byl poskytnut poziční argument.</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.ko.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">파생된 'JsonSerializerContext' 유형 '{0}'은(는) JSON 직렬화 가능한 유형을 지정합니다. 소스 생성을 위해 유형 및 모든 포함 유형을 부분적으로 만들어야 합니다.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">파생된 'JsonSerializerContext' 형식과 포함하는 모든 형식은 부분이어야 합니다.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">데이터 확장 속성 '{0}.{1}'이 잘못되었습니다. 'IDictionary&lt;string, JsonElement&gt;'나 'IDictionary&lt;string, object&gt;' 를 구현하거나 'JsonObject'여야 합니다.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">데이터 확장 속성 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">이름이 {0}인 형식이 여러 개 있습니다. 처음 검색한 원본에 대해 원본이 생성되었습니다. 이 충돌을 해결하려면 'JsonSerializableAttribute.TypeInfoPropertyName'을 사용하세요.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">중복된 형식 이름입니다.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">멤버 '{0}.{1}'이(가) JsonIncludeAttribute로 주석 처리되었지만 원본 생성기에는 표시되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">JsonIncludeAttribute로 주석 처리된 액세스할 수 없는 속성은 원본 생성 모드에서 지원되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">'{0}' 유형은 초기화 전용 속성을 정의하며, 이 속성의 역직렬화는 현재 원본 생성 모드에서 지원되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">초기화 전용 속성의 역직렬화는 현재 원본 생성 모드에서 지원되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">'{0}' 형식에 'JsonConstructorAttribute'로 주석이 추가된 여러 생성자가 있습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">해당 형식에 JsonConstructorAttribute로 주석이 추가된 여러 생성자가 있습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">'{0}' 형식에 JsonExtensionDataAttribute로 주석이 추가 된 멤버가 여러 개 있습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">형식에 JsonExtensionDataAttribute로 주석이 추가 된 멤버가 여러 개 있습니다.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">'{0}' 형식에 대한 직렬화 메타데이터가 생성되지 않았습니다.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">형식에 대한 직렬화 메타데이터가 생성되지 않았습니다.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">파생된 'JsonSerializerContext' 유형 '{0}'은(는) JSON 직렬화 가능한 유형을 지정합니다. 소스 생성을 위해 유형 및 모든 포함 유형을 부분적으로 만들어야 합니다.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">파생된 'JsonSerializerContext' 형식과 포함하는 모든 형식은 부분이어야 합니다.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">데이터 확장 속성 '{0}.{1}'이 잘못되었습니다. 'IDictionary&lt;string, JsonElement&gt;'나 'IDictionary&lt;string, object&gt;' 를 구현하거나 'JsonObject'여야 합니다.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">데이터 확장 속성 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">이름이 {0}인 형식이 여러 개 있습니다. 처음 검색한 원본에 대해 원본이 생성되었습니다. 이 충돌을 해결하려면 'JsonSerializableAttribute.TypeInfoPropertyName'을 사용하세요.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">중복된 형식 이름입니다.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">멤버 '{0}.{1}'이(가) JsonIncludeAttribute로 주석 처리되었지만 원본 생성기에는 표시되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">JsonIncludeAttribute로 주석 처리된 액세스할 수 없는 속성은 원본 생성 모드에서 지원되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">'{0}' 유형은 초기화 전용 속성을 정의하며, 이 속성의 역직렬화는 현재 원본 생성 모드에서 지원되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">초기화 전용 속성의 역직렬화는 현재 원본 생성 모드에서 지원되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">'{0}' 형식에 'JsonConstructorAttribute'로 주석이 추가된 여러 생성자가 있습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">해당 형식에 JsonConstructorAttribute로 주석이 추가된 여러 생성자가 있습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">'{0}' 형식에 JsonExtensionDataAttribute로 주석이 추가 된 멤버가 여러 개 있습니다.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">형식에 JsonExtensionDataAttribute로 주석이 추가 된 멤버가 여러 개 있습니다.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">'{0}' 형식에 대한 직렬화 메타데이터가 생성되지 않았습니다.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">형식에 대한 직렬화 메타데이터가 생성되지 않았습니다.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.ru.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="ru" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Возникло непредвиденное исключение при выполнении привязки динамической операции</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно выполнить привязку вызова к невызывающему объекту</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Ошибка при разрешении перегрузки</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Бинарные операторы должны вызываться с использованием двух аргументов</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Унарные операторы должны быть вызваны с использованием одного аргумента</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Для имени "{0}" выполнена привязка к методу. Невозможно использовать его как свойство</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">Событие "{0}" может отображаться только слева от "+"</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Не удалось вызвать тип, не являющийся делегатом</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно вызвать бинарные операторы с использованием одного аргумента</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить присваивание члена по нулевой ссылке</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить привязки исполняющей среды по нулевой ссылке</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Не удается динамически вызвать метод "{0}", так как у него есть условный атрибут</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Нельзя неявно преобразовать тип "void" to "object"</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается применить оператор "{0}" к операндам типа "{1}" и "{2}"</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно применить индексирование через [] к выражению типа "{0}"</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Неверное количество индексов внутри []; ожидалось "{0}"</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается применить операнд "{0}" типа "{1}"</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается неявно преобразовать тип "{0}" в "{1}"</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно преобразовать тип "{0}" в "{1}"</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Постоянное значение "{0}" не может быть преобразовано в "{1}"</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Оператор "{0}" является неоднозначным по отношению к операндам типа "{1}" и "{2}"</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Оператор "{0}" является неоднозначным по отношению к операнду типа "{1}"</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Cannot convert null to "{0}" because it is a non-nullable value type</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно получить доступ к нестатическому члену внешнего типа "{0}" через вложенный тип "{1}"</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" не содержит определение для "{1}".</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Для нестатического поля, метода или свойства "{0}" требуется ссылка на объект</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Неоднозначный вызов следующих методов или свойств: "{0}" и "{1}"</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" недоступен из-за его уровня защиты.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Нет перегрузки для "{0}", соответствующей делегату "{1}"</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Левая часть выражения присваивания должна быть переменной, свойством или индексатором</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Для типа "{0}" нет определенных конструкторов</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">The property or indexer "{0}" cannot be used in this context because it lacks the get accessor</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Доступ к члену "{0}" через ссылку на экземпляр невозможен; вместо этого уточните его, указав имя типа</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Присваивание значений доступному только для чтения полю допускается только в конструкторе и в инициализаторе переменных</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Доступное только для чтения поле может передаваться как параметр с ключевым словом ref или out только в конструкторе</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Присваивание значений доступному только для чтения статическому полю допускается только в статическом конструкторе и в инициализаторе переменных</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Доступное только для чтения статическое поле может передаваться как ref или out только в статическом конструкторе</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно присвоить значение свойству или индексатору "{0}" -- доступ только для чтения</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Свойства и индексаторы не могут передаваться как параметры с ключевыми словами out и ref</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Динамические вызовы нельзя использовать в сопряжении с указателями</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Для использования в качестве логического оператора краткой записи тип возвращаемого значения пользовательского логического оператора ("{0}") должен быть аналогичен типам двух его параметров</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Тип ("{0}") должен содержать объявления оператора true и оператора false</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Постоянное значение "{0}" не может быть преобразовано в "{1}" (для обхода используйте синтаксис "unchecked")</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Неоднозначность между "{0}" и "{1}"</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Не удается неявно преобразовать тип "{0}" в "{1}". Существует явное преобразование (требуется приведение типа?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Свойство или индексатор "{0}" невозможно использовать в данном контексте, поскольку метод доступа get недоступен</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Свойство или индексатор "{0}" невозможно использовать в данном контексте, поскольку метод доступа set недоступен</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Использование универсального {1} "{0}" требует аргументов типа "{2}"</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} "{0}" не может использоваться с аргументами типа</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Неуниверсальный {1} "{0}" не может использоваться с аргументами типа</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">"Для использования в качестве параметра "{1}" в универсальном типе или методе "{0}" тип "{2}" должен быть неабстрактным и иметь открытый конструктор без параметров</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно использовать тип "{3}" в качестве параметра типа "{2}" в универсальном типе или методе "{0}". Нет неявного преобразования ссылки из "{3}" в "{1}".</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно использовать тип "{3}" в качестве параметра типа "{2}" в универсальном типе или методе "{0}". Для типа "{3}", допускающего значение null, не выполняется ограничение "{1}".</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно использовать тип "{3}" в качестве параметра типа "{2}" в универсальном типе или методе "{0}". Для типа "{3}", допускающего значение null, не выполняется ограничение "{1}". Типы, допускающие значение null, не могут удовлетворять ни одному интерфейсному ограничению.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно использовать тип "{3}" в качестве параметра типа "{2}" в универсальном типе или методе "{0}". Нет преобразования-упаковки из "{3}" в "{1}".</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">The type arguments for method "{0}" cannot be inferred from the usage. Попытайтесь явно определить аргументы-типы.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Для использования в качестве параметра "{1}" в универсальном типе или методе "{0}" тип "{2}" должен быть ссылочным типом</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Для использования в качестве параметра "{1}" в универсальном типе или методе "{0}" тип "{2}" должен быть типом значения, не допускающим значения NULL</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Неоднозначные пользовательские преобразования "{0}" и "{1}" при преобразовании из "{2}" в "{3}"</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" не поддерживается языком</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">"{0}": явный вызов оператора или метода доступа невозможен.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить преобразование к статическому типу "{0}"</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Операндом оператора инкремента или декремента должна быть переменная, свойство или индексатор</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Отсутствие перегрузки для метода "{0}" принимает"{1}" аргументы</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Наиболее подходящий перегруженный метод для "{0}" имеет несколько недопустимых аргументов</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Аргумент ref или out должен являться переменной, которой можно присвоить значение</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Не удается получить доступ к защищенному члену "{0}" через квалификатор типа "{1}"; квалификатор должен иметь тип "{2}" (или производный от него)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Свойство, индексатор или событие "{0}" не поддерживается в данном языке; попробуйте вызвать метод доступа "{1}" или "{2}"</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Свойство, индексатор или событие "{0}" не поддерживается в данном языке; попробуйте напрямую вызвать метод доступа "{1}".</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Делегат "{0}" не принимает аргументы "{1}"</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Делегат "{0}" имеет недопустимые аргументы</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить присвоение параметру "{0}", так как он доступен только для чтения</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Cannot pass "{0}" as a ref or out argument because it is read-only</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Cannot modify the return value of "{0}" because it is not a variable</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Члены поля "{0}", предназначенного только для чтения, могут быть изменены только в конструкторе или инициализаторе переменных</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Members of readonly field "{0}" cannot be passed ref or out (except in a constructor)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Присваивание значений полям доступного только для чтения статического поля "{0}" допускается только в статическом конструкторе и в инициализаторе переменных</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Fields of static readonly field "{0}" cannot be passed ref or out (except in a static constructor)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить присвоение параметру "{0}", так как он является "{1}"</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удалось передать "{0}" как ссылку или аргумент out, так как это "{1}"</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" не содержит конструктор, принимающий аргументов: {1}</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Невызываемый член "{0}" не может использоваться как метод.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Спецификации именованного аргумента должны появляться во всех указанных фиксированных аргументах</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Наиболее подходящий перегруженный метод для "{0}" не имеет параметра "{1}"</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Делегат "{0}" не имеет параметра "{1}"</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Не удается задать именованный аргумент "{0}" несколько раз</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">Именованный аргумент "{0}" задает параметр, для которого уже был установлен позиционный аргумент.</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="ru" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Возникло непредвиденное исключение при выполнении привязки динамической операции</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно выполнить привязку вызова к невызывающему объекту</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Ошибка при разрешении перегрузки</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Бинарные операторы должны вызываться с использованием двух аргументов</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Унарные операторы должны быть вызваны с использованием одного аргумента</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Для имени "{0}" выполнена привязка к методу. Невозможно использовать его как свойство</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">Событие "{0}" может отображаться только слева от "+"</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Не удалось вызвать тип, не являющийся делегатом</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно вызвать бинарные операторы с использованием одного аргумента</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить присваивание члена по нулевой ссылке</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить привязки исполняющей среды по нулевой ссылке</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Не удается динамически вызвать метод "{0}", так как у него есть условный атрибут</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Нельзя неявно преобразовать тип "void" to "object"</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается применить оператор "{0}" к операндам типа "{1}" и "{2}"</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно применить индексирование через [] к выражению типа "{0}"</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Неверное количество индексов внутри []; ожидалось "{0}"</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается применить операнд "{0}" типа "{1}"</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается неявно преобразовать тип "{0}" в "{1}"</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно преобразовать тип "{0}" в "{1}"</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Постоянное значение "{0}" не может быть преобразовано в "{1}"</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Оператор "{0}" является неоднозначным по отношению к операндам типа "{1}" и "{2}"</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Оператор "{0}" является неоднозначным по отношению к операнду типа "{1}"</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Cannot convert null to "{0}" because it is a non-nullable value type</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно получить доступ к нестатическому члену внешнего типа "{0}" через вложенный тип "{1}"</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" не содержит определение для "{1}".</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Для нестатического поля, метода или свойства "{0}" требуется ссылка на объект</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Неоднозначный вызов следующих методов или свойств: "{0}" и "{1}"</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" недоступен из-за его уровня защиты.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Нет перегрузки для "{0}", соответствующей делегату "{1}"</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Левая часть выражения присваивания должна быть переменной, свойством или индексатором</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Для типа "{0}" нет определенных конструкторов</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">The property or indexer "{0}" cannot be used in this context because it lacks the get accessor</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Доступ к члену "{0}" через ссылку на экземпляр невозможен; вместо этого уточните его, указав имя типа</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Присваивание значений доступному только для чтения полю допускается только в конструкторе и в инициализаторе переменных</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Доступное только для чтения поле может передаваться как параметр с ключевым словом ref или out только в конструкторе</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Присваивание значений доступному только для чтения статическому полю допускается только в статическом конструкторе и в инициализаторе переменных</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Доступное только для чтения статическое поле может передаваться как ref или out только в статическом конструкторе</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно присвоить значение свойству или индексатору "{0}" -- доступ только для чтения</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Свойства и индексаторы не могут передаваться как параметры с ключевыми словами out и ref</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Динамические вызовы нельзя использовать в сопряжении с указателями</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Для использования в качестве логического оператора краткой записи тип возвращаемого значения пользовательского логического оператора ("{0}") должен быть аналогичен типам двух его параметров</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Тип ("{0}") должен содержать объявления оператора true и оператора false</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Постоянное значение "{0}" не может быть преобразовано в "{1}" (для обхода используйте синтаксис "unchecked")</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Неоднозначность между "{0}" и "{1}"</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Не удается неявно преобразовать тип "{0}" в "{1}". Существует явное преобразование (требуется приведение типа?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Свойство или индексатор "{0}" невозможно использовать в данном контексте, поскольку метод доступа get недоступен</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Свойство или индексатор "{0}" невозможно использовать в данном контексте, поскольку метод доступа set недоступен</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Использование универсального {1} "{0}" требует аргументов типа "{2}"</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} "{0}" не может использоваться с аргументами типа</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Неуниверсальный {1} "{0}" не может использоваться с аргументами типа</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">"Для использования в качестве параметра "{1}" в универсальном типе или методе "{0}" тип "{2}" должен быть неабстрактным и иметь открытый конструктор без параметров</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно использовать тип "{3}" в качестве параметра типа "{2}" в универсальном типе или методе "{0}". Нет неявного преобразования ссылки из "{3}" в "{1}".</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно использовать тип "{3}" в качестве параметра типа "{2}" в универсальном типе или методе "{0}". Для типа "{3}", допускающего значение null, не выполняется ограничение "{1}".</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно использовать тип "{3}" в качестве параметра типа "{2}" в универсальном типе или методе "{0}". Для типа "{3}", допускающего значение null, не выполняется ограничение "{1}". Типы, допускающие значение null, не могут удовлетворять ни одному интерфейсному ограничению.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Невозможно использовать тип "{3}" в качестве параметра типа "{2}" в универсальном типе или методе "{0}". Нет преобразования-упаковки из "{3}" в "{1}".</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">The type arguments for method "{0}" cannot be inferred from the usage. Попытайтесь явно определить аргументы-типы.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Для использования в качестве параметра "{1}" в универсальном типе или методе "{0}" тип "{2}" должен быть ссылочным типом</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Для использования в качестве параметра "{1}" в универсальном типе или методе "{0}" тип "{2}" должен быть типом значения, не допускающим значения NULL</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Неоднозначные пользовательские преобразования "{0}" и "{1}" при преобразовании из "{2}" в "{3}"</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" не поддерживается языком</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">"{0}": явный вызов оператора или метода доступа невозможен.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить преобразование к статическому типу "{0}"</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Операндом оператора инкремента или декремента должна быть переменная, свойство или индексатор</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Отсутствие перегрузки для метода "{0}" принимает"{1}" аргументы</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Наиболее подходящий перегруженный метод для "{0}" имеет несколько недопустимых аргументов</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Аргумент ref или out должен являться переменной, которой можно присвоить значение</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Не удается получить доступ к защищенному члену "{0}" через квалификатор типа "{1}"; квалификатор должен иметь тип "{2}" (или производный от него)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Свойство, индексатор или событие "{0}" не поддерживается в данном языке; попробуйте вызвать метод доступа "{1}" или "{2}"</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Свойство, индексатор или событие "{0}" не поддерживается в данном языке; попробуйте напрямую вызвать метод доступа "{1}".</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Делегат "{0}" не принимает аргументы "{1}"</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Делегат "{0}" имеет недопустимые аргументы</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить присвоение параметру "{0}", так как он доступен только для чтения</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Cannot pass "{0}" as a ref or out argument because it is read-only</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Cannot modify the return value of "{0}" because it is not a variable</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Члены поля "{0}", предназначенного только для чтения, могут быть изменены только в конструкторе или инициализаторе переменных</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Members of readonly field "{0}" cannot be passed ref or out (except in a constructor)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Присваивание значений полям доступного только для чтения статического поля "{0}" допускается только в статическом конструкторе и в инициализаторе переменных</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Fields of static readonly field "{0}" cannot be passed ref or out (except in a static constructor)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удается выполнить присвоение параметру "{0}", так как он является "{1}"</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Не удалось передать "{0}" как ссылку или аргумент out, так как это "{1}"</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" не содержит конструктор, принимающий аргументов: {1}</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Невызываемый член "{0}" не может использоваться как метод.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Спецификации именованного аргумента должны появляться во всех указанных фиксированных аргументах</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Наиболее подходящий перегруженный метод для "{0}" не имеет параметра "{1}"</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Делегат "{0}" не имеет параметра "{1}"</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Не удается задать именованный аргумент "{0}" несколько раз</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">Именованный аргумент "{0}" задает параметр, для которого уже был установлен позиционный аргумент.</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pt-BR.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pt-BR" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">O argumento '{0}' não é referenciado na mensagem de registro em log</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">O argumento não é referenciado na mensagem de registro em log</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">A geração de mais de 6 argumentos não é suportada</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Não é possível ter o mesmo modelo com diferenças entre maiúsculas e minúsculas.</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Os nomes dos métodos de registro em log não podem começar com _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Os nomes dos parâmetros do método de registro em log não podem começar com _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Os métodos de registro em log não podem ter um corpo</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Os métodos de registro em log não podem ser genéricos</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Os métodos de registro em log devem ser parciais</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Os métodos de registro em log devem retornar nulos</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Os métodos de registro em log devem ser estáticos</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Não pode ter cadeia de caracteres de formato malformadas (como final {, etc)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Um valor LogLevel deve ser fornecido no atributo LoggerMessage ou como um parâmetro para o método de registro em log</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Um dos argumentos para um método de log estático '{0}' deve implementar a interface Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Um dos argumentos para um método de log estático deve implementar a interface Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Não foi possível encontrar um campo do tipo Microsoft.Extensions.Logging.ILogger na classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Não foi possível encontrar um campo do tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Não foi possível encontrar a definição para o tipo {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Não foi possível encontrar uma definição de tipo necessária</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Múltiplos campos do tipo Microsoft.Extensions.Logging.ILogger encontrados na classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Múltiplos campos encontrados do tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Remova o qualificador redundante (Info:, Aviso:, Erro:, etc) da mensagem de log, pois está implícito no nível de log especificado.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Qualificador redundante na mensagem de registro de log</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Não inclua parâmetros de exceção como modelos na mensagem de registro em log</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Não inclua um modelo para {0} na mensagem de registro em log, pois isso é implicitamente atendido</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Não inclua parâmetros de nível de registro como modelos na mensagem de registro de log</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Não inclua parâmetros de agente como modelos na mensagem de registro em log</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Múltiplos métodos de registro em log estão usando a id de evento {0} na classe {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Múltiplos métodos de registro em log não podem usar o mesmo id de evento dentro de uma classe</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">O modelo '{0}' não é fornecido como argumento para o método de registro</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">O modelo de registro em log não tem nenhum argumento de método correspondente</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pt-BR" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">O argumento '{0}' não é referenciado na mensagem de registro em log</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">O argumento não é referenciado na mensagem de registro em log</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">A geração de mais de 6 argumentos não é suportada</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Não é possível ter o mesmo modelo com diferenças entre maiúsculas e minúsculas.</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Os nomes dos métodos de registro em log não podem começar com _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Os nomes dos parâmetros do método de registro em log não podem começar com _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Os métodos de registro em log não podem ter um corpo</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Os métodos de registro em log não podem ser genéricos</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Os métodos de registro em log devem ser parciais</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Os métodos de registro em log devem retornar nulos</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Os métodos de registro em log devem ser estáticos</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Não pode ter cadeia de caracteres de formato malformadas (como final {, etc)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Um valor LogLevel deve ser fornecido no atributo LoggerMessage ou como um parâmetro para o método de registro em log</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Um dos argumentos para um método de log estático '{0}' deve implementar a interface Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Um dos argumentos para um método de log estático deve implementar a interface Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Não foi possível encontrar um campo do tipo Microsoft.Extensions.Logging.ILogger na classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Não foi possível encontrar um campo do tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Não foi possível encontrar a definição para o tipo {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Não foi possível encontrar uma definição de tipo necessária</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Múltiplos campos do tipo Microsoft.Extensions.Logging.ILogger encontrados na classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Múltiplos campos encontrados do tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Remova o qualificador redundante (Info:, Aviso:, Erro:, etc) da mensagem de log, pois está implícito no nível de log especificado.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Qualificador redundante na mensagem de registro de log</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Não inclua parâmetros de exceção como modelos na mensagem de registro em log</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Não inclua um modelo para {0} na mensagem de registro em log, pois isso é implicitamente atendido</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Não inclua parâmetros de nível de registro como modelos na mensagem de registro de log</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Não inclua parâmetros de agente como modelos na mensagem de registro em log</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Múltiplos métodos de registro em log estão usando a id de evento {0} na classe {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Múltiplos métodos de registro em log não podem usar o mesmo id de evento dentro de uma classe</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">O modelo '{0}' não é fornecido como argumento para o método de registro</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">O modelo de registro em log não tem nenhum argumento de método correspondente</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.ja.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">派生した 'JsonSerializerContext'型 '{0}' は、JSON シリアル化可能な型を指定します。ソース生成を開始するには、型と含まれているすべての型を部分的にする必要があります。</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">派生した 'JsonSerializerContext' 型と含まれているすべての型は部分的である必要があります。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">データ拡張プロパティ '{0}.{1}' が無効です。これには、'IDictionary&lt;string, JsonElement&gt;'、'IDictionary&lt;string, object&gt;'、または 'JsonObject' を実装する必要があります。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">データ拡張プロパティの型が無効です。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">{0} と名前が付けられた種類が複数あります。最初に検出されたものに対してソースが生成されました。この問題を解決するには、'JsonSerializableAttribute.TypeInfoPropertyName' を使用します。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">重複した種類名。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">メンバー '{0}.{1}' には、JsonIncludeAttribute で注釈が付けられていますが、ソース ジェネレーターには表示されません。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">JsonIncludeAttribute で注釈が付けられたアクセスできないプロパティは、ソース生成モードではサポートされていません。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">型 '{0}' は、ソース生成モードでは現在サポートされていない init-only プロパティの逆シリアル化を定義します。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">現在、ソース生成モードでは init-only プロパティの逆シリアル化はサポートされていません。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">型 '{0}' には、'JsonConstructorAttribute' で注釈が付けられた複数のコンストラクターがあります。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">型には、JsonConstructorAttribute で注釈が付けられた複数のコンストラクターがあります。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">型 '{0}' には、'JsonExtensionDataAttribute' に注釈が付けられた複数のメンバーが含まれます。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">型には、'JsonExtensionDataAttribute' に注釈が付けられた複数のメンバーが含まれます。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">'{0}'型 のシリアル化メタデータを生成ませんでした。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">型のシリアル化メタデータが生成されません。</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">派生した 'JsonSerializerContext'型 '{0}' は、JSON シリアル化可能な型を指定します。ソース生成を開始するには、型と含まれているすべての型を部分的にする必要があります。</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">派生した 'JsonSerializerContext' 型と含まれているすべての型は部分的である必要があります。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">データ拡張プロパティ '{0}.{1}' が無効です。これには、'IDictionary&lt;string, JsonElement&gt;'、'IDictionary&lt;string, object&gt;'、または 'JsonObject' を実装する必要があります。</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">データ拡張プロパティの型が無効です。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">{0} と名前が付けられた種類が複数あります。最初に検出されたものに対してソースが生成されました。この問題を解決するには、'JsonSerializableAttribute.TypeInfoPropertyName' を使用します。</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">重複した種類名。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">メンバー '{0}.{1}' には、JsonIncludeAttribute で注釈が付けられていますが、ソース ジェネレーターには表示されません。</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">JsonIncludeAttribute で注釈が付けられたアクセスできないプロパティは、ソース生成モードではサポートされていません。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">型 '{0}' は、ソース生成モードでは現在サポートされていない init-only プロパティの逆シリアル化を定義します。</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">現在、ソース生成モードでは init-only プロパティの逆シリアル化はサポートされていません。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">型 '{0}' には、'JsonConstructorAttribute' で注釈が付けられた複数のコンストラクターがあります。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">型には、JsonConstructorAttribute で注釈が付けられた複数のコンストラクターがあります。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">型 '{0}' には、'JsonExtensionDataAttribute' に注釈が付けられた複数のメンバーが含まれます。</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">型には、'JsonExtensionDataAttribute' に注釈が付けられた複数のメンバーが含まれます。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">'{0}'型 のシリアル化メタデータを生成ませんでした。</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">型のシリアル化メタデータが生成されません。</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.pt-BR.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pt-BR" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">O tipo 'JsonSerializerContext' derivado '{0}' especifica tipos serializáveis por JSON. O tipo e todos os tipos de contenção devem ser feitos parcialmente para iniciar a geração de origem.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Os tipos derivados de 'JsonSerializerContext' e todos os tipos contidos devem ser parciais.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">A propriedade da extensão de dados '{0}.{1}' é inválida. Deve implementar 'IDictionary&lt;string, JsonElement&gt;' ou 'IDictionary&lt;string, object&gt;', ou ter 'JsonObject'.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Tipo de propriedade de extensão de dados inválido.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Existem vários tipos chamados {0}. A fonte foi gerada para o primeiro detectado. Use 'JsonSerializableAttribute.TypeInfoPropertyName' para resolver esta colisão.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Nome de tipo duplicado.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">O membro '{0}.{1}' foi anotado com o JsonIncludeAttribute, mas não é visível para o gerador de origem.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Propriedades inacessíveis anotadas com JsonIncludeAttribute não são suportadas no modo de geração de origem.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">O tipo '{0}' define propriedades apenas de inicialização, a desserialização das quais atualmente não é suportada no modo de geração de origem.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">A desserialização de propriedades apenas de inicialização não é atualmente suportada no modo de geração de origem.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">O tipo '{0}' tem vários construtores anotados com 'JsonConstructorAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">O tipo tem vários construtores anotados com JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Tipo '{0}' tem vários membros anotados com 'JsonExtensionDataAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Tipo tem vários membros anotados com JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Não gerou metadados de serialização para o tipo '{0}'.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Não gerou metadados de serialização para o tipo.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pt-BR" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">O tipo 'JsonSerializerContext' derivado '{0}' especifica tipos serializáveis por JSON. O tipo e todos os tipos de contenção devem ser feitos parcialmente para iniciar a geração de origem.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Os tipos derivados de 'JsonSerializerContext' e todos os tipos contidos devem ser parciais.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">A propriedade da extensão de dados '{0}.{1}' é inválida. Deve implementar 'IDictionary&lt;string, JsonElement&gt;' ou 'IDictionary&lt;string, object&gt;', ou ter 'JsonObject'.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Tipo de propriedade de extensão de dados inválido.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Existem vários tipos chamados {0}. A fonte foi gerada para o primeiro detectado. Use 'JsonSerializableAttribute.TypeInfoPropertyName' para resolver esta colisão.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Nome de tipo duplicado.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">O membro '{0}.{1}' foi anotado com o JsonIncludeAttribute, mas não é visível para o gerador de origem.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Propriedades inacessíveis anotadas com JsonIncludeAttribute não são suportadas no modo de geração de origem.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">O tipo '{0}' define propriedades apenas de inicialização, a desserialização das quais atualmente não é suportada no modo de geração de origem.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">A desserialização de propriedades apenas de inicialização não é atualmente suportada no modo de geração de origem.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">O tipo '{0}' tem vários construtores anotados com 'JsonConstructorAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">O tipo tem vários construtores anotados com JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Tipo '{0}' tem vários membros anotados com 'JsonExtensionDataAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Tipo tem vários membros anotados com JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Não gerou metadados de serialização para o tipo '{0}'.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Não gerou metadados de serialização para o tipo.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.ru.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ru" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Производный тип "JsonSerializerContext"{0}' указывает сериализуемые типы в формате JSON. Тип и все содержащие типы необходимо сделать частичными для начала генерации источника.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Производные типы "JsonSerializerContext" и все содержащие типы должны быть частичными.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">Свойство расширения данных "{0}.{1}" недопустимо. Оно должен реализовывать строку "IDictionary&lt;string, JsonElement&gt;" или "IDictionary&lt;string, Object&gt;" либо являться "JsonObject".</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Недопустимый тип свойства расширения данных.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Существует несколько типов с именем {0}. Исходный код сформирован для первого обнаруженного типа. Используйте JsonSerializableAttribute.TypeInfoPropertyName для устранения этого конфликта.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Дублирующееся имя типа.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Элемент "{0}.{1}" аннотирован с использованием класса JsonIncludeAttribute, но генератор исходного кода не обнаруживает этот элемент.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Недоступные свойства, аннотированные с использованием класса JsonIncludeAttribute, не поддерживаются в режиме создания исходного кода.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Тип "{0}" определяет свойства, предназначенные только для инициализации. Их десериализация сейчас не поддерживается в режиме создания исходного кода.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Десериализация свойств, предназначенных только для инициализации, сейчас не поддерживается в режиме создания исходного кода.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Тип "{0}" имеет несколько конструкторов, аннотированных с использованием JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Тип имеет несколько конструкторов, аннотированных с использованием JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Тип "{0}" содержит несколько элементов, помеченных с помощью "JsonExtensionDataAttribute".</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Тип содержит несколько элементов, помеченных с помощью JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Метаданные сериализации для типа "{0}" не сформированы.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Метаданные сериализации для типа не сформированы.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ru" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Производный тип "JsonSerializerContext"{0}' указывает сериализуемые типы в формате JSON. Тип и все содержащие типы необходимо сделать частичными для начала генерации источника.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Производные типы "JsonSerializerContext" и все содержащие типы должны быть частичными.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">Свойство расширения данных "{0}.{1}" недопустимо. Оно должен реализовывать строку "IDictionary&lt;string, JsonElement&gt;" или "IDictionary&lt;string, Object&gt;" либо являться "JsonObject".</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Недопустимый тип свойства расширения данных.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Существует несколько типов с именем {0}. Исходный код сформирован для первого обнаруженного типа. Используйте JsonSerializableAttribute.TypeInfoPropertyName для устранения этого конфликта.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Дублирующееся имя типа.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Элемент "{0}.{1}" аннотирован с использованием класса JsonIncludeAttribute, но генератор исходного кода не обнаруживает этот элемент.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Недоступные свойства, аннотированные с использованием класса JsonIncludeAttribute, не поддерживаются в режиме создания исходного кода.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Тип "{0}" определяет свойства, предназначенные только для инициализации. Их десериализация сейчас не поддерживается в режиме создания исходного кода.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Десериализация свойств, предназначенных только для инициализации, сейчас не поддерживается в режиме создания исходного кода.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Тип "{0}" имеет несколько конструкторов, аннотированных с использованием JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Тип имеет несколько конструкторов, аннотированных с использованием JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Тип "{0}" содержит несколько элементов, помеченных с помощью "JsonExtensionDataAttribute".</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Тип содержит несколько элементов, помеченных с помощью JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Метаданные сериализации для типа "{0}" не сформированы.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Метаданные сериализации для типа не сформированы.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.pl.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Pochodny typ "JsonSerializerContext" "{0}" określa typy możliwe do serializacji w notacji JSON. Typ i wszystkie zawierające typy muszą być częściowe, aby uruchomić generowanie źródła.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Pochodne typy "JsonSerializerContext" i wszystkich zawierające typy muszą być częściowe.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">Właściwość rozszerzenia danych "{0}.{1}" jest nieprawidłowa. Musi ona zaimplementować ciąg "IDictionary&lt;string, JsonElement&gt;" lub "IDictionary&lt;string, object&gt;" albo być obiektem "JsonObject".</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Nieprawidłowy typ właściwości rozszerzenia danych.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Istnieje wiele typów o nazwie {0}. Wygenerowano źródło dla pierwszego wykrytego elementu. Aby rozwiązać tę kolizję, użyj „JsonSerializableAttribute. TypeInfoPropertyName”.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Zduplikowana nazwa typu.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Składowa "{0}. {1}" jest adnotowana za pomocą atrybutu JsonIncludeAttribute, ale nie jest widoczna dla generatora źródła.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Niedostępne właściwości adnotowane za pomocą atrybutu JsonIncludeAttribute nie są obsługiwane w trybie generowania źródła.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Typ "{0}" określa właściwości tylko do inicjowania, deserializację, która obecnie nie jest obsługiwana w trybie generowania źródła.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Deserializacja właściwości tylko do inicjowania nie jest obecnie obsługiwana w trybie generowania źródła.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Typ "{0}" ma wiele konstruktorów z adnotacją "JsonConstructorAttribute".</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Typ ma wiele konstruktorów z adnotacją JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Typ "{0}" ma wiele składowych opatrzonych adnotacjami za pomocą atrybutu "JsonExtensionDataAttribute".</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Typ ma wiele składowych opatrzonych adnotacjami za pomocą atrybutu JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Nie wygenerowano metadanych serializacji dla typu „{0}”.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Nie wygenerowano metadanych serializacji dla typu.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Pochodny typ "JsonSerializerContext" "{0}" określa typy możliwe do serializacji w notacji JSON. Typ i wszystkie zawierające typy muszą być częściowe, aby uruchomić generowanie źródła.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Pochodne typy "JsonSerializerContext" i wszystkich zawierające typy muszą być częściowe.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">Właściwość rozszerzenia danych "{0}.{1}" jest nieprawidłowa. Musi ona zaimplementować ciąg "IDictionary&lt;string, JsonElement&gt;" lub "IDictionary&lt;string, object&gt;" albo być obiektem "JsonObject".</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Nieprawidłowy typ właściwości rozszerzenia danych.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Istnieje wiele typów o nazwie {0}. Wygenerowano źródło dla pierwszego wykrytego elementu. Aby rozwiązać tę kolizję, użyj „JsonSerializableAttribute. TypeInfoPropertyName”.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Zduplikowana nazwa typu.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Składowa "{0}. {1}" jest adnotowana za pomocą atrybutu JsonIncludeAttribute, ale nie jest widoczna dla generatora źródła.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Niedostępne właściwości adnotowane za pomocą atrybutu JsonIncludeAttribute nie są obsługiwane w trybie generowania źródła.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Typ "{0}" określa właściwości tylko do inicjowania, deserializację, która obecnie nie jest obsługiwana w trybie generowania źródła.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Deserializacja właściwości tylko do inicjowania nie jest obecnie obsługiwana w trybie generowania źródła.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Typ "{0}" ma wiele konstruktorów z adnotacją "JsonConstructorAttribute".</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Typ ma wiele konstruktorów z adnotacją JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Typ "{0}" ma wiele składowych opatrzonych adnotacjami za pomocą atrybutu "JsonExtensionDataAttribute".</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Typ ma wiele składowych opatrzonych adnotacjami za pomocą atrybutu JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Nie wygenerowano metadanych serializacji dla typu „{0}”.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Nie wygenerowano metadanych serializacji dla typu.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.zh-Hans.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="zh-Hans" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">绑定动态操作时出现异常</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">无法在没有调用对象的情况下绑定调用</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">重载决策失败</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">必须使用两个参数调用二元运算符</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">必须使用一个参数调用一元运算符</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">名称“{0}”已绑定到某个方法,无法像属性一样使用</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">事件 '{0}' 只能出现在 + 的左侧</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">无法调用非委托类型</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">无法使用一个参数调用二元运算符</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">无法对 null 引用执行成员赋值</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">无法对 null 引用执行运行时绑定</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">无法动态调用方法“{0}”,因为它具有 Conditional 特性</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">无法将类型“void”隐式转换为“object”</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">运算符“{0}”无法应用于“{1}”和“{2}”类型的操作数</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">无法将带 [] 的索引应用于“{0}”类型的表达式</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[] 内的索引数错误;应为“{0}”</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">运算符“{0}”无法应用于“{1}”类型的操作数</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">无法将类型“{0}”隐式转换为“{1}”</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">无法将类型“{0}”转换为“{1}”</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">常量值“{0}”无法转换为“{1}”</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">运算符“{0}”对于“{1}”和“{2}”类型的操作数具有二义性</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">运算符“{0}”对于“{1}”类型的操作数具有二义性</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">无法将 null 转换为“{0}”,因为后者是不可以为 null 的值类型</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">无法通过嵌套类型“{1}”来访问外部类型“{0}”的非静态成员</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”未包含“{1}”的定义</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">对象引用对于非静态的字段、方法或属性“{0}”是必需的</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">以下方法或属性之间的调用具有二义性:“{0}”和“{1}”</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”不可访问,因为它具有一定的保护级别</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”没有与委托“{1}”匹配的重载</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">赋值号左边必须是变量、属性或索引器</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">类型“{0}”未定义构造函数</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">属性或索引器“{0}”不能用在此上下文中,因为它缺少 get 访问器</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">无法使用实例引用来访问成员“{0}”;请改用类型名来限定它</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">无法对只读字段赋值(在构造函数或变量初始值设定项中除外)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">无法为只读字段传递 ref 或 out (在构造函数中除外)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">无法对静态只读字段赋值(在静态构造函数或变量初始值设定项中除外)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">无法将静态只读字段作为 ref 或 out 参数传递(在静态构造函数中除外)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">无法为属性或索引器“{0}”赋值 - 它是只读的</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">属性或索引器不能作为 out 或 ref 参数传递</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">动态调用不能与指针一起使用</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">为了可以像短路运算符一样应用,用户定义的逻辑运算符(“{0}”)的返回类型必须与它的两个参数的类型相同</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">类型(“{0}”)必须包含运算符 True 和运算符 False 的声明</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">常量值“{0}”无法转换为“{1}”(使用“unchecked”语法重写)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">在“{0}”和“{1}”之间具有二义性</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">无法将类型“{0}”隐式转换为“{1}”。存在一个显式转换(是否缺少强制转换?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">属性或索引器“{0}”不能用在此上下文中,因为 get 访问器不可访问</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">属性或索引器“{0}”不能用在此上下文中,因为 set 访问器不可访问</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">使用泛型 {1}“{0}”需要“{2}”个类型参数</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1}“{0}”不能与类型参数一起使用</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">非泛型 {1}“{0}”不能与类型参数一起使用</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">“{2}”必须是具有公共的无参数构造函数的非抽象类型,才能用作泛型类型或方法“{0}”中的参数“{1}”</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">类型“{3}”不能用作泛型类型或方法“{0}”中的类型参数“{2}”。没有从“{3}”到“{1}”的隐式引用转换。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">类型“{3}”不能用作泛型类型或方法“{0}”中的类型参数“{2}”。可以为 null 的类型“{3}”不满足“{1}”的约束。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">类型“{3}”不能用作泛型类型或方法“{0}”中的类型参数“{2}”。可以为 null 的类型“{3}”不满足“{1}”的约束。可以为 null 的类型不能满足任何接口约束。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">类型“{3}”不能用作泛型类型或方法“{0}”中的类型参数“{2}”。没有从“{3}”到“{1}”的装箱转换。</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">无法从用法中推断出方法“{0}”的类型参数。请尝试显式指定类型参数。</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">类型“{2}”必须是引用类型才能用作泛型类型或方法“{0}”中的参数“{1}”</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">类型“{2}”必须是不可以为 null 值的类型,才能用作泛型类型或方法“{0}”中的参数“{1}”</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">从“{2}”转换为“{3}”时,用户定义的转换“{0}”和“{1}”具有二义性</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">现用语言不支持“{0}”</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”: 无法显式调用运算符或访问器</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">无法转换为静态类型“{0}”</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">增量或减量运算符的操作数必须为变量、属性或索引器</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”方法没有采用“{1}”个参数的重载</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">与“{0}”最匹配的重载方法具有一些无效参数</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 参数必须是可赋值的变量</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">无法通过“{1}”类型的限定符访问受保护的成员“{0}”;限定符必须是“{2}”类型(或者从该类型派生)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">属性、索引器或事件“{0}”不受现用语言支持;请尝试直接调用访问器方法“{1}”或“{2}”</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">属性、索引器或事件“{0}”不受现用语言支持;请尝试直接调用访问器方法“{1}”</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">委托“{0}”未采用“{1}”个参数</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">委托“{0}”有一些无效参数</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">无法为“{0}”赋值,因为它是只读的</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">无法将“{0}”作为 ref 或 out 参数传递,因为它是只读的</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">无法修改“{0}”的返回值,因为它不是变量</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">无法修改只读字段“{0}”的成员(在构造函数或变量初始值设定项中除外)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">无法为只读字段“{0}”的成员传递 ref 或 out (在构造函数中除外)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">无法为静态只读字段“{0}”的字段赋值(在静态构造函数或变量初始值设定项中除外)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">无法为静态只读字段“{0}”的字段传递 ref 或 out (在静态构造函数中除外)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">无法为“{0}”赋值,因为它是“{1}”</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”是一个“{1}”,无法作为 ref 或 out 参数进行传递</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”不包含采用“{1}”个参数的构造函数</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">不可调用的成员“{0}”不能像方法一样使用。</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">在所有固定参数均已指定后,必须显示命名参数规范</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”的最佳重载没有名为“{1}”的参数</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">委托“{0}”没有名为“{1}”的参数</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">不能多次指定所命名的参数“{0}”</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">命名实参“{0}”指定的形参已被赋予位置实参</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="zh-Hans" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">绑定动态操作时出现异常</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">无法在没有调用对象的情况下绑定调用</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">重载决策失败</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">必须使用两个参数调用二元运算符</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">必须使用一个参数调用一元运算符</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">名称“{0}”已绑定到某个方法,无法像属性一样使用</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">事件 '{0}' 只能出现在 + 的左侧</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">无法调用非委托类型</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">无法使用一个参数调用二元运算符</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">无法对 null 引用执行成员赋值</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">无法对 null 引用执行运行时绑定</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">无法动态调用方法“{0}”,因为它具有 Conditional 特性</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">无法将类型“void”隐式转换为“object”</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">运算符“{0}”无法应用于“{1}”和“{2}”类型的操作数</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">无法将带 [] 的索引应用于“{0}”类型的表达式</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[] 内的索引数错误;应为“{0}”</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">运算符“{0}”无法应用于“{1}”类型的操作数</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">无法将类型“{0}”隐式转换为“{1}”</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">无法将类型“{0}”转换为“{1}”</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">常量值“{0}”无法转换为“{1}”</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">运算符“{0}”对于“{1}”和“{2}”类型的操作数具有二义性</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">运算符“{0}”对于“{1}”类型的操作数具有二义性</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">无法将 null 转换为“{0}”,因为后者是不可以为 null 的值类型</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">无法通过嵌套类型“{1}”来访问外部类型“{0}”的非静态成员</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”未包含“{1}”的定义</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">对象引用对于非静态的字段、方法或属性“{0}”是必需的</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">以下方法或属性之间的调用具有二义性:“{0}”和“{1}”</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”不可访问,因为它具有一定的保护级别</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”没有与委托“{1}”匹配的重载</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">赋值号左边必须是变量、属性或索引器</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">类型“{0}”未定义构造函数</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">属性或索引器“{0}”不能用在此上下文中,因为它缺少 get 访问器</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">无法使用实例引用来访问成员“{0}”;请改用类型名来限定它</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">无法对只读字段赋值(在构造函数或变量初始值设定项中除外)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">无法为只读字段传递 ref 或 out (在构造函数中除外)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">无法对静态只读字段赋值(在静态构造函数或变量初始值设定项中除外)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">无法将静态只读字段作为 ref 或 out 参数传递(在静态构造函数中除外)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">无法为属性或索引器“{0}”赋值 - 它是只读的</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">属性或索引器不能作为 out 或 ref 参数传递</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">动态调用不能与指针一起使用</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">为了可以像短路运算符一样应用,用户定义的逻辑运算符(“{0}”)的返回类型必须与它的两个参数的类型相同</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">类型(“{0}”)必须包含运算符 True 和运算符 False 的声明</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">常量值“{0}”无法转换为“{1}”(使用“unchecked”语法重写)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">在“{0}”和“{1}”之间具有二义性</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">无法将类型“{0}”隐式转换为“{1}”。存在一个显式转换(是否缺少强制转换?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">属性或索引器“{0}”不能用在此上下文中,因为 get 访问器不可访问</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">属性或索引器“{0}”不能用在此上下文中,因为 set 访问器不可访问</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">使用泛型 {1}“{0}”需要“{2}”个类型参数</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1}“{0}”不能与类型参数一起使用</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">非泛型 {1}“{0}”不能与类型参数一起使用</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">“{2}”必须是具有公共的无参数构造函数的非抽象类型,才能用作泛型类型或方法“{0}”中的参数“{1}”</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">类型“{3}”不能用作泛型类型或方法“{0}”中的类型参数“{2}”。没有从“{3}”到“{1}”的隐式引用转换。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">类型“{3}”不能用作泛型类型或方法“{0}”中的类型参数“{2}”。可以为 null 的类型“{3}”不满足“{1}”的约束。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">类型“{3}”不能用作泛型类型或方法“{0}”中的类型参数“{2}”。可以为 null 的类型“{3}”不满足“{1}”的约束。可以为 null 的类型不能满足任何接口约束。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">类型“{3}”不能用作泛型类型或方法“{0}”中的类型参数“{2}”。没有从“{3}”到“{1}”的装箱转换。</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">无法从用法中推断出方法“{0}”的类型参数。请尝试显式指定类型参数。</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">类型“{2}”必须是引用类型才能用作泛型类型或方法“{0}”中的参数“{1}”</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">类型“{2}”必须是不可以为 null 值的类型,才能用作泛型类型或方法“{0}”中的参数“{1}”</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">从“{2}”转换为“{3}”时,用户定义的转换“{0}”和“{1}”具有二义性</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">现用语言不支持“{0}”</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”: 无法显式调用运算符或访问器</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">无法转换为静态类型“{0}”</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">增量或减量运算符的操作数必须为变量、属性或索引器</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”方法没有采用“{1}”个参数的重载</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">与“{0}”最匹配的重载方法具有一些无效参数</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 参数必须是可赋值的变量</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">无法通过“{1}”类型的限定符访问受保护的成员“{0}”;限定符必须是“{2}”类型(或者从该类型派生)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">属性、索引器或事件“{0}”不受现用语言支持;请尝试直接调用访问器方法“{1}”或“{2}”</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">属性、索引器或事件“{0}”不受现用语言支持;请尝试直接调用访问器方法“{1}”</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">委托“{0}”未采用“{1}”个参数</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">委托“{0}”有一些无效参数</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">无法为“{0}”赋值,因为它是只读的</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">无法将“{0}”作为 ref 或 out 参数传递,因为它是只读的</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">无法修改“{0}”的返回值,因为它不是变量</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">无法修改只读字段“{0}”的成员(在构造函数或变量初始值设定项中除外)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">无法为只读字段“{0}”的成员传递 ref 或 out (在构造函数中除外)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">无法为静态只读字段“{0}”的字段赋值(在静态构造函数或变量初始值设定项中除外)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">无法为静态只读字段“{0}”的字段传递 ref 或 out (在静态构造函数中除外)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">无法为“{0}”赋值,因为它是“{1}”</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”是一个“{1}”,无法作为 ref 或 out 参数进行传递</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”不包含采用“{1}”个参数的构造函数</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">不可调用的成员“{0}”不能像方法一样使用。</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">在所有固定参数均已指定后,必须显示命名参数规范</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">“{0}”的最佳重载没有名为“{1}”的参数</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">委托“{0}”没有名为“{1}”的参数</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">不能多次指定所命名的参数“{0}”</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">命名实参“{0}”指定的形参已被赋予位置实参</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.pl.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">Do argumentu „{0}” nie odwołuje się komunikat rejestrowania</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Do argumentu nie odwołuje się komunikat rejestrowania</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">Generowanie więcej niż 6 argumentów nie jest obsługiwane</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Nie można mieć tego samego szablonu z różną wielkością liter</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Nazwy metody rejestrowania nie mogą rozpoczynać się od znaku „_”</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Nazwy parametrów metody rejestrowania nie mogą rozpoczynać się od znaku „_”</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Metody rejestrowania nie mogą mieć treści</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Metody rejestrowania nie mogą być ogólne</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Metody rejestrowania muszą być częściowe</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Metody rejestrowania muszą zwracać wartość typu void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Metody rejestrowania muszą być statyczne</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Nie może zawierać źle sformułowanego formatu ciągów (takich jak zawieszonego znaku „{”, itp.)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Wartość LogLevel musi być podana w atrybucie LoggerMessage lub jako parametr metody rejestrowania</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Jeden z argumentów statycznej metody rejestrowania „{0}” musi implementować interfejs Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Jeden z argumentów statycznej metody rejestrowania musi implementować interfejs Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Nie można znaleźć pola typu Microsoft.Extensions.Logging.ILogger w klasie {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Nie można znaleźć pola typu Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Nie można znaleźć definicji dla typu {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Nie można znaleźć wymaganej definicji typu</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Znaleziono wiele pól typu Microsoft.Extensions.Logging.ILogger w klasie {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Znaleziono wiele pól typu Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Usuń nadmiarowy kwalifikator (Info:, Warning:, Error: itp.) z komunikatu rejestrowania, ponieważ jest on domyślny na określonym poziomie dziennika.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Nadmiarowy kwalifikator w komunikacie rejestrowania</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Nie dołączać parametrów wyjątków jako szablonów w komunikatach rejestrowania</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Nie dołączać szablonu dla {0} do komunikatu o rejestracji, ponieważ jest to wykonywane domyślnie</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Nie dołączać parametrów poziomu dziennika jako szablonów w komunikatach rejestrowania</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Nie dołączać parametrów rejestratora jako szablonów do komunikatu rejestrowania</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Wiele metod rejestrowania używa identyfikatora zdarzenia {0} w klasie {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Wiele metod rejestrowania nie może używać tego samego identyfikatora zdarzenia w obrębie klasy</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Nie podano szablonu „{0}” jako argumentu dla metody rejestrowania</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Szablon rejestrowania nie ma odpowiadającego mu argumentu metody</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">Do argumentu „{0}” nie odwołuje się komunikat rejestrowania</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Do argumentu nie odwołuje się komunikat rejestrowania</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">Generowanie więcej niż 6 argumentów nie jest obsługiwane</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Nie można mieć tego samego szablonu z różną wielkością liter</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Nazwy metody rejestrowania nie mogą rozpoczynać się od znaku „_”</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Nazwy parametrów metody rejestrowania nie mogą rozpoczynać się od znaku „_”</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Metody rejestrowania nie mogą mieć treści</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Metody rejestrowania nie mogą być ogólne</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Metody rejestrowania muszą być częściowe</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Metody rejestrowania muszą zwracać wartość typu void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Metody rejestrowania muszą być statyczne</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Nie może zawierać źle sformułowanego formatu ciągów (takich jak zawieszonego znaku „{”, itp.)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Wartość LogLevel musi być podana w atrybucie LoggerMessage lub jako parametr metody rejestrowania</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Jeden z argumentów statycznej metody rejestrowania „{0}” musi implementować interfejs Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Jeden z argumentów statycznej metody rejestrowania musi implementować interfejs Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Nie można znaleźć pola typu Microsoft.Extensions.Logging.ILogger w klasie {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Nie można znaleźć pola typu Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Nie można znaleźć definicji dla typu {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Nie można znaleźć wymaganej definicji typu</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Znaleziono wiele pól typu Microsoft.Extensions.Logging.ILogger w klasie {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Znaleziono wiele pól typu Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Usuń nadmiarowy kwalifikator (Info:, Warning:, Error: itp.) z komunikatu rejestrowania, ponieważ jest on domyślny na określonym poziomie dziennika.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Nadmiarowy kwalifikator w komunikacie rejestrowania</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Nie dołączać parametrów wyjątków jako szablonów w komunikatach rejestrowania</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Nie dołączać szablonu dla {0} do komunikatu o rejestracji, ponieważ jest to wykonywane domyślnie</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Nie dołączać parametrów poziomu dziennika jako szablonów w komunikatach rejestrowania</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Nie dołączać parametrów rejestratora jako szablonów do komunikatu rejestrowania</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Wiele metod rejestrowania używa identyfikatora zdarzenia {0} w klasie {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Wiele metod rejestrowania nie może używać tego samego identyfikatora zdarzenia w obrębie klasy</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Nie podano szablonu „{0}” jako argumentu dla metody rejestrowania</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Szablon rejestrowania nie ma odpowiadającego mu argumentu metody</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.de.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="de" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Der abgeleitete JsonSerializerContext-Typ "{0}" gibt serialisierbare JSON-Typen an. Der Typ und alle enthaltenden Typen müssen partiell sein, um die Quellgenerierung zu starten.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Abgeleitete JsonSerializerContext-Typen und alle enthaltenden Typen müssen partiell sein.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">Die Datenerweiterungseigenschaft „{0}.{1}“ ist ungültig. Sie muss „IDictionary&lt;string, JsonElement&gt;“ oder „IDictionary&lt;string, object&gt;“ oder „JsonObject“ implementieren.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Der Typ der Datenerweiterungseigenschaft ist ungültig.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Es sind mehrere Typen namens "{0}" vorhanden. Die Quelle wurde für den ersten festgestellten Typ generiert. Verwenden Sie "JsonSerializableAttribute.TypeInfoPropertyName", um diesen Konflikt zu beheben.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Doppelter Typname</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Der Member "{0}. {1}" wurde mit dem JsonIncludeAttribute versehen, ist jedoch für den Quellgenerator nicht sichtbar.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Nicht zugängliche Eigenschaften, die mit dem JsonIncludeAttribute versehen sind, werden im Quellgenerierungsmodus nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Der Typ "{0}" definiert nur init-Eigenschaften, deren Deserialisierung im Quellgenerierungsmodus derzeit nicht unterstützt wird.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Die Deserialisierung von reinen init-Eigenschaften wird im Quellgenerierungsmodus derzeit nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Typ "{0}" weist mehrere Konstruktoren mit dem Kommentar "JsonConstructorAttribute" auf.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Der Typ weist mehrere Konstruktoren mit dem Kommentar JsonConstructorAttribute auf.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Typ „{0}“ enthält mehrere Elemente, die mit dem „JsonExtensionDataAttribute“ versehen sind.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Der Typ enthält mehrere Elemente, die mit dem JsonExtensionDataAttribute versehen sind.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Die Serialisierungsmetadaten für den Typ "{0}" wurden nicht generiert.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Serialisierungsmetadaten für den Typ wurden nicht generiert</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="de" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Der abgeleitete JsonSerializerContext-Typ "{0}" gibt serialisierbare JSON-Typen an. Der Typ und alle enthaltenden Typen müssen partiell sein, um die Quellgenerierung zu starten.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Abgeleitete JsonSerializerContext-Typen und alle enthaltenden Typen müssen partiell sein.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">Die Datenerweiterungseigenschaft „{0}.{1}“ ist ungültig. Sie muss „IDictionary&lt;string, JsonElement&gt;“ oder „IDictionary&lt;string, object&gt;“ oder „JsonObject“ implementieren.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Der Typ der Datenerweiterungseigenschaft ist ungültig.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Es sind mehrere Typen namens "{0}" vorhanden. Die Quelle wurde für den ersten festgestellten Typ generiert. Verwenden Sie "JsonSerializableAttribute.TypeInfoPropertyName", um diesen Konflikt zu beheben.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Doppelter Typname</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Der Member "{0}. {1}" wurde mit dem JsonIncludeAttribute versehen, ist jedoch für den Quellgenerator nicht sichtbar.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Nicht zugängliche Eigenschaften, die mit dem JsonIncludeAttribute versehen sind, werden im Quellgenerierungsmodus nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Der Typ "{0}" definiert nur init-Eigenschaften, deren Deserialisierung im Quellgenerierungsmodus derzeit nicht unterstützt wird.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">Die Deserialisierung von reinen init-Eigenschaften wird im Quellgenerierungsmodus derzeit nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Typ "{0}" weist mehrere Konstruktoren mit dem Kommentar "JsonConstructorAttribute" auf.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Der Typ weist mehrere Konstruktoren mit dem Kommentar JsonConstructorAttribute auf.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Typ „{0}“ enthält mehrere Elemente, die mit dem „JsonExtensionDataAttribute“ versehen sind.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Der Typ enthält mehrere Elemente, die mit dem JsonExtensionDataAttribute versehen sind.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Die Serialisierungsmetadaten für den Typ "{0}" wurden nicht generiert.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Serialisierungsmetadaten für den Typ wurden nicht generiert</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.de.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="de" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Unerwartete Ausnahme beim Binden eines dynamischen Vorgangs</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Ein Aufruf ohne aufrufendes Objekt kann nicht gebunden werden.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Fehler bei der Überladungsauflösung.</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Binäre Operatoren müssen mit zwei Argumenten aufgerufen werden.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Unäre Operatoren müssen mit einem Argument aufgerufen werden.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Der Name "{0}" ist an eine Methode gebunden und kann nicht wie eine Eigenschaft verwendet werden.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">Das Ereignis "{0}" kann nur links von "+" verwendet werden.</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Ein Nichtdelegattyp kann nicht aufgerufen werden.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Binäre Operatoren können nicht mit einem Argument aufgerufen werden.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Für einen NULL-Verweis kann keine Memberzuweisung ausgeführt werden.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Die Laufzeitbindung kann für einen NULL-Verweis nicht ausgeführt werden.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Die {0}-Methode kann nicht dynamisch aufgerufen werden, da sie ein Conditional-Attribut enthält.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Der Typ "void" kann nicht implizit in "object" konvertiert werden.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Operator kann nicht auf Operanden vom Typ "{1}" und "{2}" angewendet werden.</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Eine Indizierung mit [] kann nicht auf einen Ausdruck vom Typ "{0}" angewendet werden.</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Falsche Indexanzahl in []. {0} wurde erwartet</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Operator kann nicht auf einen Operanden vom Typ "{1}" angewendet werden.</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Typ kann nicht implizit in {1} konvertiert werden.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Typ kann nicht in {1} konvertiert werden.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der Konstantenwert "{0}" kann nicht in {1} konvertiert werden.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Operator ist bei Operanden vom Typ "{1}" und "{2}" mehrdeutig.</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Operator ist für einen Operanden vom Typ "{1}" mehrdeutig.</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">NULL kann nicht in {0} konvertiert werden, da dieser Werttyp nicht auf NULL festgelegt werden kann.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Auf einen nicht statischen Member des äußeren {0}-Typs kann nicht über den geschachtelten {1}-Typ zugegriffen werden.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" enthält keine Definition für "{1}".</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Für das nicht statische Feld, die Methode oder die Eigenschaft "{0}" ist ein Objektverweis erforderlich.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der Aufruf unterscheidet nicht eindeutig zwischen den folgenden Methoden oder Eigenschaften: {0} und {1}</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">Der Zugriff auf "{0}" ist aufgrund des Schutzgrads nicht möglich.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Keine Überladung für {0} stimmt mit dem Delegaten "{1}" überein.</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Die linke Seite einer Zuweisung muss eine Variable, eine Eigenschaft oder ein Indexer sein.</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Für den {0}-Typ sind keine Konstruktoren definiert.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft oder der Indexer "{0}" kann in diesem Kontext nicht verwendet werden, weil der get-Accessor fehlt.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Auf den Member "{0}" kann nicht mit einem Instanzverweis zugegriffen werden. Qualifizieren Sie ihn stattdessen mit einem Typnamen.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Für ein schreibgeschütztes Feld ist eine Zuweisung nicht möglich (außer in einem Konstruktor oder Variableninitialisierer).</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">An ein schreibgeschütztes Feld können keine ref- oder out-Argumente übergeben werden (außer in einem Konstruktor).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Für ein statisches schreibgeschütztes Feld ist eine Zuweisung nicht möglich (außer in einem statischen Konstruktor oder einem Variableninitialisierer).</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">An ein statisches schreibgeschütztes Feld können keine ref- oder out-Argumente übergeben werden (außer in einem Konstruktor).</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Für die Eigenschaft oder den Indexer "{0}" ist eine Zuweisung nicht möglich -- sie sind schreibgeschützt.</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Eine Eigenschaft oder ein Indexer kann nicht als out- oder ref-Parameter übergeben werden.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Dynamische Aufrufe können nicht in Verbindung mit Zeigern verwendet werden.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Um als Kurzschlussoperator anwendbar zu sein, muss der Rückgabetyp eines benutzerdefinierten logischen Operators ({0}) mit dem Typ seiner zwei Parameter übereinstimmen.</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Der Typ ({0}) muss Deklarationen des True- und des False-Operators enthalten.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Der Konstantenwert "{0}" kann nicht in {1} konvertiert werden (verwenden Sie zum Außerkraftsetzen die unchecked-Syntax).</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Mehrdeutigkeit zwischen {0} und {1}</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Typ kann nicht implizit in {1} konvertiert werden. Es ist bereits eine explizite Konvertierung vorhanden (möglicherweise fehlt eine Umwandlung).</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft oder der Indexer "{0}" kann in diesem Kontext nicht verwendet werden, da nicht auf den get-Accessor zugegriffen werden kann.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft oder der Indexer "{0}" kann in diesem Kontext nicht verwendet werden, da nicht auf den set-Accessor zugegriffen werden kann.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Die Verwendung von {1} "{0}" (generisch) erfordert {2}-Typargumente.</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} "{0}" kann nicht mit Typargumenten verwendet werden.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} "{0}" ist nicht generisch und kann daher nicht mit Typargumenten verwendet werden.</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">"{2}" muss ein nicht abstrakter Typ mit einem öffentlichen parameterlosen Konstruktor sein, um im generischen Typ oder in der generischen {0}-Methode als {1}-Parameter verwendet werden zu können.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Der {3}-Typ kann nicht als {2}-Typparameter im generischen Typ oder in der generischen {0}-Methode verwendet werden. Es ist keine implizite Verweiskonvertierung von {3} in {1} vorhanden.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Der {3}-Typ kann nicht als {2}-Typparameter im generischen Typ oder in der generischen {0}-Methode verwendet werden. Der {3}-Typ, der NULL-Werte zulässt, entspricht nicht der Einschränkung von {1}.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Der {3}-Typ kann nicht als {2}-Typparameter im generischen Typ oder in der generischen {0}-Methode verwendet werden. Der {3}-Typ, der NULL-Werte zulässt, entspricht nicht der Einschränkung von {1}. Typen, die NULL-Werte zulassen, können Schnittstelleneinschränkungen nicht entsprechen.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Der {3}-Typ kann nicht als {2}-Typparameter im generischen Typ oder in der generischen {0}-Methode verwendet werden. Es ist keine Boxing-Konvertierung von {3} in {1} vorhanden.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Die Typargumente der {0}-Methode können nicht per Rückschluss aus der Syntax abgeleitet werden. Geben Sie die Typargumente explizit an.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {2}-Typ muss ein Referenztyp sein, damit er als {1}-Parameter im generischen Typ oder in der generischen {0}-Methode verwendet werden kann.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {2}-Typ darf keine NULL-Werte zulassen, wenn er als {1}-Parameter im generischen Typ oder in der generischen {0}-Methode verwendet werden soll.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Mehrdeutige benutzerdefinierte Konvertierungen von {0} und {1} bei der Konvertierung von {2} in {3}</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" wird von der Sprache nicht unterstützt.</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">{0}: Der Operator oder Accessor kann nicht explizit aufgerufen werden.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Die Konvertierung in den statischen {0}-Typ ist nicht möglich.</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Der Operand eines Inkrement- oder Dekrementoperators muss eine Variable, eine Eigenschaft oder ein Indexer sein.</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Keine Überladung für die {0}-Methode nimmt {1}-Argumente an.</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Die beste Übereinstimmung für die überladene {0}-Methode enthält einige ungültige Argumente.</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Ein ref- oder out-Argument muss eine zuweisbare Variable sein.</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Auf den geschützten Member "{0}" kann nicht über einen Qualifizierer vom Typ "{1}" zugegriffen werden. Der Qualifizierer muss vom Typ "{2}" (oder von ihm abgeleitet) sein.</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft, der Indexer oder das Ereignis "{0}" wird von der Sprache nicht unterstützt. Rufen Sie die {1}- oder {2}-Accessormethoden direkt auf.</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft, der Indexer oder das Ereignis "{0}" wird von der Sprache nicht unterstützt. Rufen Sie die {1}-Accessormethode direkt auf.</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Der Delegat "{0}" akzeptiert {1}-Argumente nicht.</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Der Delegat "{0}" enthält einige ungültige Argumente.</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">{0} ist schreibgeschützt. Eine Zuweisung ist daher nicht möglich.</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">{0} ist schreibgeschützt und kann daher nicht als ref- oder out-Argument übergeben werden.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Der Rückgabewert von {0} ist keine Variable und kann daher nicht geändert werden.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Member des schreibgeschützten Felds "{0}" können nicht geändert werden (außer in einem Konstruktor oder Variableninitialisierer).</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">An Member des schreibgeschützten Felds "{0}" können keine ref- oder out-Argumente übergeben werden (außer in einem Konstruktor).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Für Felder eines statischen schreibgeschützten Felds "{0}" ist eine Zuweisung nicht möglich (außer in einem statischen Konstruktor oder einem Variableninitialisierer).</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">An Felder des schreibgeschützten Felds "{0}" können keine ref- oder out-Argumente übergeben werden (außer in einem Konstruktor).</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">{0} ist ein(e) {1}. Eine Zuweisung ist daher nicht möglich.</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">{0} ist ein(e) {1} und kann daher nicht als ref- oder out-Argument übergeben werden.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" enthält keinen Konstruktor, der {1}-Argumente akzeptiert.</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Der nicht aufrufbare Member "{0}" kann nicht wie eine Methode verwendet werden.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Benannte Argumente müssen nach allen festen Argumenten angegeben werden.</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Die beste Überladung für {0} enthält keinen Parameter mit dem Namen "{1}".</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der Delegat "{0}" enthält keinen Parameter mit dem Namen "{1}".</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Das benannte {0}-Argument kann nicht mehrmals angegeben werden.</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">Das benannte {0}-Argument legt einen Parameter fest, für den bereits ein positionelles Argument angegeben wurde.</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="de" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Unerwartete Ausnahme beim Binden eines dynamischen Vorgangs</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Ein Aufruf ohne aufrufendes Objekt kann nicht gebunden werden.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Fehler bei der Überladungsauflösung.</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Binäre Operatoren müssen mit zwei Argumenten aufgerufen werden.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Unäre Operatoren müssen mit einem Argument aufgerufen werden.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Der Name "{0}" ist an eine Methode gebunden und kann nicht wie eine Eigenschaft verwendet werden.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">Das Ereignis "{0}" kann nur links von "+" verwendet werden.</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Ein Nichtdelegattyp kann nicht aufgerufen werden.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Binäre Operatoren können nicht mit einem Argument aufgerufen werden.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Für einen NULL-Verweis kann keine Memberzuweisung ausgeführt werden.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Die Laufzeitbindung kann für einen NULL-Verweis nicht ausgeführt werden.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Die {0}-Methode kann nicht dynamisch aufgerufen werden, da sie ein Conditional-Attribut enthält.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Der Typ "void" kann nicht implizit in "object" konvertiert werden.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Operator kann nicht auf Operanden vom Typ "{1}" und "{2}" angewendet werden.</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Eine Indizierung mit [] kann nicht auf einen Ausdruck vom Typ "{0}" angewendet werden.</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Falsche Indexanzahl in []. {0} wurde erwartet</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Operator kann nicht auf einen Operanden vom Typ "{1}" angewendet werden.</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Typ kann nicht implizit in {1} konvertiert werden.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Typ kann nicht in {1} konvertiert werden.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der Konstantenwert "{0}" kann nicht in {1} konvertiert werden.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Operator ist bei Operanden vom Typ "{1}" und "{2}" mehrdeutig.</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Operator ist für einen Operanden vom Typ "{1}" mehrdeutig.</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">NULL kann nicht in {0} konvertiert werden, da dieser Werttyp nicht auf NULL festgelegt werden kann.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Auf einen nicht statischen Member des äußeren {0}-Typs kann nicht über den geschachtelten {1}-Typ zugegriffen werden.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" enthält keine Definition für "{1}".</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Für das nicht statische Feld, die Methode oder die Eigenschaft "{0}" ist ein Objektverweis erforderlich.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der Aufruf unterscheidet nicht eindeutig zwischen den folgenden Methoden oder Eigenschaften: {0} und {1}</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">Der Zugriff auf "{0}" ist aufgrund des Schutzgrads nicht möglich.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Keine Überladung für {0} stimmt mit dem Delegaten "{1}" überein.</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Die linke Seite einer Zuweisung muss eine Variable, eine Eigenschaft oder ein Indexer sein.</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Für den {0}-Typ sind keine Konstruktoren definiert.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft oder der Indexer "{0}" kann in diesem Kontext nicht verwendet werden, weil der get-Accessor fehlt.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Auf den Member "{0}" kann nicht mit einem Instanzverweis zugegriffen werden. Qualifizieren Sie ihn stattdessen mit einem Typnamen.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Für ein schreibgeschütztes Feld ist eine Zuweisung nicht möglich (außer in einem Konstruktor oder Variableninitialisierer).</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">An ein schreibgeschütztes Feld können keine ref- oder out-Argumente übergeben werden (außer in einem Konstruktor).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Für ein statisches schreibgeschütztes Feld ist eine Zuweisung nicht möglich (außer in einem statischen Konstruktor oder einem Variableninitialisierer).</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">An ein statisches schreibgeschütztes Feld können keine ref- oder out-Argumente übergeben werden (außer in einem Konstruktor).</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Für die Eigenschaft oder den Indexer "{0}" ist eine Zuweisung nicht möglich -- sie sind schreibgeschützt.</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Eine Eigenschaft oder ein Indexer kann nicht als out- oder ref-Parameter übergeben werden.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Dynamische Aufrufe können nicht in Verbindung mit Zeigern verwendet werden.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Um als Kurzschlussoperator anwendbar zu sein, muss der Rückgabetyp eines benutzerdefinierten logischen Operators ({0}) mit dem Typ seiner zwei Parameter übereinstimmen.</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Der Typ ({0}) muss Deklarationen des True- und des False-Operators enthalten.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Der Konstantenwert "{0}" kann nicht in {1} konvertiert werden (verwenden Sie zum Außerkraftsetzen die unchecked-Syntax).</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Mehrdeutigkeit zwischen {0} und {1}</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Der {0}-Typ kann nicht implizit in {1} konvertiert werden. Es ist bereits eine explizite Konvertierung vorhanden (möglicherweise fehlt eine Umwandlung).</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft oder der Indexer "{0}" kann in diesem Kontext nicht verwendet werden, da nicht auf den get-Accessor zugegriffen werden kann.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft oder der Indexer "{0}" kann in diesem Kontext nicht verwendet werden, da nicht auf den set-Accessor zugegriffen werden kann.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Die Verwendung von {1} "{0}" (generisch) erfordert {2}-Typargumente.</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} "{0}" kann nicht mit Typargumenten verwendet werden.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} "{0}" ist nicht generisch und kann daher nicht mit Typargumenten verwendet werden.</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">"{2}" muss ein nicht abstrakter Typ mit einem öffentlichen parameterlosen Konstruktor sein, um im generischen Typ oder in der generischen {0}-Methode als {1}-Parameter verwendet werden zu können.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Der {3}-Typ kann nicht als {2}-Typparameter im generischen Typ oder in der generischen {0}-Methode verwendet werden. Es ist keine implizite Verweiskonvertierung von {3} in {1} vorhanden.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Der {3}-Typ kann nicht als {2}-Typparameter im generischen Typ oder in der generischen {0}-Methode verwendet werden. Der {3}-Typ, der NULL-Werte zulässt, entspricht nicht der Einschränkung von {1}.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Der {3}-Typ kann nicht als {2}-Typparameter im generischen Typ oder in der generischen {0}-Methode verwendet werden. Der {3}-Typ, der NULL-Werte zulässt, entspricht nicht der Einschränkung von {1}. Typen, die NULL-Werte zulassen, können Schnittstelleneinschränkungen nicht entsprechen.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Der {3}-Typ kann nicht als {2}-Typparameter im generischen Typ oder in der generischen {0}-Methode verwendet werden. Es ist keine Boxing-Konvertierung von {3} in {1} vorhanden.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Die Typargumente der {0}-Methode können nicht per Rückschluss aus der Syntax abgeleitet werden. Geben Sie die Typargumente explizit an.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {2}-Typ muss ein Referenztyp sein, damit er als {1}-Parameter im generischen Typ oder in der generischen {0}-Methode verwendet werden kann.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Der {2}-Typ darf keine NULL-Werte zulassen, wenn er als {1}-Parameter im generischen Typ oder in der generischen {0}-Methode verwendet werden soll.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Mehrdeutige benutzerdefinierte Konvertierungen von {0} und {1} bei der Konvertierung von {2} in {3}</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" wird von der Sprache nicht unterstützt.</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">{0}: Der Operator oder Accessor kann nicht explizit aufgerufen werden.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Die Konvertierung in den statischen {0}-Typ ist nicht möglich.</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Der Operand eines Inkrement- oder Dekrementoperators muss eine Variable, eine Eigenschaft oder ein Indexer sein.</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Keine Überladung für die {0}-Methode nimmt {1}-Argumente an.</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Die beste Übereinstimmung für die überladene {0}-Methode enthält einige ungültige Argumente.</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Ein ref- oder out-Argument muss eine zuweisbare Variable sein.</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Auf den geschützten Member "{0}" kann nicht über einen Qualifizierer vom Typ "{1}" zugegriffen werden. Der Qualifizierer muss vom Typ "{2}" (oder von ihm abgeleitet) sein.</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft, der Indexer oder das Ereignis "{0}" wird von der Sprache nicht unterstützt. Rufen Sie die {1}- oder {2}-Accessormethoden direkt auf.</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Die Eigenschaft, der Indexer oder das Ereignis "{0}" wird von der Sprache nicht unterstützt. Rufen Sie die {1}-Accessormethode direkt auf.</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Der Delegat "{0}" akzeptiert {1}-Argumente nicht.</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Der Delegat "{0}" enthält einige ungültige Argumente.</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">{0} ist schreibgeschützt. Eine Zuweisung ist daher nicht möglich.</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">{0} ist schreibgeschützt und kann daher nicht als ref- oder out-Argument übergeben werden.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Der Rückgabewert von {0} ist keine Variable und kann daher nicht geändert werden.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Member des schreibgeschützten Felds "{0}" können nicht geändert werden (außer in einem Konstruktor oder Variableninitialisierer).</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">An Member des schreibgeschützten Felds "{0}" können keine ref- oder out-Argumente übergeben werden (außer in einem Konstruktor).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Für Felder eines statischen schreibgeschützten Felds "{0}" ist eine Zuweisung nicht möglich (außer in einem statischen Konstruktor oder einem Variableninitialisierer).</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">An Felder des schreibgeschützten Felds "{0}" können keine ref- oder out-Argumente übergeben werden (außer in einem Konstruktor).</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">{0} ist ein(e) {1}. Eine Zuweisung ist daher nicht möglich.</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">{0} ist ein(e) {1} und kann daher nicht als ref- oder out-Argument übergeben werden.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">"{0}" enthält keinen Konstruktor, der {1}-Argumente akzeptiert.</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Der nicht aufrufbare Member "{0}" kann nicht wie eine Methode verwendet werden.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Benannte Argumente müssen nach allen festen Argumenten angegeben werden.</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Die beste Überladung für {0} enthält keinen Parameter mit dem Namen "{1}".</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Der Delegat "{0}" enthält keinen Parameter mit dem Namen "{1}".</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Das benannte {0}-Argument kann nicht mehrmals angegeben werden.</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">Das benannte {0}-Argument legt einen Parameter fest, für den bereits ein positionelles Argument angegeben wurde.</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.fr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">L’argument « {0} » n’est pas référencé à partir du message de journalisation</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">L’argument n’est pas référencé à partir du message de journalisation</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">La génération de plus de 6 arguments n’est pas prise en charge</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Impossible d’avoir le même modèle avec une casse différente</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Les noms de méthode de journalisation ne peuvent pas commencer par _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Les noms de paramètres de méthode de journalisation ne peuvent pas commencer par _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Les méthodes de journalisation ne peuvent pas avoir de corps</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Les méthodes de journalisation ne peuvent pas être génériques</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Les méthodes de journalisation doivent être partielles</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Les méthodes de journalisation doivent retourner void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Les méthodes de journalisation doivent être statiques</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Chaînes de format incorrect (par exemple { non fermée, etc.)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Une valeur LogLevel doit être fournie dans l’attribut LoggerMessage ou en tant que paramètre de la méthode de journalisation</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">L’un des arguments d’une méthode de journalisation statique « {0} » doit implémenter l’interface Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">L’un des arguments d’une méthode de journalisation statique doit implémenter l’interface Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Impossible de trouver un champ de type Microsoft.Extensions.Logging.ILogger dans la classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Impossible de trouver un champ de type Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">La définition du type {0} n’a pas été trouvée</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Impossible de trouver la définition d’un type requis</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Plusieurs champs de type Microsoft.Extensions.Logging.ILogger ont été trouvés dans la classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Plusieurs champs de type Microsoft.Extensions.Logging.ILogger ont été trouvés</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Supprimez le qualificateur redondant (Info:, Warning:, Error:, etc.) du message de journalisation, car il est implicite dans le niveau de journalisation spécifié.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Qualificateur redondant dans le message de journalisation</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Ne pas ajouter de paramètres d’exception comme modèles dans le message de journalisation</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Ne pas ajouter de modèle pour {0} dans le message de journalisation, car il est implicitement pris en charge</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Ne pas ajouter de paramètres de niveau de journalisation comme modèles dans le message de journalisation</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Ne pas ajouter de paramètres d’enregistreur de journalisation comme modèles dans le message de journalisation</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Plusieurs méthodes de journalisation utilisent l’ID d’événement {0} dans la classe {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Le même ID d’événement dans une classe ne peut pas être utilisé par plusieurs méthodes de journalisation</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Le modèle « {0} » n’est pas fourni comme argument de la méthode de journalisation</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Le modèle de journalisation n’a pas d’argument de méthode correspondant</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">L’argument « {0} » n’est pas référencé à partir du message de journalisation</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">L’argument n’est pas référencé à partir du message de journalisation</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">La génération de plus de 6 arguments n’est pas prise en charge</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Impossible d’avoir le même modèle avec une casse différente</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Les noms de méthode de journalisation ne peuvent pas commencer par _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Les noms de paramètres de méthode de journalisation ne peuvent pas commencer par _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Les méthodes de journalisation ne peuvent pas avoir de corps</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Les méthodes de journalisation ne peuvent pas être génériques</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Les méthodes de journalisation doivent être partielles</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Les méthodes de journalisation doivent retourner void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Les méthodes de journalisation doivent être statiques</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Chaînes de format incorrect (par exemple { non fermée, etc.)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Une valeur LogLevel doit être fournie dans l’attribut LoggerMessage ou en tant que paramètre de la méthode de journalisation</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">L’un des arguments d’une méthode de journalisation statique « {0} » doit implémenter l’interface Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">L’un des arguments d’une méthode de journalisation statique doit implémenter l’interface Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Impossible de trouver un champ de type Microsoft.Extensions.Logging.ILogger dans la classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Impossible de trouver un champ de type Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">La définition du type {0} n’a pas été trouvée</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Impossible de trouver la définition d’un type requis</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Plusieurs champs de type Microsoft.Extensions.Logging.ILogger ont été trouvés dans la classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Plusieurs champs de type Microsoft.Extensions.Logging.ILogger ont été trouvés</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Supprimez le qualificateur redondant (Info:, Warning:, Error:, etc.) du message de journalisation, car il est implicite dans le niveau de journalisation spécifié.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Qualificateur redondant dans le message de journalisation</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Ne pas ajouter de paramètres d’exception comme modèles dans le message de journalisation</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Ne pas ajouter de modèle pour {0} dans le message de journalisation, car il est implicitement pris en charge</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Ne pas ajouter de paramètres de niveau de journalisation comme modèles dans le message de journalisation</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Ne pas ajouter de paramètres d’enregistreur de journalisation comme modèles dans le message de journalisation</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Plusieurs méthodes de journalisation utilisent l’ID d’événement {0} dans la classe {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Le même ID d’événement dans une classe ne peut pas être utilisé par plusieurs méthodes de journalisation</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Le modèle « {0} » n’est pas fourni comme argument de la méthode de journalisation</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Le modèle de journalisation n’a pas d’argument de méthode correspondant</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.ja.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="ja" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">動的な操作をバインド中に、予期しない例外が発生しました</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">呼び出し元オブジェクトのない呼び出しはバインドできません</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">オーバーロードの解決に失敗しました</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">二項演算子は 2 つの引数を指定して呼び出す必要があります</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">単項演算子は 1 つの引数を指定して呼び出す必要があります</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">名前 '{0}' はメソッドにバインドされており、プロパティのように使用することはできません</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">イベント '{0}' は + の左側にのみ使用できます</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">非デリゲート型を呼び出すことはできません</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">1 つの引数を指定して二項演算子を呼び出すことはできません</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">null 参照に対してメンバー割り当てを実行することはできません</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">null 参照に対して実行時バインディングを実行することはできません</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">条件付き属性があるため、メソッド '{0}' を動的に呼び出すことはできません</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">型 'void' を 'object' に暗黙的に変換することはできません</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">演算子 '{0}' を '{1}' と '{2}' 型のオペランドに適用することはできません</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">角かっこ [] 付きインデックスを '{0}' 型の式に適用することはできません</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">角かっこ [] 内のインデックス数が正しくありません。正しい数は '{0}' です</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">演算子 '{0}' は '{1}' 型のオペランドに適用できません</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{0}' を '{1}' に暗黙的に変換できません</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{0}' を '{1}' に変換できません</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">定数値 '{0}' を '{1}' に変換できません</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{1}' および '{2}' のオペランドの演算子 '{0}' があいまいです</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">演算子 '{0}' は型 '{1}' のオペランドに対してあいまいです</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Null 非許容の値型であるため、Null を '{0}' に変換できません</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">入れ子にされた型 '{1}' を経由して、外の型 '{0}' の静的でないメンバーにアクセスすることはできません</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' に '{1}' の定義がありません</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">静的でないフィールド、メソッド、またはプロパティ '{0}' で、オブジェクト参照が必要です</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">次のメソッドまたはプロパティ間で呼び出しが不適切です: '{0}' と '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' はアクセスできない保護レベルになっています</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">デリゲート '{1}' に一致する '{0}' のオーバーロードはありません</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">代入式の左辺には変数、プロパティ、またはインデクサーを指定してください</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">型 '{0}' のコンストラクターが定義されていません</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">get アクセサーがないため、プロパティまたはインデクサー '{0}' をこのコンテキストで使用することはできません</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">インスタンス参照でメンバー '{0}' にアクセスできません。代わりに型名を使用してください</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールドに割り当てることはできません (コンストラクター、変数初期化子では可 )</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールドに ref または out を渡すことはできません (コンストラクターでは可 )</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">静的読み取り専用フィールドへの割り当てはできません (静的コンストラクターまたは変数初期化子では可)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールドに ref または out を渡すことはできません (静的コンストラクターでは可)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">プロパティまたはインデクサー '{0}' は読み取り専用であるため、割り当てることはできません</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">プロパティまたはインデクサーを out か ref のパラメーターとして渡すことはできません</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">動的な呼び出しはポインターと共に使用できません</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">short circuit 演算子として適用するためには、ユーザー定義の論理演算子 ('{0}') がその 2 つのパラメーターと同じ戻り値の型を持つ必要があります</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">型 ('{0}') に演算子 true および演算子 false の宣言が含まれている必要があります</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">定数値 '{0}' は '{1}' に変換できません (unchecked 構文を使ってオーバーライドしてください)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' と '{1}' 間があいまいです</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">型 '{0}' を '{1}' に暗黙的に変換できません。明示的な変換が存在します (cast が不足していないかどうかを確認してください)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">get アクセサーにアクセスできないため、プロパティまたはインデクサー '{0}' はこのコンテキストでは使用できません</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">set アクセサーにアクセスできないため、プロパティまたはインデクサー '{0}' はこのコンテキストでは使用できません</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">ジェネリック {1} '{0}' の使用には、'{2}' 型の引数が必要です</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}' は型引数と一緒には使用できません</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">非ジェネリック {1} '{0}' は型引数と一緒には使用できません</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' は、ジェネリック型またはメソッド '{0}' 内でパラメーター '{1}' として使用するために、パブリック パラメーターなしのコンストラクターを持つ非抽象型でなければなりません</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">型 '{3}' はジェネリック型またはメソッド '{0}' 内で型パラメーター '{2}' として使用できません。'{3}' から '{1}' への暗黙的な参照変換がありません。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">型 '{3}' はジェネリック型またはメソッド '{0}' 内で型パラメーター '{2}' として使用できません。Null 許容型 '{3}' は、'{1}' の制約を満たしていません。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">型 '{3}' はジェネリック型またはメソッド '{0}' 内で型パラメーター '{2}' として使用できません。Null 許容型 '{3}' は、'{1}' の制約を満たしていません。Null 許容型はインターフェイス制約を満たすことはできません。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">型 '{3}' はジェネリック型またはメソッド '{0}' 内で型パラメーター '{2}' として使用できません。'{3}' から '{1}' へのボックス変換がありません。</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">メソッド '{0}' の型引数を使い方から推論することはできません。型引数を明示的に指定してください。</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{2}' は、ジェネリック型のパラメーター '{1}'、またはメソッド '{0}' として使用するために、参照型でなければなりません</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{2}' は、ジェネリック型のパラメーター '{1}'、またはメソッド '{0}' として使用するために、Null 非許容の値型でなければなりません</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' から '{3}' へ変換するときの、あいまいなユーザー定義の変換 '{0}' および '{1}' です</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' はこの言語でサポートされていません</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': 演算子またはアクセサーを明示的に呼び出すことはできません</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">スタティック型 '{0}' へ変換できません</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">インクリメント演算子またはデクリメント演算子のオペランドには、変数、プロパティ、またはインデクサーを指定してください</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">引数を '{1}' 個指定できる、メソッド '{0}' のオーバーロードはありません</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' に最も適しているオーバーロード メソッドには無効な引数がいくつか含まれています</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">ref または out 引数は、割り当て可能な変数でなければなりません</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' 型の修飾子をとおしてプロテクト メンバー '{0}' にアクセスすることはできません。修飾子は '{2}' 型、またはそれから派生したものでなければなりません</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">プロパティ、インデクサー、またはイベント '{0}' はこの言語でサポートされていません。アクセサー メソッドの '{1}' または '{2}' を直接呼び出してください</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">プロパティ、インデクサー、またはイベント '{0}' はこの言語でサポートされていません。アクセサー メソッドの '{1}' を直接呼び出してください</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">デリゲート '{0}' に '{1}' 個の引数を指定することはできません</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">デリゲート '{0}' に無効な引数があります</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用であるため '{0}' に割り当てることはできません</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用なので '{0}' は ref または out 引数として渡せません</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">変数ではないため、'{0}' の戻り値を変更できません</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールド '{0}' のメンバーは変更できません (コンストラクターまたは変数初期化子では可)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールド '{0}' のメンバーに ref または out を渡すことはできません (コンストラクターでは可)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">静的読み取り専用フィールド '{0}' のフィールドへの割り当てはできません (静的コンストラクターまたは変数初期化子では可)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">静的読み取り専用フィールド '{0}' には、静的コンストラクター内を除き、ref または out を渡すことはできません</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' は '{1}' であるため、これに割り当てることはできません</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' であるため、'{0}' は ref または out 引数として渡せません</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' に、引数を '{1}' 個指定できるコンストラクターがありません</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">実行不可能なメンバー '{0}' をメソッドのように使用することはできません。</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">名前付き引数の指定は、すべての固定引数が指定された後に出現する必要があります</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' に最も適しているオーバーロードには '{1}' という名前のパラメーターがありません</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">デリゲート '{0}' には '{1}' という名前のパラメーターがありません</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' という名前付き引数が複数指定されました</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">名前付き引数 '{0}' は、場所引数が既に指定されているパラメーターを指定します</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="ja" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">動的な操作をバインド中に、予期しない例外が発生しました</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">呼び出し元オブジェクトのない呼び出しはバインドできません</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">オーバーロードの解決に失敗しました</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">二項演算子は 2 つの引数を指定して呼び出す必要があります</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">単項演算子は 1 つの引数を指定して呼び出す必要があります</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">名前 '{0}' はメソッドにバインドされており、プロパティのように使用することはできません</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">イベント '{0}' は + の左側にのみ使用できます</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">非デリゲート型を呼び出すことはできません</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">1 つの引数を指定して二項演算子を呼び出すことはできません</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">null 参照に対してメンバー割り当てを実行することはできません</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">null 参照に対して実行時バインディングを実行することはできません</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">条件付き属性があるため、メソッド '{0}' を動的に呼び出すことはできません</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">型 'void' を 'object' に暗黙的に変換することはできません</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">演算子 '{0}' を '{1}' と '{2}' 型のオペランドに適用することはできません</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">角かっこ [] 付きインデックスを '{0}' 型の式に適用することはできません</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">角かっこ [] 内のインデックス数が正しくありません。正しい数は '{0}' です</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">演算子 '{0}' は '{1}' 型のオペランドに適用できません</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{0}' を '{1}' に暗黙的に変換できません</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{0}' を '{1}' に変換できません</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">定数値 '{0}' を '{1}' に変換できません</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{1}' および '{2}' のオペランドの演算子 '{0}' があいまいです</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">演算子 '{0}' は型 '{1}' のオペランドに対してあいまいです</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Null 非許容の値型であるため、Null を '{0}' に変換できません</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">入れ子にされた型 '{1}' を経由して、外の型 '{0}' の静的でないメンバーにアクセスすることはできません</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' に '{1}' の定義がありません</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">静的でないフィールド、メソッド、またはプロパティ '{0}' で、オブジェクト参照が必要です</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">次のメソッドまたはプロパティ間で呼び出しが不適切です: '{0}' と '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' はアクセスできない保護レベルになっています</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">デリゲート '{1}' に一致する '{0}' のオーバーロードはありません</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">代入式の左辺には変数、プロパティ、またはインデクサーを指定してください</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">型 '{0}' のコンストラクターが定義されていません</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">get アクセサーがないため、プロパティまたはインデクサー '{0}' をこのコンテキストで使用することはできません</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">インスタンス参照でメンバー '{0}' にアクセスできません。代わりに型名を使用してください</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールドに割り当てることはできません (コンストラクター、変数初期化子では可 )</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールドに ref または out を渡すことはできません (コンストラクターでは可 )</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">静的読み取り専用フィールドへの割り当てはできません (静的コンストラクターまたは変数初期化子では可)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールドに ref または out を渡すことはできません (静的コンストラクターでは可)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">プロパティまたはインデクサー '{0}' は読み取り専用であるため、割り当てることはできません</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">プロパティまたはインデクサーを out か ref のパラメーターとして渡すことはできません</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">動的な呼び出しはポインターと共に使用できません</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">short circuit 演算子として適用するためには、ユーザー定義の論理演算子 ('{0}') がその 2 つのパラメーターと同じ戻り値の型を持つ必要があります</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">型 ('{0}') に演算子 true および演算子 false の宣言が含まれている必要があります</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">定数値 '{0}' は '{1}' に変換できません (unchecked 構文を使ってオーバーライドしてください)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' と '{1}' 間があいまいです</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">型 '{0}' を '{1}' に暗黙的に変換できません。明示的な変換が存在します (cast が不足していないかどうかを確認してください)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">get アクセサーにアクセスできないため、プロパティまたはインデクサー '{0}' はこのコンテキストでは使用できません</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">set アクセサーにアクセスできないため、プロパティまたはインデクサー '{0}' はこのコンテキストでは使用できません</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">ジェネリック {1} '{0}' の使用には、'{2}' 型の引数が必要です</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}' は型引数と一緒には使用できません</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">非ジェネリック {1} '{0}' は型引数と一緒には使用できません</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' は、ジェネリック型またはメソッド '{0}' 内でパラメーター '{1}' として使用するために、パブリック パラメーターなしのコンストラクターを持つ非抽象型でなければなりません</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">型 '{3}' はジェネリック型またはメソッド '{0}' 内で型パラメーター '{2}' として使用できません。'{3}' から '{1}' への暗黙的な参照変換がありません。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">型 '{3}' はジェネリック型またはメソッド '{0}' 内で型パラメーター '{2}' として使用できません。Null 許容型 '{3}' は、'{1}' の制約を満たしていません。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">型 '{3}' はジェネリック型またはメソッド '{0}' 内で型パラメーター '{2}' として使用できません。Null 許容型 '{3}' は、'{1}' の制約を満たしていません。Null 許容型はインターフェイス制約を満たすことはできません。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">型 '{3}' はジェネリック型またはメソッド '{0}' 内で型パラメーター '{2}' として使用できません。'{3}' から '{1}' へのボックス変換がありません。</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">メソッド '{0}' の型引数を使い方から推論することはできません。型引数を明示的に指定してください。</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{2}' は、ジェネリック型のパラメーター '{1}'、またはメソッド '{0}' として使用するために、参照型でなければなりません</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">型 '{2}' は、ジェネリック型のパラメーター '{1}'、またはメソッド '{0}' として使用するために、Null 非許容の値型でなければなりません</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' から '{3}' へ変換するときの、あいまいなユーザー定義の変換 '{0}' および '{1}' です</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' はこの言語でサポートされていません</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': 演算子またはアクセサーを明示的に呼び出すことはできません</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">スタティック型 '{0}' へ変換できません</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">インクリメント演算子またはデクリメント演算子のオペランドには、変数、プロパティ、またはインデクサーを指定してください</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">引数を '{1}' 個指定できる、メソッド '{0}' のオーバーロードはありません</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' に最も適しているオーバーロード メソッドには無効な引数がいくつか含まれています</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">ref または out 引数は、割り当て可能な変数でなければなりません</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' 型の修飾子をとおしてプロテクト メンバー '{0}' にアクセスすることはできません。修飾子は '{2}' 型、またはそれから派生したものでなければなりません</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">プロパティ、インデクサー、またはイベント '{0}' はこの言語でサポートされていません。アクセサー メソッドの '{1}' または '{2}' を直接呼び出してください</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">プロパティ、インデクサー、またはイベント '{0}' はこの言語でサポートされていません。アクセサー メソッドの '{1}' を直接呼び出してください</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">デリゲート '{0}' に '{1}' 個の引数を指定することはできません</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">デリゲート '{0}' に無効な引数があります</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用であるため '{0}' に割り当てることはできません</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用なので '{0}' は ref または out 引数として渡せません</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">変数ではないため、'{0}' の戻り値を変更できません</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールド '{0}' のメンバーは変更できません (コンストラクターまたは変数初期化子では可)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">読み取り専用フィールド '{0}' のメンバーに ref または out を渡すことはできません (コンストラクターでは可)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">静的読み取り専用フィールド '{0}' のフィールドへの割り当てはできません (静的コンストラクターまたは変数初期化子では可)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">静的読み取り専用フィールド '{0}' には、静的コンストラクター内を除き、ref または out を渡すことはできません</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' は '{1}' であるため、これに割り当てることはできません</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' であるため、'{0}' は ref または out 引数として渡せません</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' に、引数を '{1}' 個指定できるコンストラクターがありません</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">実行不可能なメンバー '{0}' をメソッドのように使用することはできません。</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">名前付き引数の指定は、すべての固定引数が指定された後に出現する必要があります</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' に最も適しているオーバーロードには '{1}' という名前のパラメーターがありません</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">デリゲート '{0}' には '{1}' という名前のパラメーターがありません</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' という名前付き引数が複数指定されました</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">名前付き引数 '{0}' は、場所引数が既に指定されているパラメーターを指定します</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.zh-Hant.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="zh-Hant" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">繫結動態作業時發生意外的例外狀況</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">無法繫結沒有呼叫物件的呼叫</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">多載解析失敗</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">必須以兩個引數叫用二元運算子</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">必須以一個引數叫用一元運算子</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">名稱 '{0}' 已繫結至一個方法,因此不能當成屬性使用</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">事件 '{0}' 只能出現在 + 的左邊</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">無法叫用非委派類型</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">無法以一個引數叫用二元運算子</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">無法對 null 參考進行成員指派</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">無法對 null 參考進行執行階段繫結</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">無法以動態方式叫用方法 '{0}',因為它有 Conditional 屬性</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">無法將 'void' 類型隱含轉換為 'object' 類型</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將運算子 '{0}' 套用至類型 '{1}' 和 '{2}' 的運算元</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">無法套用有 [] 的索引至類型 '{0}' 的運算式</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[] 內的索引數目錯誤; 必須是 '{0}'</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將運算子 '{0}' 套用至類型 '{1}' 的運算元</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將類型 '{0}' 隱含轉換為 '{1}'</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將類型 '{0}' 轉換為 '{1}'</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將常數值 '{0}' 轉換為 '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">運算子 '{0}' 用在類型 '{1}' 和 '{2}' 的運算元上時其意義會模稜兩可</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">運算子 '{0}' 用在類型 '{1}' 的運算元上時其意義會模稜兩可</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">無法將 null 轉換成 '{0}',因為它是不可為 null 的實值類型</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法透過巢狀類型 '{1}' 存取外部類型 '{0}' 的非靜態成員</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 不包含 '{1}' 的定義</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">需要有物件參考,才可使用非靜態欄位、方法或屬性 '{0}'</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">在下列方法或屬性之間的呼叫模稜兩可: '{0}' 和 '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 由於其保護層級之故,所以無法存取</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 沒有任何多載符合委派 '{1}'</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">指派的左側必須是變數、屬性或索引子</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{0}' 沒有已定義的建構函式</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">屬性或索引子 '{0}' 無法用在此內容中,因為它缺少 get 存取子</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">成員 '{0}' 無法以執行個體參考進行存取; 請改用類型名稱</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">無法指定唯讀欄位 (除非在建構函式或變數初始設定式)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 無法傳遞唯讀欄位 (除非在建構函式)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">無法指定靜態唯讀欄位 (除非在靜態建構函式或變數初始設定式)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 無法傳遞靜態唯讀欄位 (除非在靜態建構函式)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">無法指派屬性或索引子 '{0}' -- 其為唯讀</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">可能無法將屬性或索引子當做 out 或 ref 參數傳遞</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">動態呼叫不能與指標一起使用</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">為了可以當成最少運算 (Short Circuit) 運算子使用,使用者定義的邏輯運算子 ('{0}') 其傳回類型必須與其 2 個參數的類型相同</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">類型 ('{0}') 必須包含運算子 true 和運算子 false 的宣告</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">無法將常數值 '{0}' 轉換為 '{1}' (請使用 'unchecked' 語法覆寫)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 與 '{1}' 之間模稜兩可</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">無法將類型 '{0}' 隱含轉換為 '{1}'。已有明確轉換存在 (您是否漏掉了轉型?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">無法在此內容中使用屬性或索引子 '{0}',因為無法存取 get 存取子</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">無法在此內容中使用屬性或索引子 '{0}',因為無法存取 set 存取子</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">使用泛型 {1} '{0}' 需要 '{2}' 個類型引數</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}' 不能配合類型引數使用</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">非泛型 {1} '{0}' 不能配合類型引數使用</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' 必須是具有公用無參數建構函式的非抽象類型,才可在泛型類型或方法 '{0}' 中用做為參數 '{1}'</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{3}' 不能做為泛型類型或方法 '{0}' 中的類型參數 '{2}'。沒有從 '{3}' 到 '{1}' 的隱含參考轉換。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{3}' 不能做為泛型類型或方法 '{0}' 中的類型參數 '{2}'。可為 Null 的類型 '{3}' 未滿足 '{1}' 的條件約束。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{3}' 不能做為泛型類型或方法 '{0}' 中的類型參數 '{2}'。可為 Null 的類型 '{3}' 未滿足 '{1}' 的條件約束。可為 Null 的類型無法滿足所有介面條件約束。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{3}' 不能做為泛型類型或方法 '{0}' 中的類型參數 '{2}'。沒有從 '{3}' 到 '{1}' 的 Boxing 轉換。</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">方法 '{0}' 的類型引數不能從使用方式推斷。請嘗試明確指定類型引數。</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{2}' 必須是參考類型,才能在泛型類型或方法 '{0}' 中做為參數 '{1}' 使用</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{2}' 必須是不可為 null 的實值類型,才能在泛型類型或方法 '{0}' 中做為參數 '{1}' 使用</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">從 '{2}' 轉換成 '{3}' 時,使用者定義的轉換 '{0}' 與 '{1}' 模稜兩可</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">此語言不支援 '{0}'</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': 無法明確呼叫運算子或存取子</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">無法轉換為靜態類型 '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">遞增或遞減運算子的運算元必須是變數、屬性或索引子</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">方法 '{0}' 沒有任何多載接受 '{1}' 個引數</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">最符合的多載方法 '{0}' 有一些無效的引數</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 引數必須是可指派的變數</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">無法經由類型 '{1}' 的限定詞來存取保護的成員 '{0}'; 必須經由類型 '{2}' (或從其衍生的類型) 的限定詞</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">此語言不支援屬性、索引子或事件 '{0}'; 請嘗試直接呼叫存取子方法 '{1}' 或 '{2}'</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">此語言不支援屬性、索引子或事件 '{0}'; 請嘗試直接呼叫存取子方法 '{1}'</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">委派 '{0}' 不接受 '{1}' 個引數</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">委派 '{0}' 有一些無效的引數</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">無法指派給 '{0}',因為其為唯讀</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">無法將 '{0}' 當做 ref 或 out 引數傳遞,因為它是唯讀的</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">無法修改 '{0}' 的傳回值,因為其非變數</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">唯讀欄位 '{0}' 的成員無法修改 (除非是在建構函式或變數初始設定式)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 無法傳遞唯讀欄位 '{0}' 的成員 (除非是在建構函式中)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">無法指派靜態唯讀欄位 '{0}' 的欄位 (除非是在靜態建構函式或變數初始設定式)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 無法傳遞靜態唯讀欄位 '{0}' 的欄位 (除非是在靜態建構函式)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法指派給 '{0}',因為它是 '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將 '{0}' 當做 ref 或 out 引數傳遞,因為它是 '{1}'</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 不包含接受 '{1}' 個引數的建構函式</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">非可叫用 (Non-invocable) 成員 '{0}' 不能做為方法使用。</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">具名引數規格必須出現在所有已指定的固定引數之後</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">最符合 '{0}' 的多載,沒有名稱為 '{1}' 的參數</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">委派 '{0}' 沒有一個名為 '{1}' 的參數</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">具名引數 '{0}' 不可以多次指定</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">具名引數 '{0}' 指定了已給定位置引數的參數</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="zh-Hant" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">繫結動態作業時發生意外的例外狀況</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">無法繫結沒有呼叫物件的呼叫</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">多載解析失敗</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">必須以兩個引數叫用二元運算子</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">必須以一個引數叫用一元運算子</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">名稱 '{0}' 已繫結至一個方法,因此不能當成屬性使用</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">事件 '{0}' 只能出現在 + 的左邊</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">無法叫用非委派類型</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">無法以一個引數叫用二元運算子</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">無法對 null 參考進行成員指派</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">無法對 null 參考進行執行階段繫結</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">無法以動態方式叫用方法 '{0}',因為它有 Conditional 屬性</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">無法將 'void' 類型隱含轉換為 'object' 類型</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將運算子 '{0}' 套用至類型 '{1}' 和 '{2}' 的運算元</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">無法套用有 [] 的索引至類型 '{0}' 的運算式</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[] 內的索引數目錯誤; 必須是 '{0}'</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將運算子 '{0}' 套用至類型 '{1}' 的運算元</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將類型 '{0}' 隱含轉換為 '{1}'</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將類型 '{0}' 轉換為 '{1}'</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將常數值 '{0}' 轉換為 '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">運算子 '{0}' 用在類型 '{1}' 和 '{2}' 的運算元上時其意義會模稜兩可</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">運算子 '{0}' 用在類型 '{1}' 的運算元上時其意義會模稜兩可</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">無法將 null 轉換成 '{0}',因為它是不可為 null 的實值類型</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法透過巢狀類型 '{1}' 存取外部類型 '{0}' 的非靜態成員</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 不包含 '{1}' 的定義</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">需要有物件參考,才可使用非靜態欄位、方法或屬性 '{0}'</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">在下列方法或屬性之間的呼叫模稜兩可: '{0}' 和 '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 由於其保護層級之故,所以無法存取</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 沒有任何多載符合委派 '{1}'</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">指派的左側必須是變數、屬性或索引子</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{0}' 沒有已定義的建構函式</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">屬性或索引子 '{0}' 無法用在此內容中,因為它缺少 get 存取子</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">成員 '{0}' 無法以執行個體參考進行存取; 請改用類型名稱</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">無法指定唯讀欄位 (除非在建構函式或變數初始設定式)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 無法傳遞唯讀欄位 (除非在建構函式)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">無法指定靜態唯讀欄位 (除非在靜態建構函式或變數初始設定式)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 無法傳遞靜態唯讀欄位 (除非在靜態建構函式)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">無法指派屬性或索引子 '{0}' -- 其為唯讀</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">可能無法將屬性或索引子當做 out 或 ref 參數傳遞</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">動態呼叫不能與指標一起使用</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">為了可以當成最少運算 (Short Circuit) 運算子使用,使用者定義的邏輯運算子 ('{0}') 其傳回類型必須與其 2 個參數的類型相同</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">類型 ('{0}') 必須包含運算子 true 和運算子 false 的宣告</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">無法將常數值 '{0}' 轉換為 '{1}' (請使用 'unchecked' 語法覆寫)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 與 '{1}' 之間模稜兩可</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">無法將類型 '{0}' 隱含轉換為 '{1}'。已有明確轉換存在 (您是否漏掉了轉型?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">無法在此內容中使用屬性或索引子 '{0}',因為無法存取 get 存取子</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">無法在此內容中使用屬性或索引子 '{0}',因為無法存取 set 存取子</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">使用泛型 {1} '{0}' 需要 '{2}' 個類型引數</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}' 不能配合類型引數使用</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">非泛型 {1} '{0}' 不能配合類型引數使用</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' 必須是具有公用無參數建構函式的非抽象類型,才可在泛型類型或方法 '{0}' 中用做為參數 '{1}'</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{3}' 不能做為泛型類型或方法 '{0}' 中的類型參數 '{2}'。沒有從 '{3}' 到 '{1}' 的隱含參考轉換。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{3}' 不能做為泛型類型或方法 '{0}' 中的類型參數 '{2}'。可為 Null 的類型 '{3}' 未滿足 '{1}' 的條件約束。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{3}' 不能做為泛型類型或方法 '{0}' 中的類型參數 '{2}'。可為 Null 的類型 '{3}' 未滿足 '{1}' 的條件約束。可為 Null 的類型無法滿足所有介面條件約束。</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{3}' 不能做為泛型類型或方法 '{0}' 中的類型參數 '{2}'。沒有從 '{3}' 到 '{1}' 的 Boxing 轉換。</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">方法 '{0}' 的類型引數不能從使用方式推斷。請嘗試明確指定類型引數。</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{2}' 必須是參考類型,才能在泛型類型或方法 '{0}' 中做為參數 '{1}' 使用</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">類型 '{2}' 必須是不可為 null 的實值類型,才能在泛型類型或方法 '{0}' 中做為參數 '{1}' 使用</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">從 '{2}' 轉換成 '{3}' 時,使用者定義的轉換 '{0}' 與 '{1}' 模稜兩可</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">此語言不支援 '{0}'</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': 無法明確呼叫運算子或存取子</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">無法轉換為靜態類型 '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">遞增或遞減運算子的運算元必須是變數、屬性或索引子</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">方法 '{0}' 沒有任何多載接受 '{1}' 個引數</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">最符合的多載方法 '{0}' 有一些無效的引數</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 引數必須是可指派的變數</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">無法經由類型 '{1}' 的限定詞來存取保護的成員 '{0}'; 必須經由類型 '{2}' (或從其衍生的類型) 的限定詞</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">此語言不支援屬性、索引子或事件 '{0}'; 請嘗試直接呼叫存取子方法 '{1}' 或 '{2}'</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">此語言不支援屬性、索引子或事件 '{0}'; 請嘗試直接呼叫存取子方法 '{1}'</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">委派 '{0}' 不接受 '{1}' 個引數</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">委派 '{0}' 有一些無效的引數</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">無法指派給 '{0}',因為其為唯讀</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">無法將 '{0}' 當做 ref 或 out 引數傳遞,因為它是唯讀的</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">無法修改 '{0}' 的傳回值,因為其非變數</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">唯讀欄位 '{0}' 的成員無法修改 (除非是在建構函式或變數初始設定式)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 無法傳遞唯讀欄位 '{0}' 的成員 (除非是在建構函式中)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">無法指派靜態唯讀欄位 '{0}' 的欄位 (除非是在靜態建構函式或變數初始設定式)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">ref 或 out 無法傳遞靜態唯讀欄位 '{0}' 的欄位 (除非是在靜態建構函式)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法指派給 '{0}',因為它是 '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">無法將 '{0}' 當做 ref 或 out 引數傳遞,因為它是 '{1}'</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 不包含接受 '{1}' 個引數的建構函式</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">非可叫用 (Non-invocable) 成員 '{0}' 不能做為方法使用。</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">具名引數規格必須出現在所有已指定的固定引數之後</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">最符合 '{0}' 的多載,沒有名稱為 '{1}' 的參數</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">委派 '{0}' 沒有一個名為 '{1}' 的參數</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">具名引數 '{0}' 不可以多次指定</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">具名引數 '{0}' 指定了已給定位置引數的參數</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.zh-Hans.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hans" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">未从日志记录消息中引用参数“{0}”</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">未从日志记录消息中引用参数</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">不支持生成 6 个以上的参数</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">不能有大小写不同的相同模板</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">日志记录方法名称不能以 _ 开头</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">日志记录方法参数名称不能以 _ 开头</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">日志记录方法不能有正文</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">日志记录方法不能为泛型方法</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">日志记录方法必须为分部方法</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">日志记录方法必须返回 void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">日志记录方法必须为静态方法</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">不能有格式错误的格式字符串(例如悬空 { 等)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">必须在 LoggerMessage 属性中提供 LogLevel 值或将其用作日志记录方法的参数</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">静态日志记录方法“{0}”的参数之一必须实施 Microsoft.Extensions.Logging.ILogger 接口</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">静态日志记录方法的参数之一必须实现 Microsoft.Extensions.Logging.ILogger 接口</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">在类 {0} 中找不到 Microsoft.Extensions.Logging.ILogger 类型的字段</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">找不到 Microsoft.Extensions.Logging.ILogger 类型的字段。</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">找不到类型 {0} 的定义</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">找不到所需的类型定义</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">在类 {0} 中找到多个 Microsoft.Extensions.Logging.ILogger 类型的字段</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">找到 Microsoft.Extensions.Logging.ILogger 类型的多个字段</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">从日志记录消息中删除冗余限定符(信息:、警告:、错误: 等),因为其在指定的日志级别中为隐式内容。</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">日志消息消息中的冗余限定符</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">不要将异常参数作为模板包含在日志记录消息中</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">不要将 {0} 的模板包含在日志记录消息中,因为其被隐式处理</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">不要将日志级别参数作为模板包含在日志记录消息中</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">不要将记录器参数作为模板包含在日志记录消息中</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">多个日志记录方法正在类 {1} 中使用事件 ID {0}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">多个日志记录方法不能在类中使用相同的事件 ID</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">未将模板“{0}”作为参数提供给日志记录方法</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">日志记录模板无相应的方法参数</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hans" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">未从日志记录消息中引用参数“{0}”</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">未从日志记录消息中引用参数</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">不支持生成 6 个以上的参数</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">不能有大小写不同的相同模板</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">日志记录方法名称不能以 _ 开头</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">日志记录方法参数名称不能以 _ 开头</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">日志记录方法不能有正文</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">日志记录方法不能为泛型方法</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">日志记录方法必须为分部方法</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">日志记录方法必须返回 void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">日志记录方法必须为静态方法</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">不能有格式错误的格式字符串(例如悬空 { 等)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">必须在 LoggerMessage 属性中提供 LogLevel 值或将其用作日志记录方法的参数</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">静态日志记录方法“{0}”的参数之一必须实施 Microsoft.Extensions.Logging.ILogger 接口</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">静态日志记录方法的参数之一必须实现 Microsoft.Extensions.Logging.ILogger 接口</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">在类 {0} 中找不到 Microsoft.Extensions.Logging.ILogger 类型的字段</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">找不到 Microsoft.Extensions.Logging.ILogger 类型的字段。</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">找不到类型 {0} 的定义</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">找不到所需的类型定义</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">在类 {0} 中找到多个 Microsoft.Extensions.Logging.ILogger 类型的字段</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">找到 Microsoft.Extensions.Logging.ILogger 类型的多个字段</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">从日志记录消息中删除冗余限定符(信息:、警告:、错误: 等),因为其在指定的日志级别中为隐式内容。</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">日志消息消息中的冗余限定符</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">不要将异常参数作为模板包含在日志记录消息中</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">不要将 {0} 的模板包含在日志记录消息中,因为其被隐式处理</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">不要将日志级别参数作为模板包含在日志记录消息中</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">不要将记录器参数作为模板包含在日志记录消息中</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">多个日志记录方法正在类 {1} 中使用事件 ID {0}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">多个日志记录方法不能在类中使用相同的事件 ID</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">未将模板“{0}”作为参数提供给日志记录方法</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">日志记录模板无相应的方法参数</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.it.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="it" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Eccezione imprevista durante l'associazione di un'operazione dinamica</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile associare la chiamata senza oggetto chiamante</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Risoluzione dell'overload non riuscita</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Gli operatori binari devono essere richiamati con due argomenti</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Gli operatori unari devono essere richiamati con un solo argomento</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Il nome '{0}' è associato a un metodo e non può essere utilizzato come una proprietà</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">L'evento '{0}' può trovarsi soltanto sul lato sinistro di +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile richiamare un tipo non delegato</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile richiamare operatori binari con un solo argomento</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile eseguire un'assegnazione membro su un riferimento Null</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile eseguire un'associazione di runtime su un riferimento Null</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile richiamare in modo dinamico il metodo '{0}' perché contiene un attributo Conditional</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire il tipo 'void' in 'object' in modo implicito</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile applicare l'operatore '{0}' su operandi di tipo '{1}' e '{2}'</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile applicare l'indicizzazione con [] a un'espressione di tipo '{0}'</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Numero di indici errato in [], previsto '{0}'</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile applicare l'operatore '{0}' sull'operando di tipo '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire in modo implicito il tipo '{0}' in '{1}'</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Non è possibile convertire il tipo '{0}' in '{1}'</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire il valore costante '{0}' in '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">L'operatore '{0}' è ambiguo su operandi di tipo '{1}' e '{2}'</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">L'operatore '{0}' è ambiguo su un operando di tipo '{1}'</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire Null in '{0}' perché è un tipo di valore non nullable</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile accedere a un membro non statico di tipo outer '{0}' tramite il tipo annidato '{1}'</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' non contiene una definizione per '{1}'</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">È necessario specificare un riferimento a un oggetto per la proprietà, il metodo o il campo non statico '{0}'</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Chiamata ambigua tra i seguenti metodi o proprietà: '{0}' e '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' è inaccessibile a causa del livello di protezione.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nessun overload per '{0}' corrisponde al delegato '{1}'</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">La parte sinistra di un'assegnazione deve essere una variabile, una proprietà o un indicizzatore</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Per il tipo '{0}' non sono definiti costruttori</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">Non è possibile usare la proprietà o l'indicizzatore '{0}' in questo contesto perché manca la funzione di accesso get</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile accedere al membro '{0}' con un riferimento a un'istanza. Qualificarlo con un nome di tipo</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Un campo di sola lettura non può essere assegnato (tranne che in un costruttore o in un inizializzatore di variabile)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Un campo di sola lettura non può essere passato a un parametro ref o out (tranne che in un costruttore)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile effettuare un'assegnazione a un campo statico in sola lettura (tranne che in un costruttore statico o in un inizializzatore di variabile)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare un parametro ref o out a un campo statico in sola lettura (tranne che in un costruttore statico)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile assegnare un valore alla proprietà o all'indicizzatore '{0}' perché è di sola lettura</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Una proprietà o un indicizzatore non può essere passato come parametro out o ref</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare le chiamate dinamiche insieme ai puntatori</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Per essere utilizzato come operatore di corto circuito, un operatore logico definito dall'utente ('{0}') deve avere lo stesso tipo restituito dei 2 parametri</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Il tipo ('{0}') deve contenere dichiarazioni di operatore true e operatore false.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Il valore costante '{0}' non può essere convertito in '{1}' (utilizzare la sintassi 'unchecked' per eseguire l'override).</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ambiguità tra '{0}' e '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire in modo implicito il tipo '{0}' in '{1}'. È presente una conversione esplicita. Probabile cast mancante.</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare la proprietà o l'indicizzatore '{0}' in questo contesto perché la funzione di accesso get è inaccessibile.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare la proprietà o l'indicizzatore '{0}' in questo contesto perché la funzione di accesso set è inaccessibile.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">L'utilizzo del {1} generico '{0}' richiede argomenti di tipo '{2}'</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare {1} '{0}' insieme ad argomenti di tipo</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare {1} non generico '{0}' insieme ad argomenti di tipo</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' deve essere un tipo non astratto con un costruttore pubblico senza parametri per essere utilizzato come parametro '{1}' nel tipo o nel metodo generico '{0}'</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il tipo '{3}' come parametro di tipo '{2}' nel metodo o nel tipo generico '{0}'. Nessuna conversione implicita di riferimenti da '{3}' a '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il tipo '{3}' come parametro di tipo '{2}' nel tipo o metodo generico '{0}'. Il tipo nullable '{3}' non soddisfa il vincolo di '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il tipo '{3}' come parametro di tipo '{2}' nel tipo o metodo generico '{0}'. Il tipo nullable '{3}' non soddisfa il vincolo di '{1}'. I tipi nullable non soddisfano i vincoli di interfaccia.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il tipo '{3}' come parametro di tipo '{2}' nel metodo o nel tipo generico '{0}'. Nessuna conversione boxing da '{3}' a '{1}'.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile dedurre gli argomenti di tipo per il metodo '{0}' dall'utilizzo. Provare a specificare gli argomenti di tipo in modo esplicito.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">È necessario che il tipo '{2}' sia un tipo di riferimento per essere utilizzato come parametro '{1}' nel tipo generico o nel metodo '{0}'</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Il tipo '{2}' deve essere un tipo di valore non nullable per poter essere utilizzato come parametro '{1}' nel metodo o nel tipo generico '{0}'</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Conversioni '{0}' e '{1}' ambigue definite dall'utente durante la conversione da '{2}' a '{3}'</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' non è supportato dal linguaggio</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': impossibile chiamare in modo esplicito l'operatore o la funzione di accesso</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire nel tipo statico '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">L'operando di un operatore di incremento o decremento deve essere una variabile, una proprietà o un indicizzatore</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Nessun overload del metodo '{0}' accetta argomenti '{1}'</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">La corrispondenza migliore del metodo di overload per '{0}' presenta alcuni argomenti non validi</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Un argomento ref o out deve essere una variabile assegnabile</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile accedere al membro protetto '{0}' tramite un qualificatore di tipo '{1}'. Il qualificatore deve essere di tipo '{2}' o derivato da esso.</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">La proprietà, l'indicizzatore o l'evento '{0}' non è supportato dal linguaggio. Provare a chiamare direttamente il metodo '{1}' o '{2}' della funzione di accesso</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La proprietà, l'indicizzatore o l'evento '{0}' non è supportato dal linguaggio. Provare a chiamare direttamente il metodo '{1}' della funzione di accesso</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Il delegato '{0}' non accetta argomenti '{1}'</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Il delegato '{0}' presenta alcuni argomenti non validi</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile assegnare a '{0}' perché è di sola lettura</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare '{0}' come argomento ref o out perché è di sola lettura</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile modificare il valore restituito da '{0}' perché non è una variabile</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile modificare i membri del campo di sola lettura '{0}' (tranne che in un costruttore o in un inizializzatore di variabile)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare i membri del campo di sola lettura '{0}' come argomento ref o out (tranne che in un costruttore)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile effettuare un'assegnazione ai campi di un campo statico di sola lettura '{0}' (tranne che in un costruttore statico o in un inizializzatore di variabile)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare un argomento ref o out ai campi di un campo statico di sola lettura '{0}' (tranne che in un costruttore statico)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile assegnare a '{0}' perché è '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare '{0}' come argomento ref o out perché è '{1}'</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' non contiene un costruttore che accetta argomenti '{1}'</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il membro non richiamabile '{0}' come metodo.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Le specifiche di argomenti denominati devono trovarsi dopo tutti gli argomenti fissi specificati</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Il miglior overload per '{0}' non contiene un parametro denominato '{1}'</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Il delegato '{0}' non dispone di un parametro denominato '{1}'</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile specificare l'argomento denominato '{0}' più volte</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">L'argomento denominato '{0}' specifica un parametro per cui è già stato fornito un argomento posizionale</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="it" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Eccezione imprevista durante l'associazione di un'operazione dinamica</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile associare la chiamata senza oggetto chiamante</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Risoluzione dell'overload non riuscita</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">Gli operatori binari devono essere richiamati con due argomenti</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Gli operatori unari devono essere richiamati con un solo argomento</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">Il nome '{0}' è associato a un metodo e non può essere utilizzato come una proprietà</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">L'evento '{0}' può trovarsi soltanto sul lato sinistro di +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile richiamare un tipo non delegato</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile richiamare operatori binari con un solo argomento</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile eseguire un'assegnazione membro su un riferimento Null</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile eseguire un'associazione di runtime su un riferimento Null</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile richiamare in modo dinamico il metodo '{0}' perché contiene un attributo Conditional</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire il tipo 'void' in 'object' in modo implicito</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile applicare l'operatore '{0}' su operandi di tipo '{1}' e '{2}'</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile applicare l'indicizzazione con [] a un'espressione di tipo '{0}'</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Numero di indici errato in [], previsto '{0}'</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile applicare l'operatore '{0}' sull'operando di tipo '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire in modo implicito il tipo '{0}' in '{1}'</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Non è possibile convertire il tipo '{0}' in '{1}'</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire il valore costante '{0}' in '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">L'operatore '{0}' è ambiguo su operandi di tipo '{1}' e '{2}'</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">L'operatore '{0}' è ambiguo su un operando di tipo '{1}'</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire Null in '{0}' perché è un tipo di valore non nullable</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile accedere a un membro non statico di tipo outer '{0}' tramite il tipo annidato '{1}'</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' non contiene una definizione per '{1}'</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">È necessario specificare un riferimento a un oggetto per la proprietà, il metodo o il campo non statico '{0}'</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Chiamata ambigua tra i seguenti metodi o proprietà: '{0}' e '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' è inaccessibile a causa del livello di protezione.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Nessun overload per '{0}' corrisponde al delegato '{1}'</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">La parte sinistra di un'assegnazione deve essere una variabile, una proprietà o un indicizzatore</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">Per il tipo '{0}' non sono definiti costruttori</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">Non è possibile usare la proprietà o l'indicizzatore '{0}' in questo contesto perché manca la funzione di accesso get</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile accedere al membro '{0}' con un riferimento a un'istanza. Qualificarlo con un nome di tipo</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Un campo di sola lettura non può essere assegnato (tranne che in un costruttore o in un inizializzatore di variabile)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Un campo di sola lettura non può essere passato a un parametro ref o out (tranne che in un costruttore)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile effettuare un'assegnazione a un campo statico in sola lettura (tranne che in un costruttore statico o in un inizializzatore di variabile)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare un parametro ref o out a un campo statico in sola lettura (tranne che in un costruttore statico)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile assegnare un valore alla proprietà o all'indicizzatore '{0}' perché è di sola lettura</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Una proprietà o un indicizzatore non può essere passato come parametro out o ref</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare le chiamate dinamiche insieme ai puntatori</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Per essere utilizzato come operatore di corto circuito, un operatore logico definito dall'utente ('{0}') deve avere lo stesso tipo restituito dei 2 parametri</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Il tipo ('{0}') deve contenere dichiarazioni di operatore true e operatore false.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">Il valore costante '{0}' non può essere convertito in '{1}' (utilizzare la sintassi 'unchecked' per eseguire l'override).</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ambiguità tra '{0}' e '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire in modo implicito il tipo '{0}' in '{1}'. È presente una conversione esplicita. Probabile cast mancante.</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare la proprietà o l'indicizzatore '{0}' in questo contesto perché la funzione di accesso get è inaccessibile.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare la proprietà o l'indicizzatore '{0}' in questo contesto perché la funzione di accesso set è inaccessibile.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">L'utilizzo del {1} generico '{0}' richiede argomenti di tipo '{2}'</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare {1} '{0}' insieme ad argomenti di tipo</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare {1} non generico '{0}' insieme ad argomenti di tipo</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' deve essere un tipo non astratto con un costruttore pubblico senza parametri per essere utilizzato come parametro '{1}' nel tipo o nel metodo generico '{0}'</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il tipo '{3}' come parametro di tipo '{2}' nel metodo o nel tipo generico '{0}'. Nessuna conversione implicita di riferimenti da '{3}' a '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il tipo '{3}' come parametro di tipo '{2}' nel tipo o metodo generico '{0}'. Il tipo nullable '{3}' non soddisfa il vincolo di '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il tipo '{3}' come parametro di tipo '{2}' nel tipo o metodo generico '{0}'. Il tipo nullable '{3}' non soddisfa il vincolo di '{1}'. I tipi nullable non soddisfano i vincoli di interfaccia.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il tipo '{3}' come parametro di tipo '{2}' nel metodo o nel tipo generico '{0}'. Nessuna conversione boxing da '{3}' a '{1}'.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile dedurre gli argomenti di tipo per il metodo '{0}' dall'utilizzo. Provare a specificare gli argomenti di tipo in modo esplicito.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">È necessario che il tipo '{2}' sia un tipo di riferimento per essere utilizzato come parametro '{1}' nel tipo generico o nel metodo '{0}'</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Il tipo '{2}' deve essere un tipo di valore non nullable per poter essere utilizzato come parametro '{1}' nel metodo o nel tipo generico '{0}'</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Conversioni '{0}' e '{1}' ambigue definite dall'utente durante la conversione da '{2}' a '{3}'</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' non è supportato dal linguaggio</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': impossibile chiamare in modo esplicito l'operatore o la funzione di accesso</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile convertire nel tipo statico '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">L'operando di un operatore di incremento o decremento deve essere una variabile, una proprietà o un indicizzatore</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Nessun overload del metodo '{0}' accetta argomenti '{1}'</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">La corrispondenza migliore del metodo di overload per '{0}' presenta alcuni argomenti non validi</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Un argomento ref o out deve essere una variabile assegnabile</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile accedere al membro protetto '{0}' tramite un qualificatore di tipo '{1}'. Il qualificatore deve essere di tipo '{2}' o derivato da esso.</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">La proprietà, l'indicizzatore o l'evento '{0}' non è supportato dal linguaggio. Provare a chiamare direttamente il metodo '{1}' o '{2}' della funzione di accesso</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La proprietà, l'indicizzatore o l'evento '{0}' non è supportato dal linguaggio. Provare a chiamare direttamente il metodo '{1}' della funzione di accesso</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Il delegato '{0}' non accetta argomenti '{1}'</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">Il delegato '{0}' presenta alcuni argomenti non validi</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile assegnare a '{0}' perché è di sola lettura</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare '{0}' come argomento ref o out perché è di sola lettura</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile modificare il valore restituito da '{0}' perché non è una variabile</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile modificare i membri del campo di sola lettura '{0}' (tranne che in un costruttore o in un inizializzatore di variabile)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare i membri del campo di sola lettura '{0}' come argomento ref o out (tranne che in un costruttore)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile effettuare un'assegnazione ai campi di un campo statico di sola lettura '{0}' (tranne che in un costruttore statico o in un inizializzatore di variabile)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare un argomento ref o out ai campi di un campo statico di sola lettura '{0}' (tranne che in un costruttore statico)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile assegnare a '{0}' perché è '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile passare '{0}' come argomento ref o out perché è '{1}'</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' non contiene un costruttore che accetta argomenti '{1}'</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile utilizzare il membro non richiamabile '{0}' come metodo.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Le specifiche di argomenti denominati devono trovarsi dopo tutti gli argomenti fissi specificati</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Il miglior overload per '{0}' non contiene un parametro denominato '{1}'</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Il delegato '{0}' non dispone di un parametro denominato '{1}'</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">Impossibile specificare l'argomento denominato '{0}' più volte</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">L'argomento denominato '{0}' specifica un parametro per cui è già stato fornito un argomento posizionale</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.ko.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="ko" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">동적 작업을 바인딩하는 동안 예기치 않은 예외가 발생했습니다.</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">호출 개체가 없으면 호출을 바인딩할 수 없습니다.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">오버로드 확인이 실패함</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">이항 연산자를 호출하려면 인수 두 개를 사용해야 합니다.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">단항 연산자를 호출하려면 인수 한 개를 사용해야 합니다.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">이름 '{0}'은(는) 메서드에 바인딩되어 있으며 속성처럼 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">'{0}' 이벤트는 +의 왼쪽에만 올 수 있음</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">비대리자 형식을 호출할 수 없습니다.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">하나의 인수를 사용하여 이항 연산자를 호출할 수 없습니다.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">null 참조에 대해 멤버 할당을 수행할 수 없습니다.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">null 참조에 대해 런타임 바인딩을 수행할 수 없습니다.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 메서드는 Conditional 특성이 있으므로 동적으로 호출할 수 없습니다.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">암시적으로 'void' 형식을 'object' 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 연산자는 '{1}' 및 '{2}' 형식의 피연산자에 적용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[]을 사용하는 인덱싱을 '{0}' 형식의 식에 적용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[] 내부의 인덱스 수가 잘못되었습니다. '{0}'개가 필요합니다.</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 연산자는 '{1}' 형식의 피연산자에 적용할 수 없습니다.</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">암시적으로 '{0}' 형식을 '{1}' 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 형식을 '{1}' 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 상수 값을 '{1}'(으)로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 연산자가 모호하여 '{1}' 및 '{2}' 형식의 피연산자에 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 연산자가 모호하여 '{1}' 형식의 피연산자에 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) null을 허용하지 않는 값 형식이므로 null을 이 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">중첩 형식 '{1}'을(를) 통해 외부 형식 '{0}'의 static이 아닌 멤버에 액세스할 수 없습니다.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'에 '{1}'에 대한 정의가 없습니다.</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">static이 아닌 필드, 메서드 또는 속성 '{0}'에 개체 참조가 필요합니다.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 및 '{1}'의 메서드 또는 속성 간 호출이 모호합니다.</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">보호 수준 때문에 '{0}'에 액세스할 수 없습니다.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' 대리자와 일치하는 '{0}'에 대한 오버로드가 없습니다.</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">할당식의 왼쪽은 변수, 속성 또는 인덱서여야 합니다.</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 형식에 정의된 생성자가 없습니다.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 속성 또는 인덱서는 get 접근자가 없으므로 이 컨텍스트에서 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 멤버는 인스턴스 참조를 사용하여 액세스할 수 없습니다. 대신 형식 이름을 사용하여 한정하세요.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용 필드에는 할당할 수 없습니다. 단 생성자 또는 변수 이니셜라이저에서는 예외입니다.</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용 필드는 ref 또는 out으로 전달할 수 없습니다. 단 생성자에서는 예외입니다.</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">정적 읽기 전용 필드에는 할당할 수 없습니다. 단 정적 생성자 또는 변수 이니셜라이저에서는 예외입니다.</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">정적 읽기 전용 필드는 ref 또는 out으로 전달할 수 없습니다. 단 정적 생성자에서는 예외입니다.</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 속성 또는 인덱서는 읽기 전용이므로 할당할 수 없습니다.</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">속성 또는 인덱서는 out 또는 ref 매개 변수로 전달할 수 없습니다.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">동적 호출을 포인터와 함께 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">사용자 정의 논리 연산자('{0}')를 단락(short circuit) 연산자로 사용하려면 연산자의 두 매개 변수와 같은 형식을 반환해야 합니다.</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 형식에는 true 및 false 연산자 선언이 있어야 합니다.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 상수 값을 '{1}'(으)로 변환할 수 없습니다. 재정의하려면 'unchecked' 구문을 사용하세요.</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'과(와) '{1}' 사이에 모호성이 있습니다.</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">암시적으로 '{0}' 형식을 '{1}' 형식으로 변환할 수 없습니다. 명시적 변환이 있습니다. 캐스트가 있는지 확인하십시오.</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">get 접근자에 액세스할 수 없으므로 '{0}' 속성 또는 인덱서는 이 컨텍스트에서 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">set 접근자에 액세스할 수 없으므로 '{0}' 속성 또는 인덱서는 이 컨텍스트에서 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">제네릭 {1} '{0}'을(를) 사용하려면 '{2}' 형식 인수가 필요합니다.</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}'은(는) 형식 인수와 함께 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">제네릭이 아닌 {1} '{0}'은(는) 형식 인수와 함께 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">제네릭 형식 또는 메서드 '{0}'에서 '{1}' 매개 변수로 사용하려면 '{2}'이(가) 매개 변수가 없는 public 생성자를 사용하는 비추상 형식이어야 합니다.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' 형식은 제네릭 형식 또는 '{0}' 메서드에서 '{2}' 형식 매개 변수로 사용할 수 없습니다. '{3}'에서 '{1}'(으)로의 암시적 참조 변환이 없습니다.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' 형식은 제네릭 형식 또는 '{0}' 메서드에서 '{2}' 형식 매개 변수로 사용할 수 없습니다. '{3}' null 허용 형식이 '{1}' 제약 조건을 충족하지 않습니다.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' 형식은 제네릭 형식 또는 '{0}' 메서드에서 '{2}' 형식 매개 변수로 사용할 수 없습니다. '{3}' null 허용 형식이 '{1}' 제약 조건을 충족하지 않습니다. null 허용 형식은 어떠한 인터페이스 제약 조건도 만족할 수 없습니다.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' 형식은 제네릭 형식 또는 '{0}' 메서드에서 '{2}' 형식 매개 변수로 사용할 수 없습니다. '{3}'에서 '{1}'(으)로의 boxing 변환이 없습니다.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 메서드의 형식 인수를 유추할 수 없습니다. 형식 인수를 명시적으로 지정하십시오.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">제네릭 형식 또는 메서드 '{0}'에서 '{2}' 형식을 '{1}' 매개 변수로 사용하려면 해당 형식이 참조 형식이어야 합니다.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">제네릭 형식 또는 메서드 '{0}'에서 '{2}' 형식을 '{1}' 매개 변수로 사용하려면 해당 형식이 null을 허용하지 않는 값 형식이어야 합니다.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}'에서 '{3}(으)로 변환하는 동안 모호한 사용자 정의 변환 '{0}' 및 '{1}'이(가) 발생했습니다.</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) 언어에서 지원되지 않습니다.</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': 연산자나 접근자를 명시적으로 호출할 수 없습니다.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 정적 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">증가 연산자 또는 감소 연산자의 피연산자는 변수, 속성 또는 인덱서여야 합니다.</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{1}'개의 인수를 사용하는 '{0}' 메서드에 대한 오버로드가 없습니다.</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'에 가장 일치하는 오버로드된 메서드에 잘못된 인수가 있습니다.</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">ref 또는 out 인수는 할당 가능한 변수여야 합니다.</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' 형식의 한정자를 통해 보호된 멤버 '{0}'에 액세스할 수 없습니다. 한정자는 '{2}' 형식이거나 여기에서 파생된 형식이어야 합니다.</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 속성, 인덱서 또는 이벤트는 이 언어에서 지원되지 않습니다. '{1}' 또는 '{2}' 접근자 메서드를 직접 호출해 보세요.</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 속성, 인덱서 또는 이벤트는 이 언어에서 지원되지 않습니다. '{1}' 접근자 메서드를 직접 호출해 보세요.</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 대리자에는 '{1}'개의 인수를 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 대리자에 잘못된 인수가 있습니다.</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용인 '{0}'에는 할당할 수 없습니다.</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) 읽기 전용이므로 ref 또는 out 인수로 전달할 수 없습니다.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) 변수가 아니므로 해당 반환 값을 수정할 수 없습니다.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용 필드 '{0}'의 멤버는 수정할 수 없습니다. 단 생성자 또는 변수 이니셜라이저에서는 예외입니다.</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용 필드 '{0}'의 멤버는 ref 또는 out으로 전달할 수 없습니다. 단 생성자에서는 예외입니다.</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">static 읽기 전용 필드 '{0}'의 필드에는 할당할 수 없습니다. 단 static 생성자 또는 변수 이니셜라이저에서는 예외입니다.</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">static 읽기 전용 필드 '{0}'의 필드는 ref 또는 out으로 전달할 수 없습니다. 단 static 생성자에서는 예외입니다.</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}'인 '{0}'에는 할당할 수 없습니다.</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) '{1}'이므로 ref 또는 out 인수로 전달할 수 없습니다.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'에 '{1}'개의 인수를 사용하는 생성자가 없습니다.</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">호출할 수 없는 멤버인 '{0}'은(는) 메서드처럼 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">명명된 인수 사양은 모든 고정 인수를 지정한 다음에 와야 합니다.</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'에 가장 적합한 오버로드에는 '{1}' 매개 변수가 없습니다.</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 대리자에는 '{1}' 매개 변수가 없습니다.</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">명명된 인수 '{0}'을(를) 여러 번 지정할 수 없습니다.</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">명명된 인수 '{0}'은(는) 위치 인수가 이미 지정된 매개 변수를 지정합니다.</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="ko" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">동적 작업을 바인딩하는 동안 예기치 않은 예외가 발생했습니다.</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">호출 개체가 없으면 호출을 바인딩할 수 없습니다.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">오버로드 확인이 실패함</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">이항 연산자를 호출하려면 인수 두 개를 사용해야 합니다.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">단항 연산자를 호출하려면 인수 한 개를 사용해야 합니다.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">이름 '{0}'은(는) 메서드에 바인딩되어 있으며 속성처럼 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">'{0}' 이벤트는 +의 왼쪽에만 올 수 있음</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">비대리자 형식을 호출할 수 없습니다.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">하나의 인수를 사용하여 이항 연산자를 호출할 수 없습니다.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">null 참조에 대해 멤버 할당을 수행할 수 없습니다.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">null 참조에 대해 런타임 바인딩을 수행할 수 없습니다.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 메서드는 Conditional 특성이 있으므로 동적으로 호출할 수 없습니다.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">암시적으로 'void' 형식을 'object' 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 연산자는 '{1}' 및 '{2}' 형식의 피연산자에 적용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[]을 사용하는 인덱싱을 '{0}' 형식의 식에 적용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[] 내부의 인덱스 수가 잘못되었습니다. '{0}'개가 필요합니다.</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 연산자는 '{1}' 형식의 피연산자에 적용할 수 없습니다.</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">암시적으로 '{0}' 형식을 '{1}' 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 형식을 '{1}' 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 상수 값을 '{1}'(으)로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 연산자가 모호하여 '{1}' 및 '{2}' 형식의 피연산자에 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 연산자가 모호하여 '{1}' 형식의 피연산자에 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) null을 허용하지 않는 값 형식이므로 null을 이 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">중첩 형식 '{1}'을(를) 통해 외부 형식 '{0}'의 static이 아닌 멤버에 액세스할 수 없습니다.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'에 '{1}'에 대한 정의가 없습니다.</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">static이 아닌 필드, 메서드 또는 속성 '{0}'에 개체 참조가 필요합니다.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 및 '{1}'의 메서드 또는 속성 간 호출이 모호합니다.</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">보호 수준 때문에 '{0}'에 액세스할 수 없습니다.</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' 대리자와 일치하는 '{0}'에 대한 오버로드가 없습니다.</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">할당식의 왼쪽은 변수, 속성 또는 인덱서여야 합니다.</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 형식에 정의된 생성자가 없습니다.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 속성 또는 인덱서는 get 접근자가 없으므로 이 컨텍스트에서 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 멤버는 인스턴스 참조를 사용하여 액세스할 수 없습니다. 대신 형식 이름을 사용하여 한정하세요.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용 필드에는 할당할 수 없습니다. 단 생성자 또는 변수 이니셜라이저에서는 예외입니다.</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용 필드는 ref 또는 out으로 전달할 수 없습니다. 단 생성자에서는 예외입니다.</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">정적 읽기 전용 필드에는 할당할 수 없습니다. 단 정적 생성자 또는 변수 이니셜라이저에서는 예외입니다.</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">정적 읽기 전용 필드는 ref 또는 out으로 전달할 수 없습니다. 단 정적 생성자에서는 예외입니다.</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 속성 또는 인덱서는 읽기 전용이므로 할당할 수 없습니다.</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">속성 또는 인덱서는 out 또는 ref 매개 변수로 전달할 수 없습니다.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">동적 호출을 포인터와 함께 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">사용자 정의 논리 연산자('{0}')를 단락(short circuit) 연산자로 사용하려면 연산자의 두 매개 변수와 같은 형식을 반환해야 합니다.</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 형식에는 true 및 false 연산자 선언이 있어야 합니다.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 상수 값을 '{1}'(으)로 변환할 수 없습니다. 재정의하려면 'unchecked' 구문을 사용하세요.</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'과(와) '{1}' 사이에 모호성이 있습니다.</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">암시적으로 '{0}' 형식을 '{1}' 형식으로 변환할 수 없습니다. 명시적 변환이 있습니다. 캐스트가 있는지 확인하십시오.</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">get 접근자에 액세스할 수 없으므로 '{0}' 속성 또는 인덱서는 이 컨텍스트에서 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">set 접근자에 액세스할 수 없으므로 '{0}' 속성 또는 인덱서는 이 컨텍스트에서 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">제네릭 {1} '{0}'을(를) 사용하려면 '{2}' 형식 인수가 필요합니다.</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}'은(는) 형식 인수와 함께 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">제네릭이 아닌 {1} '{0}'은(는) 형식 인수와 함께 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">제네릭 형식 또는 메서드 '{0}'에서 '{1}' 매개 변수로 사용하려면 '{2}'이(가) 매개 변수가 없는 public 생성자를 사용하는 비추상 형식이어야 합니다.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' 형식은 제네릭 형식 또는 '{0}' 메서드에서 '{2}' 형식 매개 변수로 사용할 수 없습니다. '{3}'에서 '{1}'(으)로의 암시적 참조 변환이 없습니다.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' 형식은 제네릭 형식 또는 '{0}' 메서드에서 '{2}' 형식 매개 변수로 사용할 수 없습니다. '{3}' null 허용 형식이 '{1}' 제약 조건을 충족하지 않습니다.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' 형식은 제네릭 형식 또는 '{0}' 메서드에서 '{2}' 형식 매개 변수로 사용할 수 없습니다. '{3}' null 허용 형식이 '{1}' 제약 조건을 충족하지 않습니다. null 허용 형식은 어떠한 인터페이스 제약 조건도 만족할 수 없습니다.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' 형식은 제네릭 형식 또는 '{0}' 메서드에서 '{2}' 형식 매개 변수로 사용할 수 없습니다. '{3}'에서 '{1}'(으)로의 boxing 변환이 없습니다.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 메서드의 형식 인수를 유추할 수 없습니다. 형식 인수를 명시적으로 지정하십시오.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">제네릭 형식 또는 메서드 '{0}'에서 '{2}' 형식을 '{1}' 매개 변수로 사용하려면 해당 형식이 참조 형식이어야 합니다.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">제네릭 형식 또는 메서드 '{0}'에서 '{2}' 형식을 '{1}' 매개 변수로 사용하려면 해당 형식이 null을 허용하지 않는 값 형식이어야 합니다.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}'에서 '{3}(으)로 변환하는 동안 모호한 사용자 정의 변환 '{0}' 및 '{1}'이(가) 발생했습니다.</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) 언어에서 지원되지 않습니다.</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': 연산자나 접근자를 명시적으로 호출할 수 없습니다.</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 정적 형식으로 변환할 수 없습니다.</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">증가 연산자 또는 감소 연산자의 피연산자는 변수, 속성 또는 인덱서여야 합니다.</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{1}'개의 인수를 사용하는 '{0}' 메서드에 대한 오버로드가 없습니다.</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'에 가장 일치하는 오버로드된 메서드에 잘못된 인수가 있습니다.</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">ref 또는 out 인수는 할당 가능한 변수여야 합니다.</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' 형식의 한정자를 통해 보호된 멤버 '{0}'에 액세스할 수 없습니다. 한정자는 '{2}' 형식이거나 여기에서 파생된 형식이어야 합니다.</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 속성, 인덱서 또는 이벤트는 이 언어에서 지원되지 않습니다. '{1}' 또는 '{2}' 접근자 메서드를 직접 호출해 보세요.</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 속성, 인덱서 또는 이벤트는 이 언어에서 지원되지 않습니다. '{1}' 접근자 메서드를 직접 호출해 보세요.</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 대리자에는 '{1}'개의 인수를 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 대리자에 잘못된 인수가 있습니다.</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용인 '{0}'에는 할당할 수 없습니다.</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) 읽기 전용이므로 ref 또는 out 인수로 전달할 수 없습니다.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) 변수가 아니므로 해당 반환 값을 수정할 수 없습니다.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용 필드 '{0}'의 멤버는 수정할 수 없습니다. 단 생성자 또는 변수 이니셜라이저에서는 예외입니다.</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">읽기 전용 필드 '{0}'의 멤버는 ref 또는 out으로 전달할 수 없습니다. 단 생성자에서는 예외입니다.</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">static 읽기 전용 필드 '{0}'의 필드에는 할당할 수 없습니다. 단 static 생성자 또는 변수 이니셜라이저에서는 예외입니다.</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">static 읽기 전용 필드 '{0}'의 필드는 ref 또는 out으로 전달할 수 없습니다. 단 static 생성자에서는 예외입니다.</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}'인 '{0}'에는 할당할 수 없습니다.</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'은(는) '{1}'이므로 ref 또는 out 인수로 전달할 수 없습니다.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'에 '{1}'개의 인수를 사용하는 생성자가 없습니다.</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">호출할 수 없는 멤버인 '{0}'은(는) 메서드처럼 사용할 수 없습니다.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">명명된 인수 사양은 모든 고정 인수를 지정한 다음에 와야 합니다.</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}'에 가장 적합한 오버로드에는 '{1}' 매개 변수가 없습니다.</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' 대리자에는 '{1}' 매개 변수가 없습니다.</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">명명된 인수 '{0}'을(를) 여러 번 지정할 수 없습니다.</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">명명된 인수 '{0}'은(는) 위치 인수가 이미 지정된 매개 변수를 지정합니다.</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.es.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="es" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">No se hace referencia al argumento "{0}" en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">No se hace referencia al argumento en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">No se admite la generación de más de 6 argumentos</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">No se puede tener la misma plantilla con mayúsculas distintas</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Los nombres del método de registro no pueden empezar con _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Los nombres de parámetro del método de registro no pueden empezar por _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Los métodos de registro no pueden tener cuerpo</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Los métodos de registro no pueden ser genéricos</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Los métodos de registro deben ser parciales</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Los métodos de registro deben devolver un valor vacío</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Los métodos de registro deben ser estáticos</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">No puede tener cadenas con formato incorrecto (como { final, etc.)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Debe proporcionarse un valor LogLevel en el atributo LoggerMessage o como parámetro en el método de registro</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Uno de los argumentos para el método de registro estático "{0}" debe implementar la interfaz Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Uno de los argumentos para un método de registro estático debe implementar la interfaz Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">No se encontró ningún campo de tipo Microsoft.Extensions.Logging.ILogger en la clase {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">No se encontró ningún campo de tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">No se pudo encontrar la definición para el tipo {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">No se encontró ninguna definición de tipo necesaria</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Se encontraron varios campos del tipo Microsoft.Extensions.Logging.ILogger en la clase {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Se encontraron varios campos de tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Quitar calificadores redundantes (Información:, Advertencia:, Error:, etc.) del mensaje de registro, ya que está implícito en el nivel de registro especificado.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Calificador redundante en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">No incluya parámetros de excepción como plantillas en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">No incluya ninguna plantilla para {0} en el mensaje de registro, ya que está resuelto implícitamente</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">No incluya parámetros de nivel de registro como plantillas en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">No incluya parámetros del registrador como plantillas en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Varios métodos de registro usan el id. de evento {0} en la clase {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Varios métodos de registro no pueden usar un mismo id. de evento en una clase</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">La plantilla "{0}" no se proporciona como argumento para el método de registro</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">La plantilla de registro no tiene ningún argumento de método correspondiente</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="es" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">No se hace referencia al argumento "{0}" en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">No se hace referencia al argumento en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">No se admite la generación de más de 6 argumentos</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">No se puede tener la misma plantilla con mayúsculas distintas</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Los nombres del método de registro no pueden empezar con _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Los nombres de parámetro del método de registro no pueden empezar por _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Los métodos de registro no pueden tener cuerpo</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Los métodos de registro no pueden ser genéricos</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Los métodos de registro deben ser parciales</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Los métodos de registro deben devolver un valor vacío</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Los métodos de registro deben ser estáticos</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">No puede tener cadenas con formato incorrecto (como { final, etc.)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Debe proporcionarse un valor LogLevel en el atributo LoggerMessage o como parámetro en el método de registro</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Uno de los argumentos para el método de registro estático "{0}" debe implementar la interfaz Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Uno de los argumentos para un método de registro estático debe implementar la interfaz Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">No se encontró ningún campo de tipo Microsoft.Extensions.Logging.ILogger en la clase {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">No se encontró ningún campo de tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">No se pudo encontrar la definición para el tipo {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">No se encontró ninguna definición de tipo necesaria</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Se encontraron varios campos del tipo Microsoft.Extensions.Logging.ILogger en la clase {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Se encontraron varios campos de tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Quitar calificadores redundantes (Información:, Advertencia:, Error:, etc.) del mensaje de registro, ya que está implícito en el nivel de registro especificado.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Calificador redundante en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">No incluya parámetros de excepción como plantillas en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">No incluya ninguna plantilla para {0} en el mensaje de registro, ya que está resuelto implícitamente</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">No incluya parámetros de nivel de registro como plantillas en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">No incluya parámetros del registrador como plantillas en el mensaje de registro</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Varios métodos de registro usan el id. de evento {0} en la clase {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Varios métodos de registro no pueden usar un mismo id. de evento en una clase</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">La plantilla "{0}" no se proporciona como argumento para el método de registro</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">La plantilla de registro no tiene ningún argumento de método correspondiente</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.es.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="es" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Excepción inesperada al enlazar una operación dinámica.</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">No se puede enlazar la llamada sin un objeto de llamada.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Error en la resolución de sobrecarga.</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">No se pueden invocar operadores binarios con dos argumentos.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Los operadores unarios deben invocarse con un argumento.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">El nombre '{0}' está enlazado a un método y no se puede usar como propiedad.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">El evento '{0}' solo puede aparecer a la izquierda de +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">No se puede invocar un tipo no delegado.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">No se pueden invocar operadores binarios con un argumento.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">No se puede realizar la asignación de miembros en una referencia NULL.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">No se puede realizar enlace en tiempo de ejecución en una referencia NULL.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">No se puede invocar dinámicamente el método '{0}' porque tiene un atributo Conditional.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir implícitamente el tipo 'void' en 'object'.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">El operador '{0}' no se puede aplicar a operandos del tipo '{1}' y '{2}'</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede aplicar la indización con [] a una expresión del tipo '{0}'</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Número incorrecto de índices dentro de []; se esperaba '{0}'</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El operador '{0}' no se puede aplicar al operando del tipo '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir implícitamente el tipo '{0}' en '{1}'.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir el tipo '{0}' a '{1}'.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El valor constante '{0}' no se puede convertir en '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">El operador '{0}' es ambiguo en operandos del tipo '{1}' y '{2}'</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El operador '{0}' es ambiguo con un operando del tipo '{1}'</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir NULL en '{0}' porque es un tipo de valor que no acepta valores NULL.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede obtener acceso a un miembro no estático de tipo externo '{0}' mediante el tipo anidado '{1}'.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' no contiene una definición para '{1}'.</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Se requiere una referencia de objeto para el campo, método o propiedad no estáticos '{0}'.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La llamada es ambigua entre los métodos o propiedades siguientes: '{0}' y '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' no es accesible debido a su nivel de protección</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ninguna sobrecarga correspondiente a '{0}' coincide con el '{1}' delegado</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">La parte izquierda de una asignación debe ser una variable, una propiedad o un indizador</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{0}' no tiene constructores definidos.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">La propiedad o el indizador '{0}' no se puede usar en este contexto porque carece del descriptor de acceso get.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">No se puede obtener acceso al miembro '{0}' con una referencia de instancia; califíquelo con un nombre de tipo en su lugar.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar un campo de solo lectura (excepto en un constructor o inicializador de variable)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar out o ref a un campo de solo lectura (excepto en un constructor).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar un campo de solo lectura estático (excepto en un constructor estático o inicializador de variable)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar out o ref a un campo estático de solo lectura (excepto en un constructor estático).</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar a la propiedad o el indizador '{0}' porque es de solo lectura</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Una propiedad o un indizador no se puede pasar como parámetro out o ref.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">No se pueden usar llamadas dinámicas en combinación con los punteros.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Para que se pueda aplicar un operador de cortocircuito, el operador lógico definido por el usuario ('{0}') debe tener el mismo tipo de valor devuelto que sus dos parámetros</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">El tipo ('{0}') debe incluir declaraciones de operador true y operador false.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">El valor constante '{0}' no se puede convertir en '{1}' (use la sintaxis 'unchecked' para invalidar el valor)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ambigüedad entre '{0}' y '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir implícitamente el tipo '{0}' en '{1}'. Ya existe una conversión explícita (compruebe si le falta una conversión).</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">La propiedad o indizador '{0}' no se puede usar en este contexto porque el descriptor de acceso get es inaccesible</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">La propiedad o indizador '{0}' no se puede usar en este contexto porque el descriptor de acceso set es inaccesible</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Uso de {1} de tipo genérico ('{0}'): requiere '{2}' argumentos de tipo</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}' no se puede usar con argumentos de tipo.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Uso de {1} '{0}' de tipo no genérico: no se puede usar con argumentos de tipo</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' debe ser un tipo no abstracto con un constructor público sin parámetros para poder usarlo como parámetro '{1}' en el tipo o método genérico '{0}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{3}' no se puede usar como parámetro de tipo '{2}' en el tipo o método genérico '{0}'. No hay ninguna conversión de referencia implícita de '{3}' a '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{3}' no se puede usar como parámetro de tipo '{2}' en el tipo o método genérico '{0}'. El tipo que acepta valores NULL '{3}' no cumple la restricción de '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{3}' no se puede usar como parámetro de tipo '{2}' en el tipo o método genérico '{0}'. El tipo que acepta valores NULL '{3}' no cumple la restricción de '{1}'. Los tipos que aceptan valores NULL no pueden cumplir restricciones de interfaz.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{3}' no se puede usar como parámetro de tipo '{2}' en el tipo o método genérico '{0}'. No hay conversión boxing de '{3}' a '{1}'.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Los argumentos de tipo para el método '{0}' no se pueden inferir a partir del uso. Intente especificar los argumentos de tipo explícitamente.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{2}' debe ser un tipo de referencia para poder usarlo como parámetro '{1}' en el tipo o método genérico '{0}'.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{2}' debe ser un tipo de valor que no acepte valores NULL para poder usarlo como parámetro '{1}' en el tipo o método genérico '{0}'.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Conversiones ambiguas definidas por el usuario '{0}' y '{1}' al convertir de '{2}' a '{3}'</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' no es compatible con el lenguaje</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': no se puede llamar explícitamente al operador o al descriptor de acceso</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir en el tipo estático '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">El operando de un operador de incremento o decremento debe ser una variable, una propiedad o un indizador</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Ninguna sobrecarga del método '{0}' toma argumentos '{1}'</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">La mejor coincidencia de método sobrecargado para '{0}' tiene algunos argumentos no válidos</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Un argumento out o ref debe ser una variable asignable.</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede obtener acceso al miembro protegido '{0}' mediante un calificador del tipo '{1}'; el calificador debe ser del tipo '{2}' (o derivado de éste)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">El lenguaje no admite la propiedad, el indizador o el evento '{0}'; intente llamar directamente a los métodos de descriptor de acceso '{1}' o '{2}'</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El lenguaje no admite la propiedad, el indizador o el evento '{0}'; intente llamar directamente al método de descriptor de acceso '{1}'</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">El delegado '{0}' no toma '{1}' argumentos</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">El delegado '{0}' tiene algunos argumentos no válidos</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar a '{0}' porque es de solo lectura</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar '{0}' como argumento out o ref porque es de solo lectura.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">No se puede modificar el valor devuelto de '{0}' porque no es una variable.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Los miembros del campo de solo lectura '{0}' no se pueden modificar (excepto en un constructor o inicializador de variable)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar out o ref a los miembros del campo de solo lectura '{0}' (excepto en un constructor).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar a los campos del campo estático de solo lectura '{0}' (excepto en un constructor estático o un inicializador de variable)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar out o ref a los campos del campo estático de solo lectura '{0}' (excepto en un constructor estático).</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar a '{0}' porque es '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar '{0}' como argumento out o ref porque es '{1}'.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' no contiene un constructor que tome '{1}' argumentos</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">No se puede usar como método el miembro '{0}' no invocable.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Las especificaciones de argumento con nombre deben aparecer después de haber especificado todos los argumentos fijos.</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La mejor sobrecarga para '{0}' no tiene un parámetro denominado '{1}'</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El delegado '{0}' no tiene un parámetro denominado '{1}'</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">El argumento con nombre '{0}' no se puede especificar varias veces</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">El argumento con nombre '{0}' especifica un parámetro para el que ya se ha proporcionado un argumento posicional.</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="es" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Excepción inesperada al enlazar una operación dinámica.</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">No se puede enlazar la llamada sin un objeto de llamada.</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Error en la resolución de sobrecarga.</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">No se pueden invocar operadores binarios con dos argumentos.</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Los operadores unarios deben invocarse con un argumento.</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">El nombre '{0}' está enlazado a un método y no se puede usar como propiedad.</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">El evento '{0}' solo puede aparecer a la izquierda de +</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">No se puede invocar un tipo no delegado.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">No se pueden invocar operadores binarios con un argumento.</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">No se puede realizar la asignación de miembros en una referencia NULL.</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">No se puede realizar enlace en tiempo de ejecución en una referencia NULL.</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">No se puede invocar dinámicamente el método '{0}' porque tiene un atributo Conditional.</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir implícitamente el tipo 'void' en 'object'.</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">El operador '{0}' no se puede aplicar a operandos del tipo '{1}' y '{2}'</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede aplicar la indización con [] a una expresión del tipo '{0}'</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Número incorrecto de índices dentro de []; se esperaba '{0}'</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El operador '{0}' no se puede aplicar al operando del tipo '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir implícitamente el tipo '{0}' en '{1}'.</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir el tipo '{0}' a '{1}'.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El valor constante '{0}' no se puede convertir en '{1}'</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">El operador '{0}' es ambiguo en operandos del tipo '{1}' y '{2}'</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El operador '{0}' es ambiguo con un operando del tipo '{1}'</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir NULL en '{0}' porque es un tipo de valor que no acepta valores NULL.</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede obtener acceso a un miembro no estático de tipo externo '{0}' mediante el tipo anidado '{1}'.</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' no contiene una definición para '{1}'.</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">Se requiere una referencia de objeto para el campo, método o propiedad no estáticos '{0}'.</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La llamada es ambigua entre los métodos o propiedades siguientes: '{0}' y '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' no es accesible debido a su nivel de protección</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ninguna sobrecarga correspondiente a '{0}' coincide con el '{1}' delegado</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">La parte izquierda de una asignación debe ser una variable, una propiedad o un indizador</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{0}' no tiene constructores definidos.</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">La propiedad o el indizador '{0}' no se puede usar en este contexto porque carece del descriptor de acceso get.</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">No se puede obtener acceso al miembro '{0}' con una referencia de instancia; califíquelo con un nombre de tipo en su lugar.</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar un campo de solo lectura (excepto en un constructor o inicializador de variable)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar out o ref a un campo de solo lectura (excepto en un constructor).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar un campo de solo lectura estático (excepto en un constructor estático o inicializador de variable)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar out o ref a un campo estático de solo lectura (excepto en un constructor estático).</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar a la propiedad o el indizador '{0}' porque es de solo lectura</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Una propiedad o un indizador no se puede pasar como parámetro out o ref.</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">No se pueden usar llamadas dinámicas en combinación con los punteros.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Para que se pueda aplicar un operador de cortocircuito, el operador lógico definido por el usuario ('{0}') debe tener el mismo tipo de valor devuelto que sus dos parámetros</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">El tipo ('{0}') debe incluir declaraciones de operador true y operador false.</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">El valor constante '{0}' no se puede convertir en '{1}' (use la sintaxis 'unchecked' para invalidar el valor)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Ambigüedad entre '{0}' y '{1}'</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir implícitamente el tipo '{0}' en '{1}'. Ya existe una conversión explícita (compruebe si le falta una conversión).</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">La propiedad o indizador '{0}' no se puede usar en este contexto porque el descriptor de acceso get es inaccesible</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">La propiedad o indizador '{0}' no se puede usar en este contexto porque el descriptor de acceso set es inaccesible</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Uso de {1} de tipo genérico ('{0}'): requiere '{2}' argumentos de tipo</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}' no se puede usar con argumentos de tipo.</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Uso de {1} '{0}' de tipo no genérico: no se puede usar con argumentos de tipo</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' debe ser un tipo no abstracto con un constructor público sin parámetros para poder usarlo como parámetro '{1}' en el tipo o método genérico '{0}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{3}' no se puede usar como parámetro de tipo '{2}' en el tipo o método genérico '{0}'. No hay ninguna conversión de referencia implícita de '{3}' a '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{3}' no se puede usar como parámetro de tipo '{2}' en el tipo o método genérico '{0}'. El tipo que acepta valores NULL '{3}' no cumple la restricción de '{1}'.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{3}' no se puede usar como parámetro de tipo '{2}' en el tipo o método genérico '{0}'. El tipo que acepta valores NULL '{3}' no cumple la restricción de '{1}'. Los tipos que aceptan valores NULL no pueden cumplir restricciones de interfaz.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{3}' no se puede usar como parámetro de tipo '{2}' en el tipo o método genérico '{0}'. No hay conversión boxing de '{3}' a '{1}'.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">Los argumentos de tipo para el método '{0}' no se pueden inferir a partir del uso. Intente especificar los argumentos de tipo explícitamente.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{2}' debe ser un tipo de referencia para poder usarlo como parámetro '{1}' en el tipo o método genérico '{0}'.</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">El tipo '{2}' debe ser un tipo de valor que no acepte valores NULL para poder usarlo como parámetro '{1}' en el tipo o método genérico '{0}'.</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">Conversiones ambiguas definidas por el usuario '{0}' y '{1}' al convertir de '{2}' a '{3}'</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' no es compatible con el lenguaje</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': no se puede llamar explícitamente al operador o al descriptor de acceso</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede convertir en el tipo estático '{0}'</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">El operando de un operador de incremento o decremento debe ser una variable, una propiedad o un indizador</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">Ninguna sobrecarga del método '{0}' toma argumentos '{1}'</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">La mejor coincidencia de método sobrecargado para '{0}' tiene algunos argumentos no válidos</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Un argumento out o ref debe ser una variable asignable.</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede obtener acceso al miembro protegido '{0}' mediante un calificador del tipo '{1}'; el calificador debe ser del tipo '{2}' (o derivado de éste)</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">El lenguaje no admite la propiedad, el indizador o el evento '{0}'; intente llamar directamente a los métodos de descriptor de acceso '{1}' o '{2}'</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El lenguaje no admite la propiedad, el indizador o el evento '{0}'; intente llamar directamente al método de descriptor de acceso '{1}'</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">El delegado '{0}' no toma '{1}' argumentos</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">El delegado '{0}' tiene algunos argumentos no válidos</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar a '{0}' porque es de solo lectura</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar '{0}' como argumento out o ref porque es de solo lectura.</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">No se puede modificar el valor devuelto de '{0}' porque no es una variable.</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Los miembros del campo de solo lectura '{0}' no se pueden modificar (excepto en un constructor o inicializador de variable)</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar out o ref a los miembros del campo de solo lectura '{0}' (excepto en un constructor).</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar a los campos del campo estático de solo lectura '{0}' (excepto en un constructor estático o un inicializador de variable)</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar out o ref a los campos del campo estático de solo lectura '{0}' (excepto en un constructor estático).</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede asignar a '{0}' porque es '{1}'</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">No se puede pasar '{0}' como argumento out o ref porque es '{1}'.</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' no contiene un constructor que tome '{1}' argumentos</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">No se puede usar como método el miembro '{0}' no invocable.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Las especificaciones de argumento con nombre deben aparecer después de haber especificado todos los argumentos fijos.</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">La mejor sobrecarga para '{0}' no tiene un parámetro denominado '{1}'</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">El delegado '{0}' no tiene un parámetro denominado '{1}'</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">El argumento con nombre '{0}' no se puede especificar varias veces</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">El argumento con nombre '{0}' especifica un parámetro para el que ya se ha proporcionado un argumento posicional.</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.CSharp/src/MultilingualResources/Microsoft.CSharp.tr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="tr" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Dinamik bir işlem bağlanırken beklenmeyen bir özel durum oluştu</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Çağırma nesnesi olmayan çağrı bağlanamaz</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Aşırı yükleme çözümlemesi başarısız oldu</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">İkili işleçler iki bağımsız değişkenle çağrılabilir</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Birli işleçler tek bağımsız değişkenle çağrılmalıdır</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' adı bir metoda bağlıdır ve bir özellik gibi kullanılamaz</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">'{0}' olayı yalnızca + işaretinin sol tarafında görünebilir</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Temsilci olmayan bir tür çağrılamaz</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">İkili işleçler tek bağımsız değişkenle çağrılamaz</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Null başvuruya üye ataması yapılamaz</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Null bir başvuruya bağlanma çalışma zamanında gerçekleştirilemez</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Conditional özniteliği olduğundan '{0}' metodu dinamik olarak çağrılamıyor</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">'void' türü örtülü olarak 'object' türüne dönüştürülemiyor</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' işleci '{1}' ve '{2}' türündeki işlenenlere uygulanamaz</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türündeki bir ifadeye [] ile indis erişimi uygulanamaz</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[] içinde yanlış sayıda dizin var; '{0}' olması bekleniyor</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' işleci '{1}' türündeki işlenene uygulanamaz</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türü örtülü olarak '{1}' türüne dönüştürülemez</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türü '{1}' olarak dönüştürülemiyor.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' sabit değeri bir '{1}' değerine dönüştürülemez.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' işleci, '{1}' ve '{2}' türündeki işlenenler üzerinde belirsizdir</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' işleci, '{1}' türündeki bir işlenen üzerinde belirsizdir</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Bu null atanamaz bir değer türü olduğundan, null değeri '{0}' değerine dönüştürülemiyor</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' dış türündeki statik olmayan bir öğeye '{1}' iç içe türü yoluyla erişilemez</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' bir '{1}' tanımı içermiyor</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' statik olmayan alanı, yöntemi veya özelliği için nesne başvurusu gerekiyor</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Çağrı şu metot veya özellikler arasında belirsiz: '{0}' ve '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' koruma düzeyi nedeniyle erişilemez</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' için hiçbir tekrar yükleme '{1}' temsilcisiyle eşleşmiyor</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Atamanın sol tarafı değişken, özellik veya dizin oluşturucu olmalıdır</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türünün tanımlı bir oluşturucusu yok</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' özelliği veya dizin erişimcisi, alma erişimcisi olmadığından bu bağlamda kullanılamaz</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Örnek başvurusuyla '{0}' üyesine erişilemez; bunun yerine bir tür adıyla niteleyin</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Salt okunur bir alana atama yapılamaz (oluşturucu veya değişken başlatıcı içinde olması dışında)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Salt okunur bir alan ref veya out olarak geçirilemez (oluşturucu içinde olması dışında)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Statik salt okunur bir alana atama yapılamaz (statik oluşturucu veya değişken başlatıcı içinde olması dışında)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Statik salt okunur bir alan ref veya out olarak geçirilemez (statik oluşturucu içinde olması dışında)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' özelliğine veya dizin oluşturucusuna, salt okunur olduğu için atama yapılamaz</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Bir özellik veya dizin oluşturucu out veya ref parametresi olarak geçirilemez</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Dinamik çağrılar işaretçilerle birlikte kullanılamaz.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Kısa devre işleci olarak uygulanabilmesi için, kullanıcı tanımlı bir mantıksal işleç ('{0}') 2 parametresiyle aynı dönüş türüne sahip olmalıdır</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Tür ('{0}') true işleci ve false işleci ile ilgili bildirimler içermelidir</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' sabit değeri bir '{1}' değerine dönüştürülemez (geçersiz kılmak için 'unchecked' sözdizimini kullanın)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' ve '{1}' arasında belirsizlik var</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türü örtülü olarak '{1}' türüne dönüştürülemez. Açık bir dönüştürme var (eksik atamanız mı var?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Alma erişimcisine erişilemediğinden '{0}' özelliği veya dizin oluşturucusu bu bağlamda kullanılamaz</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Ayarlama erişimcisine erişilemediğinden '{0}' özelliği veya dizin oluşturucusu bu bağlamda kullanılamaz</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Genel {1} '{0}' kullanımı '{2}' tür bağımsız değişkenlerini gerektirir</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}' öğesi tür bağımsız değişkenleri ile kullanılamaz</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Genel olmayan {1} '{0}' öğesi ´tür bağımsız değişkenleriyle kullanılamaz</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' türünün, '{0}' genel türünde veya yönteminde '{1}' parametresi olarak kullanabilmesi için ortak bir parametresiz oluşturucu içeren soyut olmayan bir tür olması gerekir</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' türü, '{0}' genel türü veya yöntemi için '{2}' tür parametresi olarak kullanılamaz. '{3}' türünden '{1}' türüne örtük bir başvuru dönüştürmesi yoktur.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' türü '{0}' genel türü veya yöntemi için '{2}' tür parametresi olarak kullanılamaz. '{3}' null yapılabilir türü, '{1}' kısıtlamasını karşılamıyor.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' türü, '{0}' genel türü veya yöntemi için '{2}' tür parametresi olarak kullanılamaz. '{3}' null yapılabilir türü '{1}' kısıtlamasını karşılamıyor. Null olabilen türler hiçbir arabirim kısıtlamasını karşılamaz.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' türü, '{0}' genel türü veya yöntemi için '{2}' tür parametresi olarak kullanılamaz. '{3}' türünden '{1}' türüne paketleme dönüşümü yoktur.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' yönteminin tür bağımsız değişkenleri kullanımdan çıkarsanamıyor. Tür bağımsız değişkenlerini açık olarak belirtmeyi deneyin.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' türünün '{0}' genel türünde veya yönteminde '{1}' parametresi olarak kullanabilmesi için bir başvuru türü olması gerekir</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' türünün '{0}' genel türünde veya yönteminde '{1}' parametresi olarak kullanabilmesi için null yapılamayan bir değer türü olması gerekir</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' iken '{3}' olarak dönüştürülürken belirsiz kullanıcı tanımlı '{0}' ve '{1}' dönüşümleri yapıldı.</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' dil tarafından desteklenmiyor</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': açıkça işleç veya erişimci çağıramaz</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' statik türüne dönüştürülemiyor</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Artırma veya azaltma işlecinin işleneni bir değişken, özellik veya dizin oluşturucu olmalıdır</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' metodu için hiçbir tekrar yükleme '{1}' bağımsız değişken almaz</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' ile en iyi eşleşen tekrar yüklenen metot bazı geçersiz bağımsız değişkenlere sahip</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Bir ref veya out bağımsız değişkeni atanabilir değişken olmalıdır</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' korunan üyesine '{1}' türündeki niteleyici kullanılarak erişilemez; niteleyici '{2}' türünde (veya bundan türetilmiş) olmalıdır</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' özelliği, dizin erişimcisi veya olayı dil tarafından desteklenmiyor; '{1}' veya '{2}' erişimci yöntemlerini doğrudan çağırmayı deneyin</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' özelliği, dizin erişimcisi veya olayı dil tarafından desteklenmiyor; '{1}' erişimci yöntemini doğrudan çağırmayı deneyin</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' temsilcisi '{1}' bağımsız değişken almıyor</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' temsilcisinde bazı geçersiz bağımsız değişkenler var</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Salt okunur olduğu için '{0}' öğesine atama yapılamaz</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Salt okunur olduğundan '{0}' öğesinin alanları bir ref veya out bağımsız değişkeni olarak geçirilemez</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Bir değişken olmadığından '{0}' öğesinin dönüş değeri değiştirilemez</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' salt okunur alanın üyeleri (oluşturucu veya değişken başlatıcı dışında) değiştirilemez</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' salt okunur alanının üyeleri ref veya out olarak geçirilemez (oluşturucu içinde olması dışında)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' statik salt okunur alanının alanlarına (statik oluşturucu veya değişken başlatıcı dışında) atama yapılamaz</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' statik salt okunur alanının alanları ref veya out olarak geçirilemez (statik oluşturucu içinde olması dışında)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' olduğu için '{0}' öğesine atama yapılamaz</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' olduğundan '{0}' öğesinin alanları bir ref veya out bağımsız değişkeni olarak geçirilemez</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}', '{1}' bağımsız değişkenlerini alan bir oluşturucu içermiyor</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Çağrılamayan '{0}' üyesi metot gibi kullanılamaz.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Adlandırılan bağımsız değişken belirtimleri, tüm sabit bağımsız değişkenler belirtildikten sonra görünmelidir</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' için en iyi yeniden yükleme, '{1}' adlı bir parametre içermiyor</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' temsilcisi '{1}' adlı bir parametre içermiyor</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' adlandırılmış bağımsız değişkeni bir kereden fazla belirtilemez</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' adlandırılmış bağımsız değişkeni konumsal bir bağımsız değişkenin zaten verildiği bir parametreyi belirtiyor</target> </trans-unit> </group> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en-US" target-language="tr" original="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a"> <header> <tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.1387.0" tool-company="Microsoft" /> </header> <body> <group id="MICROSOFT.CSHARP/RESOURCES/STRINGS.RESX" datatype="resx"> <trans-unit id="InternalCompilerError" translate="yes" xml:space="preserve"> <source>An unexpected exception occurred while binding a dynamic operation</source> <target state="translated" state-qualifier="tm-suggestion">Dinamik bir işlem bağlanırken beklenmeyen bir özel durum oluştu</target> </trans-unit> <trans-unit id="BindRequireArguments" translate="yes" xml:space="preserve"> <source>Cannot bind call with no calling object</source> <target state="translated" state-qualifier="tm-suggestion">Çağırma nesnesi olmayan çağrı bağlanamaz</target> </trans-unit> <trans-unit id="BindCallFailedOverloadResolution" translate="yes" xml:space="preserve"> <source>Overload resolution failed</source> <target state="translated" state-qualifier="tm-suggestion">Aşırı yükleme çözümlemesi başarısız oldu</target> </trans-unit> <trans-unit id="BindBinaryOperatorRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators must be invoked with two arguments</source> <target state="translated" state-qualifier="tm-suggestion">İkili işleçler iki bağımsız değişkenle çağrılabilir</target> </trans-unit> <trans-unit id="BindUnaryOperatorRequireOneArgument" translate="yes" xml:space="preserve"> <source>Unary operators must be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">Birli işleçler tek bağımsız değişkenle çağrılmalıdır</target> </trans-unit> <trans-unit id="BindPropertyFailedMethodGroup" translate="yes" xml:space="preserve"> <source>The name '{0}' is bound to a method and cannot be used like a property</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' adı bir metoda bağlıdır ve bir özellik gibi kullanılamaz</target> </trans-unit> <trans-unit id="BindPropertyFailedEvent" translate="yes" xml:space="preserve"> <source>The event '{0}' can only appear on the left hand side of +</source> <target state="translated" state-qualifier="mt-suggestion">'{0}' olayı yalnızca + işaretinin sol tarafında görünebilir</target> </trans-unit> <trans-unit id="BindInvokeFailedNonDelegate" translate="yes" xml:space="preserve"> <source>Cannot invoke a non-delegate type</source> <target state="translated" state-qualifier="tm-suggestion">Temsilci olmayan bir tür çağrılamaz</target> </trans-unit> <trans-unit id="BindBinaryAssignmentRequireTwoArguments" translate="yes" xml:space="preserve"> <source>Binary operators cannot be invoked with one argument</source> <target state="translated" state-qualifier="tm-suggestion">İkili işleçler tek bağımsız değişkenle çağrılamaz</target> </trans-unit> <trans-unit id="BindBinaryAssignmentFailedNullReference" translate="yes" xml:space="preserve"> <source>Cannot perform member assignment on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Null başvuruya üye ataması yapılamaz</target> </trans-unit> <trans-unit id="NullReferenceOnMemberException" translate="yes" xml:space="preserve"> <source>Cannot perform runtime binding on a null reference</source> <target state="translated" state-qualifier="tm-suggestion">Null bir başvuruya bağlanma çalışma zamanında gerçekleştirilemez</target> </trans-unit> <trans-unit id="BindCallToConditionalMethod" translate="yes" xml:space="preserve"> <source>Cannot dynamically invoke method '{0}' because it has a Conditional attribute</source> <target state="translated" state-qualifier="tm-suggestion">Conditional özniteliği olduğundan '{0}' metodu dinamik olarak çağrılamıyor</target> </trans-unit> <trans-unit id="BindToVoidMethodButExpectResult" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type 'void' to 'object'</source> <target state="translated" state-qualifier="tm-suggestion">'void' türü örtülü olarak 'object' türüne dönüştürülemiyor</target> </trans-unit> <trans-unit id="BadBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' işleci '{1}' ve '{2}' türündeki işlenenlere uygulanamaz</target> </trans-unit> <trans-unit id="BadIndexLHS" translate="yes" xml:space="preserve"> <source>Cannot apply indexing with [] to an expression of type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türündeki bir ifadeye [] ile indis erişimi uygulanamaz</target> </trans-unit> <trans-unit id="BadIndexCount" translate="yes" xml:space="preserve"> <source>Wrong number of indices inside []; expected '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">[] içinde yanlış sayıda dizin var; '{0}' olması bekleniyor</target> </trans-unit> <trans-unit id="BadUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' cannot be applied to operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' işleci '{1}' türündeki işlenene uygulanamaz</target> </trans-unit> <trans-unit id="NoImplicitConv" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türü örtülü olarak '{1}' türüne dönüştürülemez</target> </trans-unit> <trans-unit id="NoExplicitConv" translate="yes" xml:space="preserve"> <source>Cannot convert type '{0}' to '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türü '{1}' olarak dönüştürülemiyor.</target> </trans-unit> <trans-unit id="ConstOutOfRange" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' sabit değeri bir '{1}' değerine dönüştürülemez.</target> </trans-unit> <trans-unit id="AmbigBinaryOps" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on operands of type '{1}' and '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' işleci, '{1}' ve '{2}' türündeki işlenenler üzerinde belirsizdir</target> </trans-unit> <trans-unit id="AmbigUnaryOp" translate="yes" xml:space="preserve"> <source>Operator '{0}' is ambiguous on an operand of type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' işleci, '{1}' türündeki bir işlenen üzerinde belirsizdir</target> </trans-unit> <trans-unit id="ValueCantBeNull" translate="yes" xml:space="preserve"> <source>Cannot convert null to '{0}' because it is a non-nullable value type</source> <target state="translated" state-qualifier="tm-suggestion">Bu null atanamaz bir değer türü olduğundan, null değeri '{0}' değerine dönüştürülemiyor</target> </trans-unit> <trans-unit id="WrongNestedThis" translate="yes" xml:space="preserve"> <source>Cannot access a non-static member of outer type '{0}' via nested type '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' dış türündeki statik olmayan bir öğeye '{1}' iç içe türü yoluyla erişilemez</target> </trans-unit> <trans-unit id="NoSuchMember" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a definition for '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' bir '{1}' tanımı içermiyor</target> </trans-unit> <trans-unit id="ObjectRequired" translate="yes" xml:space="preserve"> <source>An object reference is required for the non-static field, method, or property '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' statik olmayan alanı, yöntemi veya özelliği için nesne başvurusu gerekiyor</target> </trans-unit> <trans-unit id="AmbigCall" translate="yes" xml:space="preserve"> <source>The call is ambiguous between the following methods or properties: '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">Çağrı şu metot veya özellikler arasında belirsiz: '{0}' ve '{1}'</target> </trans-unit> <trans-unit id="BadAccess" translate="yes" xml:space="preserve"> <source>'{0}' is inaccessible due to its protection level</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' koruma düzeyi nedeniyle erişilemez</target> </trans-unit> <trans-unit id="MethDelegateMismatch" translate="yes" xml:space="preserve"> <source>No overload for '{0}' matches delegate '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' için hiçbir tekrar yükleme '{1}' temsilcisiyle eşleşmiyor</target> </trans-unit> <trans-unit id="AssgLvalueExpected" translate="yes" xml:space="preserve"> <source>The left-hand side of an assignment must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Atamanın sol tarafı değişken, özellik veya dizin oluşturucu olmalıdır</target> </trans-unit> <trans-unit id="NoConstructors" translate="yes" xml:space="preserve"> <source>The type '{0}' has no constructors defined</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türünün tanımlı bir oluşturucusu yok</target> </trans-unit> <trans-unit id="PropertyLacksGet" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because it lacks the get accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' özelliği veya dizin erişimcisi, alma erişimcisi olmadığından bu bağlamda kullanılamaz</target> </trans-unit> <trans-unit id="ObjectProhibited" translate="yes" xml:space="preserve"> <source>Member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</source> <target state="translated" state-qualifier="tm-suggestion">Örnek başvurusuyla '{0}' üyesine erişilemez; bunun yerine bir tür adıyla niteleyin</target> </trans-unit> <trans-unit id="AssgReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be assigned to (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Salt okunur bir alana atama yapılamaz (oluşturucu veya değişken başlatıcı içinde olması dışında)</target> </trans-unit> <trans-unit id="RefReadonly" translate="yes" xml:space="preserve"> <source>A readonly field cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Salt okunur bir alan ref veya out olarak geçirilemez (oluşturucu içinde olması dışında)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">Statik salt okunur bir alana atama yapılamaz (statik oluşturucu veya değişken başlatıcı içinde olması dışında)</target> </trans-unit> <trans-unit id="RefReadonlyStatic" translate="yes" xml:space="preserve"> <source>A static readonly field cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">Statik salt okunur bir alan ref veya out olarak geçirilemez (statik oluşturucu içinde olması dışında)</target> </trans-unit> <trans-unit id="AssgReadonlyProp" translate="yes" xml:space="preserve"> <source>Property or indexer '{0}' cannot be assigned to -- it is read only</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' özelliğine veya dizin oluşturucusuna, salt okunur olduğu için atama yapılamaz</target> </trans-unit> <trans-unit id="RefProperty" translate="yes" xml:space="preserve"> <source>A property or indexer may not be passed as an out or ref parameter</source> <target state="translated" state-qualifier="tm-suggestion">Bir özellik veya dizin oluşturucu out veya ref parametresi olarak geçirilemez</target> </trans-unit> <trans-unit id="UnsafeNeeded" translate="yes" xml:space="preserve"> <source>Dynamic calls cannot be used in conjunction with pointers</source> <target state="translated" state-qualifier="tm-suggestion">Dinamik çağrılar işaretçilerle birlikte kullanılamaz.</target> </trans-unit> <trans-unit id="BadBoolOp" translate="yes" xml:space="preserve"> <source>In order to be applicable as a short circuit operator a user-defined logical operator ('{0}') must have the same return type as the type of its 2 parameters</source> <target state="translated" state-qualifier="tm-suggestion">Kısa devre işleci olarak uygulanabilmesi için, kullanıcı tanımlı bir mantıksal işleç ('{0}') 2 parametresiyle aynı dönüş türüne sahip olmalıdır</target> </trans-unit> <trans-unit id="MustHaveOpTF" translate="yes" xml:space="preserve"> <source>The type ('{0}') must contain declarations of operator true and operator false</source> <target state="translated" state-qualifier="tm-suggestion">Tür ('{0}') true işleci ve false işleci ile ilgili bildirimler içermelidir</target> </trans-unit> <trans-unit id="ConstOutOfRangeChecked" translate="yes" xml:space="preserve"> <source>Constant value '{0}' cannot be converted to a '{1}' (use 'unchecked' syntax to override)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' sabit değeri bir '{1}' değerine dönüştürülemez (geçersiz kılmak için 'unchecked' sözdizimini kullanın)</target> </trans-unit> <trans-unit id="AmbigMember" translate="yes" xml:space="preserve"> <source>Ambiguity between '{0}' and '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' ve '{1}' arasında belirsizlik var</target> </trans-unit> <trans-unit id="NoImplicitConvCast" translate="yes" xml:space="preserve"> <source>Cannot implicitly convert type '{0}' to '{1}'. An explicit conversion exists (are you missing a cast?)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' türü örtülü olarak '{1}' türüne dönüştürülemez. Açık bir dönüştürme var (eksik atamanız mı var?)</target> </trans-unit> <trans-unit id="InaccessibleGetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the get accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Alma erişimcisine erişilemediğinden '{0}' özelliği veya dizin oluşturucusu bu bağlamda kullanılamaz</target> </trans-unit> <trans-unit id="InaccessibleSetter" translate="yes" xml:space="preserve"> <source>The property or indexer '{0}' cannot be used in this context because the set accessor is inaccessible</source> <target state="translated" state-qualifier="tm-suggestion">Ayarlama erişimcisine erişilemediğinden '{0}' özelliği veya dizin oluşturucusu bu bağlamda kullanılamaz</target> </trans-unit> <trans-unit id="BadArity" translate="yes" xml:space="preserve"> <source>Using the generic {1} '{0}' requires '{2}' type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Genel {1} '{0}' kullanımı '{2}' tür bağımsız değişkenlerini gerektirir</target> </trans-unit> <trans-unit id="TypeArgsNotAllowed" translate="yes" xml:space="preserve"> <source>The {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">{1} '{0}' öğesi tür bağımsız değişkenleri ile kullanılamaz</target> </trans-unit> <trans-unit id="HasNoTypeVars" translate="yes" xml:space="preserve"> <source>The non-generic {1} '{0}' cannot be used with type arguments</source> <target state="translated" state-qualifier="tm-suggestion">Genel olmayan {1} '{0}' öğesi ´tür bağımsız değişkenleriyle kullanılamaz</target> </trans-unit> <trans-unit id="NewConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>'{2}' must be a non-abstract type with a public parameterless constructor in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' türünün, '{0}' genel türünde veya yönteminde '{1}' parametresi olarak kullanabilmesi için ortak bir parametresiz oluşturucu içeren soyut olmayan bir tür olması gerekir</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedRefType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no implicit reference conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' türü, '{0}' genel türü veya yöntemi için '{2}' tür parametresi olarak kullanılamaz. '{3}' türünden '{1}' türüne örtük bir başvuru dönüştürmesi yoktur.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableEnum" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' türü '{0}' genel türü veya yöntemi için '{2}' tür parametresi olarak kullanılamaz. '{3}' null yapılabilir türü, '{1}' kısıtlamasını karşılamıyor.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedNullableInterface" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. The nullable type '{3}' does not satisfy the constraint of '{1}'. Nullable types can not satisfy any interface constraints.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' türü, '{0}' genel türü veya yöntemi için '{2}' tür parametresi olarak kullanılamaz. '{3}' null yapılabilir türü '{1}' kısıtlamasını karşılamıyor. Null olabilen türler hiçbir arabirim kısıtlamasını karşılamaz.</target> </trans-unit> <trans-unit id="GenericConstraintNotSatisfiedValType" translate="yes" xml:space="preserve"> <source>The type '{3}' cannot be used as type parameter '{2}' in the generic type or method '{0}'. There is no boxing conversion from '{3}' to '{1}'.</source> <target state="translated" state-qualifier="tm-suggestion">'{3}' türü, '{0}' genel türü veya yöntemi için '{2}' tür parametresi olarak kullanılamaz. '{3}' türünden '{1}' türüne paketleme dönüşümü yoktur.</target> </trans-unit> <trans-unit id="CantInferMethTypeArgs" translate="yes" xml:space="preserve"> <source>The type arguments for method '{0}' cannot be inferred from the usage. Try specifying the type arguments explicitly.</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' yönteminin tür bağımsız değişkenleri kullanımdan çıkarsanamıyor. Tür bağımsız değişkenlerini açık olarak belirtmeyi deneyin.</target> </trans-unit> <trans-unit id="RefConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a reference type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' türünün '{0}' genel türünde veya yönteminde '{1}' parametresi olarak kullanabilmesi için bir başvuru türü olması gerekir</target> </trans-unit> <trans-unit id="ValConstraintNotSatisfied" translate="yes" xml:space="preserve"> <source>The type '{2}' must be a non-nullable value type in order to use it as parameter '{1}' in the generic type or method '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' türünün '{0}' genel türünde veya yönteminde '{1}' parametresi olarak kullanabilmesi için null yapılamayan bir değer türü olması gerekir</target> </trans-unit> <trans-unit id="AmbigUDConv" translate="yes" xml:space="preserve"> <source>Ambiguous user defined conversions '{0}' and '{1}' when converting from '{2}' to '{3}'</source> <target state="translated" state-qualifier="tm-suggestion">'{2}' iken '{3}' olarak dönüştürülürken belirsiz kullanıcı tanımlı '{0}' ve '{1}' dönüşümleri yapıldı.</target> </trans-unit> <trans-unit id="BindToBogus" translate="yes" xml:space="preserve"> <source>'{0}' is not supported by the language</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' dil tarafından desteklenmiyor</target> </trans-unit> <trans-unit id="CantCallSpecialMethod" translate="yes" xml:space="preserve"> <source>'{0}': cannot explicitly call operator or accessor</source> <target state="translated" state-qualifier="tm-suggestion">'{0}': açıkça işleç veya erişimci çağıramaz</target> </trans-unit> <trans-unit id="ConvertToStaticClass" translate="yes" xml:space="preserve"> <source>Cannot convert to static type '{0}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' statik türüne dönüştürülemiyor</target> </trans-unit> <trans-unit id="IncrementLvalueExpected" translate="yes" xml:space="preserve"> <source>The operand of an increment or decrement operator must be a variable, property or indexer</source> <target state="translated" state-qualifier="tm-suggestion">Artırma veya azaltma işlecinin işleneni bir değişken, özellik veya dizin oluşturucu olmalıdır</target> </trans-unit> <trans-unit id="BadArgCount" translate="yes" xml:space="preserve"> <source>No overload for method '{0}' takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' metodu için hiçbir tekrar yükleme '{1}' bağımsız değişken almaz</target> </trans-unit> <trans-unit id="BadArgTypes" translate="yes" xml:space="preserve"> <source>The best overloaded method match for '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' ile en iyi eşleşen tekrar yüklenen metot bazı geçersiz bağımsız değişkenlere sahip</target> </trans-unit> <trans-unit id="RefLvalueExpected" translate="yes" xml:space="preserve"> <source>A ref or out argument must be an assignable variable</source> <target state="translated" state-qualifier="tm-suggestion">Bir ref veya out bağımsız değişkeni atanabilir değişken olmalıdır</target> </trans-unit> <trans-unit id="BadProtectedAccess" translate="yes" xml:space="preserve"> <source>Cannot access protected member '{0}' via a qualifier of type '{1}'; the qualifier must be of type '{2}' (or derived from it)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' korunan üyesine '{1}' türündeki niteleyici kullanılarak erişilemez; niteleyici '{2}' türünde (veya bundan türetilmiş) olmalıdır</target> </trans-unit> <trans-unit id="BindToBogusProp2" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor methods '{1}' or '{2}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' özelliği, dizin erişimcisi veya olayı dil tarafından desteklenmiyor; '{1}' veya '{2}' erişimci yöntemlerini doğrudan çağırmayı deneyin</target> </trans-unit> <trans-unit id="BindToBogusProp1" translate="yes" xml:space="preserve"> <source>Property, indexer, or event '{0}' is not supported by the language; try directly calling accessor method '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' özelliği, dizin erişimcisi veya olayı dil tarafından desteklenmiyor; '{1}' erişimci yöntemini doğrudan çağırmayı deneyin</target> </trans-unit> <trans-unit id="BadDelArgCount" translate="yes" xml:space="preserve"> <source>Delegate '{0}' does not take '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' temsilcisi '{1}' bağımsız değişken almıyor</target> </trans-unit> <trans-unit id="BadDelArgTypes" translate="yes" xml:space="preserve"> <source>Delegate '{0}' has some invalid arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' temsilcisinde bazı geçersiz bağımsız değişkenler var</target> </trans-unit> <trans-unit id="AssgReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Salt okunur olduğu için '{0}' öğesine atama yapılamaz</target> </trans-unit> <trans-unit id="RefReadonlyLocal" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is read-only</source> <target state="translated" state-qualifier="tm-suggestion">Salt okunur olduğundan '{0}' öğesinin alanları bir ref veya out bağımsız değişkeni olarak geçirilemez</target> </trans-unit> <trans-unit id="ReturnNotLValue" translate="yes" xml:space="preserve"> <source>Cannot modify the return value of '{0}' because it is not a variable</source> <target state="translated" state-qualifier="tm-suggestion">Bir değişken olmadığından '{0}' öğesinin dönüş değeri değiştirilemez</target> </trans-unit> <trans-unit id="AssgReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be modified (except in a constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' salt okunur alanın üyeleri (oluşturucu veya değişken başlatıcı dışında) değiştirilemez</target> </trans-unit> <trans-unit id="RefReadonly2" translate="yes" xml:space="preserve"> <source>Members of readonly field '{0}' cannot be passed ref or out (except in a constructor)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' salt okunur alanının üyeleri ref veya out olarak geçirilemez (oluşturucu içinde olması dışında)</target> </trans-unit> <trans-unit id="AssgReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be assigned to (except in a static constructor or a variable initializer)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' statik salt okunur alanının alanlarına (statik oluşturucu veya değişken başlatıcı dışında) atama yapılamaz</target> </trans-unit> <trans-unit id="RefReadonlyStatic2" translate="yes" xml:space="preserve"> <source>Fields of static readonly field '{0}' cannot be passed ref or out (except in a static constructor)</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' statik salt okunur alanının alanları ref veya out olarak geçirilemez (statik oluşturucu içinde olması dışında)</target> </trans-unit> <trans-unit id="AssgReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot assign to '{0}' because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' olduğu için '{0}' öğesine atama yapılamaz</target> </trans-unit> <trans-unit id="RefReadonlyLocalCause" translate="yes" xml:space="preserve"> <source>Cannot pass '{0}' as a ref or out argument because it is a '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{1}' olduğundan '{0}' öğesinin alanları bir ref veya out bağımsız değişkeni olarak geçirilemez</target> </trans-unit> <trans-unit id="BadCtorArgCount" translate="yes" xml:space="preserve"> <source>'{0}' does not contain a constructor that takes '{1}' arguments</source> <target state="translated" state-qualifier="tm-suggestion">'{0}', '{1}' bağımsız değişkenlerini alan bir oluşturucu içermiyor</target> </trans-unit> <trans-unit id="NonInvocableMemberCalled" translate="yes" xml:space="preserve"> <source>Non-invocable member '{0}' cannot be used like a method.</source> <target state="translated" state-qualifier="tm-suggestion">Çağrılamayan '{0}' üyesi metot gibi kullanılamaz.</target> </trans-unit> <trans-unit id="NamedArgumentSpecificationBeforeFixedArgument" translate="yes" xml:space="preserve"> <source>Named argument specifications must appear after all fixed arguments have been specified</source> <target state="translated" state-qualifier="tm-suggestion">Adlandırılan bağımsız değişken belirtimleri, tüm sabit bağımsız değişkenler belirtildikten sonra görünmelidir</target> </trans-unit> <trans-unit id="BadNamedArgument" translate="yes" xml:space="preserve"> <source>The best overload for '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' için en iyi yeniden yükleme, '{1}' adlı bir parametre içermiyor</target> </trans-unit> <trans-unit id="BadNamedArgumentForDelegateInvoke" translate="yes" xml:space="preserve"> <source>The delegate '{0}' does not have a parameter named '{1}'</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' temsilcisi '{1}' adlı bir parametre içermiyor</target> </trans-unit> <trans-unit id="DuplicateNamedArgument" translate="yes" xml:space="preserve"> <source>Named argument '{0}' cannot be specified multiple times</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' adlandırılmış bağımsız değişkeni bir kereden fazla belirtilemez</target> </trans-unit> <trans-unit id="NamedArgumentUsedInPositional" translate="yes" xml:space="preserve"> <source>Named argument '{0}' specifies a parameter for which a positional argument has already been given</source> <target state="translated" state-qualifier="tm-suggestion">'{0}' adlandırılmış bağımsız değişkeni konumsal bir bağımsız değişkenin zaten verildiği bir parametreyi belirtiyor</target> </trans-unit> </group> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.it.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="it" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">Il messaggio di registrazione non fa riferimento all'argomento '{0}'</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Il messaggio di registrazione non fa riferimento all'argomento</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">La creazione di più di 6 argomenti non è supportata</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Impossibile avere lo stesso modello con un utilizzo di maiuscole e minuscole diverso</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">I nomi dei metodi di registrazione non possono iniziare con _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">I nomi dei parametri del metodo di registrazione non possono iniziare con _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">I metodi di registrazione non possono avere un corpo</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">I metodi di registrazione non possono essere generici</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">I metodi di registrazione devono essere parziali</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">I metodi di registrazione devono restituire void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">I metodi di registrazione devono essere statici</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Impossibile avere stringhe di formato non valido (ad esempio, { tralasciato e così via)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">È necessario specificare un valore LogLevel nell'attributo LoggerMessage o come parametro per il metodo di registrazione</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Uno degli argomenti del metodo di registrazione statico '{0}' deve implementare l'interfaccia Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Uno degli argomenti del metodo di registrazione statico deve implementare l'interfaccia Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Non è stato possibile trovare un campo di tipo Microsoft.Extensions.Logging.ILogger nella classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Non è stato possibile trovare un campo di tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Non è stato possibile trovare una definizione per il tipo {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Non è stato possibile trovare una definizione del tipo richiesto</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Sono stati trovati più campi di tipo Microsoft.Extensions.Logging.ILogger nella classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Sono stati trovati più campi di tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Rimuovere il qualificatore ridondante (Informazioni:, Avviso:, Errore: e così via) dal messaggio di registrazione perché è implicito nel livello di log specificato.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Qualificatore ridondante nel messaggio di registrazione</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Non includere i parametri di eccezione come modelli nel messaggio di registrazione</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Non includere un modello per {0} nel messaggio di registrazione perché è gestito in modo implicito</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Non includere i parametri del livello di log come modelli nel messaggio di registrazione</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Non includere i parametri del logger come modelli nel messaggio di registrazione</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Più metodi di registrazione stanno utilizzando l'ID evento {0} nella classe {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Più metodi di registrazione non possono utilizzare lo stesso ID evento all'interno di una classe</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Il modello ‘{0}’ non è specificato come argomento per il metodo di registrazione</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Il modello di registrazione non ha alcun argomento del metodo corrispondente</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="it" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">Il messaggio di registrazione non fa riferimento all'argomento '{0}'</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Il messaggio di registrazione non fa riferimento all'argomento</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">La creazione di più di 6 argomenti non è supportata</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Impossibile avere lo stesso modello con un utilizzo di maiuscole e minuscole diverso</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">I nomi dei metodi di registrazione non possono iniziare con _</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">I nomi dei parametri del metodo di registrazione non possono iniziare con _</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">I metodi di registrazione non possono avere un corpo</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">I metodi di registrazione non possono essere generici</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">I metodi di registrazione devono essere parziali</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">I metodi di registrazione devono restituire void</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">I metodi di registrazione devono essere statici</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Impossibile avere stringhe di formato non valido (ad esempio, { tralasciato e così via)</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">È necessario specificare un valore LogLevel nell'attributo LoggerMessage o come parametro per il metodo di registrazione</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Uno degli argomenti del metodo di registrazione statico '{0}' deve implementare l'interfaccia Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Uno degli argomenti del metodo di registrazione statico deve implementare l'interfaccia Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Non è stato possibile trovare un campo di tipo Microsoft.Extensions.Logging.ILogger nella classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Non è stato possibile trovare un campo di tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Non è stato possibile trovare una definizione per il tipo {0}</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Non è stato possibile trovare una definizione del tipo richiesto</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Sono stati trovati più campi di tipo Microsoft.Extensions.Logging.ILogger nella classe {0}</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Sono stati trovati più campi di tipo Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Rimuovere il qualificatore ridondante (Informazioni:, Avviso:, Errore: e così via) dal messaggio di registrazione perché è implicito nel livello di log specificato.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Qualificatore ridondante nel messaggio di registrazione</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Non includere i parametri di eccezione come modelli nel messaggio di registrazione</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Non includere un modello per {0} nel messaggio di registrazione perché è gestito in modo implicito</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Non includere i parametri del livello di log come modelli nel messaggio di registrazione</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Non includere i parametri del logger come modelli nel messaggio di registrazione</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Più metodi di registrazione stanno utilizzando l'ID evento {0} nella classe {1}</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Più metodi di registrazione non possono utilizzare lo stesso ID evento all'interno di una classe</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Il modello ‘{0}’ non è specificato come argomento per il metodo di registrazione</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Il modello di registrazione non ha alcun argomento del metodo corrispondente</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Resources/xlf/Strings.cs.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">Na argument {0} se ve zprávě o protokolování neodkazuje.</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Na argument se zpráva o protokolování neodkazuje</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">Generování více než 6 argumentů se nepodporuje.</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Nemůže mít stejnou šablonu s různým zápisem velkých a malých písmen.</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Názvy metod protokolování nemůžou začínat podtržítkem (_).</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Názvy parametrů metody protokolování nemůžou začínat podtržítkem (_).</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Metody protokolování nemůžou obsahovat tělo.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Metody protokolování nemůžou být obecné.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Metody protokolování musí být částečné.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Metody protokolování musí vracet void.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Metody protokolování musí být statické.</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Nemůže mít chybně formátované řetězce (třeba neuzavřené závorky { atd.).</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Hodnota LogLevel musí být zadaná v atributu LoggerMessage, nebo jako parametr metody protokolování.</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Jeden z argumentů metody statického protokolování {0} musí implementovat rozhraní Microsoft.Extensions.Logging.ILogger.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Jeden z argumentů metody statického protokolování musí implementovat rozhraní Microsoft.Extensions.Logging.ILogger.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Ve třídě {0} se nepovedlo najít pole typu Microsoft.Extensions.Logging.ILogger.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Nepovedlo se najít pole typu Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Nepovedlo se najít definici pro typ {0}.</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Nepovedlo se najít požadovanou definici typu</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Ve třídě {0} se našlo několik polí typu Microsoft.Extensions.Logging.ILogger.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Našlo se několik polí typu Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Odeberte redundantní kvalifikátor (Informace:, Upozornění:, Chyba: atd.) ze zprávy o protokolování, protože je na zadané úrovni protokolu implicitní.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Redundantní kvalifikátor ve zprávě o protokolování</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Nezahrnovat parametry výjimek jako šablony do zprávy o protokolování</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Nezahrnovat do zprávy o protokolování šablonu pro {0}, protože se zpracovává implicitně.</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Nezahrnovat parametry úrovně protokolu jako šablony do zprávy o protokolování</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Nezahrnovat parametry protokolovacího nástroje jako šablony do zprávy o protokolování</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Více než jedna metoda protokolování používá ve třídě {1} ID události {0}.</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Více než jedna metoda protokolování nemůže v rámci třídy používat stejné ID události.</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Šablona {0} se neposkytuje jako argument pro metodu protokolování.</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Šablona protokolování nemá žádný odpovídající argument metody</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../Strings.resx"> <body> <trans-unit id="ArgumentHasNoCorrespondingTemplateMessage"> <source>Argument '{0}' is not referenced from the logging message</source> <target state="translated">Na argument {0} se ve zprávě o protokolování neodkazuje.</target> <note /> </trans-unit> <trans-unit id="ArgumentHasNoCorrespondingTemplateTitle"> <source>Argument is not referenced from the logging message</source> <target state="translated">Na argument se zpráva o protokolování neodkazuje</target> <note /> </trans-unit> <trans-unit id="GeneratingForMax6ArgumentsMessage"> <source>Generating more than 6 arguments is not supported</source> <target state="translated">Generování více než 6 argumentů se nepodporuje.</target> <note /> </trans-unit> <trans-unit id="InconsistentTemplateCasingMessage"> <source>Can't have the same template with different casing</source> <target state="translated">Nemůže mít stejnou šablonu s různým zápisem velkých a malých písmen.</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodNameMessage"> <source>Logging method names cannot start with _</source> <target state="translated">Názvy metod protokolování nemůžou začínat podtržítkem (_).</target> <note /> </trans-unit> <trans-unit id="InvalidLoggingMethodParameterNameMessage"> <source>Logging method parameter names cannot start with _</source> <target state="translated">Názvy parametrů metody protokolování nemůžou začínat podtržítkem (_).</target> <note /> </trans-unit> <trans-unit id="LoggingMethodHasBodyMessage"> <source>Logging methods cannot have a body</source> <target state="translated">Metody protokolování nemůžou obsahovat tělo.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodIsGenericMessage"> <source>Logging methods cannot be generic</source> <target state="translated">Metody protokolování nemůžou být obecné.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustBePartialMessage"> <source>Logging methods must be partial</source> <target state="translated">Metody protokolování musí být částečné.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodMustReturnVoidMessage"> <source>Logging methods must return void</source> <target state="translated">Metody protokolování musí vracet void.</target> <note /> </trans-unit> <trans-unit id="LoggingMethodShouldBeStaticMessage"> <source>Logging methods must be static</source> <target state="translated">Metody protokolování musí být statické.</target> <note /> </trans-unit> <trans-unit id="MalformedFormatStringsMessage"> <source>Can't have malformed format strings (like dangling {, etc)</source> <target state="translated">Nemůže mít chybně formátované řetězce (třeba neuzavřené závorky { atd.).</target> <note /> </trans-unit> <trans-unit id="MissingLogLevelMessage"> <source>A LogLevel value must be supplied in the LoggerMessage attribute or as a parameter to the logging method</source> <target state="translated">Hodnota LogLevel musí být zadaná v atributu LoggerMessage, nebo jako parametr metody protokolování.</target> <note /> </trans-unit> <trans-unit id="MissingLoggerArgumentMessage"> <source>One of the arguments to the static logging method '{0}' must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Jeden z argumentů metody statického protokolování {0} musí implementovat rozhraní Microsoft.Extensions.Logging.ILogger.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerArgumentTitle"> <source>One of the arguments to a static logging method must implement the Microsoft.Extensions.Logging.ILogger interface</source> <target state="translated">Jeden z argumentů metody statického protokolování musí implementovat rozhraní Microsoft.Extensions.Logging.ILogger.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldMessage"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Ve třídě {0} se nepovedlo najít pole typu Microsoft.Extensions.Logging.ILogger.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingLoggerFieldTitle"> <source>Couldn't find a field of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Nepovedlo se najít pole typu Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MissingRequiredTypeMessage"> <source>Could not find definition for type {0}</source> <target state="translated">Nepovedlo se najít definici pro typ {0}.</target> <note /> </trans-unit> <trans-unit id="MissingRequiredTypeTitle"> <source>Could not find a required type definition</source> <target state="translated">Nepovedlo se najít požadovanou definici typu</target> <note /> </trans-unit> <trans-unit id="MultipleLoggerFieldsMessage"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger in class {0}</source> <target state="translated">Ve třídě {0} se našlo několik polí typu Microsoft.Extensions.Logging.ILogger.</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="MultipleLoggerFieldsTitle"> <source>Found multiple fields of type Microsoft.Extensions.Logging.ILogger</source> <target state="translated">Našlo se několik polí typu Microsoft.Extensions.Logging.ILogger</target> <note>{Locked="Microsoft.Extensions.Logging.ILogger"}</note> </trans-unit> <trans-unit id="RedundantQualifierInMessageMessage"> <source>Remove redundant qualifier (Info:, Warning:, Error:, etc) from the logging message since it is implicit in the specified log level.</source> <target state="translated">Odeberte redundantní kvalifikátor (Informace:, Upozornění:, Chyba: atd.) ze zprávy o protokolování, protože je na zadané úrovni protokolu implicitní.</target> <note /> </trans-unit> <trans-unit id="RedundantQualifierInMessageTitle"> <source>Redundant qualifier in logging message</source> <target state="translated">Redundantní kvalifikátor ve zprávě o protokolování</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionExceptionInMessageTitle"> <source>Don't include exception parameters as templates in the logging message</source> <target state="translated">Nezahrnovat parametry výjimek jako šablony do zprávy o protokolování</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionInTemplateMessage"> <source>Don't include a template for {0} in the logging message since it is implicitly taken care of</source> <target state="translated">Nezahrnovat do zprávy o protokolování šablonu pro {0}, protože se zpracovává implicitně.</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLogLevelInMessageTitle"> <source>Don't include log level parameters as templates in the logging message</source> <target state="translated">Nezahrnovat parametry úrovně protokolu jako šablony do zprávy o protokolování</target> <note /> </trans-unit> <trans-unit id="ShouldntMentionLoggerInMessageTitle"> <source>Don't include logger parameters as templates in the logging message</source> <target state="translated">Nezahrnovat parametry protokolovacího nástroje jako šablony do zprávy o protokolování</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsMessage"> <source>Multiple logging methods are using event id {0} in class {1}</source> <target state="translated">Více než jedna metoda protokolování používá ve třídě {1} ID události {0}.</target> <note /> </trans-unit> <trans-unit id="ShouldntReuseEventIdsTitle"> <source>Multiple logging methods cannot use the same event id within a class</source> <target state="translated">Více než jedna metoda protokolování nemůže v rámci třídy používat stejné ID události.</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentMessage"> <source>Template '{0}' is not provided as argument to the logging method</source> <target state="translated">Šablona {0} se neposkytuje jako argument pro metodu protokolování.</target> <note /> </trans-unit> <trans-unit id="TemplateHasNoCorrespondingArgumentTitle"> <source>Logging template has no corresponding method argument</source> <target state="translated">Šablona protokolování nemá žádný odpovídající argument metody</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Text.Json/gen/Resources/xlf/Strings.fr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Le type 'JsonSerializerContext' dérivé '{0}' spécifie des types Sérialisables JSON. Le type et tous les types contenants doivent être rendus partiels pour lancer la génération de la source.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Les types dérivés 'JsonSerializerContext' et tous les types conteneurs doivent être partiels.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">La propriété d'extension de données '{0}.{1}' n'est pas valide. Elle doit mettre en œuvre 'IDictionary&lt;string, JsonElement&gt;' ou 'IDictionary&lt;string, object&gt;', ou être 'JsonObject'.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Type de propriété d’extension de données non valide</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Plusieurs types nommés {0}. La source a été générée pour la première détection détectée. Utilisez « JsonSerializableAttribute.TypeInfoPropertyName » pour résoudre cette collision.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Nom de type dupliqué.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Le membre '{0}.{1}' a été annoté avec JsonIncludeAttribute mais n’est pas visible pour le générateur source.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Les propriétés inaccessibles annotées avec JsonIncludeAttribute ne sont pas prises en charge en mode de génération de source.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Le type' {0}' définit des propriétés init uniquement, dont la désérialisation n'est actuellement pas prise en charge en mode de génération de source.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">La désérialisation des propriétés d’initialisation uniquement n’est actuellement pas prise en charge en mode de génération de source.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Le type' {0} 'a plusieurs constructeurs annotés avec’JsonConstructorAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Le type a plusieurs constructeurs annotés avec JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Le type '{0}' comporte plusieurs membres annotés avec JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Le type comporte plusieurs membres annotés avec JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Les métadonnées de sérialisation pour le type « {0} » n’ont pas été générées.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Les métadonnées de sérialisation pour le type n’ont pas été générées.</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../Strings.resx"> <body> <trans-unit id="ContextClassesMustBePartialMessageFormat"> <source>Derived 'JsonSerializerContext' type '{0}' specifies JSON-serializable types. The type and all containing types must be made partial to kick off source generation.</source> <target state="translated">Le type 'JsonSerializerContext' dérivé '{0}' spécifie des types Sérialisables JSON. Le type et tous les types contenants doivent être rendus partiels pour lancer la génération de la source.</target> <note /> </trans-unit> <trans-unit id="ContextClassesMustBePartialTitle"> <source>Derived 'JsonSerializerContext' types and all containing types must be partial.</source> <target state="translated">Les types dérivés 'JsonSerializerContext' et tous les types conteneurs doivent être partiels.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidFormat"> <source>The data extension property '{0}.{1}' is invalid. It must implement 'IDictionary&lt;string, JsonElement&gt;' or 'IDictionary&lt;string, object&gt;', or be 'JsonObject'.</source> <target state="translated">La propriété d'extension de données '{0}.{1}' n'est pas valide. Elle doit mettre en œuvre 'IDictionary&lt;string, JsonElement&gt;' ou 'IDictionary&lt;string, object&gt;', ou être 'JsonObject'.</target> <note /> </trans-unit> <trans-unit id="DataExtensionPropertyInvalidTitle"> <source>Data extension property type invalid.</source> <target state="translated">Type de propriété d’extension de données non valide</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameMessageFormat"> <source>There are multiple types named {0}. Source was generated for the first one detected. Use 'JsonSerializableAttribute.TypeInfoPropertyName' to resolve this collision.</source> <target state="translated">Plusieurs types nommés {0}. La source a été générée pour la première détection détectée. Utilisez « JsonSerializableAttribute.TypeInfoPropertyName » pour résoudre cette collision.</target> <note /> </trans-unit> <trans-unit id="DuplicateTypeNameTitle"> <source>Duplicate type name.</source> <target state="translated">Nom de type dupliqué.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedFormat"> <source>The member '{0}.{1}' has been annotated with the JsonIncludeAttribute but is not visible to the source generator.</source> <target state="translated">Le membre '{0}.{1}' a été annoté avec JsonIncludeAttribute mais n’est pas visible pour le générateur source.</target> <note /> </trans-unit> <trans-unit id="InaccessibleJsonIncludePropertiesNotSupportedTitle"> <source>Inaccessible properties annotated with the JsonIncludeAttribute are not supported in source generation mode.</source> <target state="translated">Les propriétés inaccessibles annotées avec JsonIncludeAttribute ne sont pas prises en charge en mode de génération de source.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedFormat"> <source>The type '{0}' defines init-only properties, deserialization of which is currently not supported in source generation mode.</source> <target state="translated">Le type' {0}' définit des propriétés init uniquement, dont la désérialisation n'est actuellement pas prise en charge en mode de génération de source.</target> <note /> </trans-unit> <trans-unit id="InitOnlyPropertyDeserializationNotSupportedTitle"> <source>Deserialization of init-only properties is currently not supported in source generation mode.</source> <target state="translated">La désérialisation des propriétés d’initialisation uniquement n’est actuellement pas prise en charge en mode de génération de source.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeFormat"> <source>Type '{0}' has multiple constructors annotated with 'JsonConstructorAttribute'.</source> <target state="translated">Le type' {0} 'a plusieurs constructeurs annotés avec’JsonConstructorAttribute'.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonConstructorAttributeTitle"> <source>Type has multiple constructors annotated with JsonConstructorAttribute.</source> <target state="translated">Le type a plusieurs constructeurs annotés avec JsonConstructorAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeFormat"> <source>Type '{0}' has multiple members annotated with 'JsonExtensionDataAttribute'.</source> <target state="translated">Le type '{0}' comporte plusieurs membres annotés avec JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="MultipleJsonExtensionDataAttributeTitle"> <source>Type has multiple members annotated with JsonExtensionDataAttribute.</source> <target state="translated">Le type comporte plusieurs membres annotés avec JsonExtensionDataAttribute.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedMessageFormat"> <source>Did not generate serialization metadata for type '{0}'.</source> <target state="translated">Les métadonnées de sérialisation pour le type « {0} » n’ont pas été générées.</target> <note /> </trans-unit> <trans-unit id="TypeNotSupportedTitle"> <source>Did not generate serialization metadata for type.</source> <target state="translated">Les métadonnées de sérialisation pour le type n’ont pas été générées.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/tests/JIT/Generics/Instantiation/delegates/Delegate013.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Threading; internal delegate T GenDelegate<T>(T p1, out T p2); internal interface IFoo { int Function(int i, out int j); } internal class Foo : IFoo { public int Function(int i, out int j) { j = i; return i; } } internal class Test_Delegate013 { public static int Main() { int i, j; IFoo inst = new Foo(); GenDelegate<int> MyDelegate = new GenDelegate<int>(inst.Function); i = MyDelegate(10, out j); if ((i != 10) || (j != 10)) { Console.WriteLine("Failed Sync Invokation"); return 1; } Console.WriteLine("Test Passes"); return 100; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Threading; internal delegate T GenDelegate<T>(T p1, out T p2); internal interface IFoo { int Function(int i, out int j); } internal class Foo : IFoo { public int Function(int i, out int j) { j = i; return i; } } internal class Test_Delegate013 { public static int Main() { int i, j; IFoo inst = new Foo(); GenDelegate<int> MyDelegate = new GenDelegate<int>(inst.Function); i = MyDelegate(10, out j); if ((i != 10) || (j != 10)) { Console.WriteLine("Failed Sync Invokation"); return 1; } Console.WriteLine("Test Passes"); return 100; } }
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Xml.XPath.XDocument/ref/System.Xml.XPath.XDocument.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ------------------------------------------------------------------------------ // Changes to this file must follow the https://aka.ms/api-review process. // ------------------------------------------------------------------------------ namespace System.Xml.XPath { public static partial class Extensions { public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.Linq.XNode node) { throw null; } public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.Linq.XNode node, System.Xml.XmlNameTable? nameTable) { throw null; } public static object XPathEvaluate(this System.Xml.Linq.XNode node, string expression) { throw null; } public static object XPathEvaluate(this System.Xml.Linq.XNode node, string expression, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } public static System.Xml.Linq.XElement? XPathSelectElement(this System.Xml.Linq.XNode node, string expression) { throw null; } public static System.Xml.Linq.XElement? XPathSelectElement(this System.Xml.Linq.XNode node, string expression, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> XPathSelectElements(this System.Xml.Linq.XNode node, string expression) { throw null; } public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> XPathSelectElements(this System.Xml.Linq.XNode node, string expression, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } } public static partial class XDocumentExtensions { public static System.Xml.XPath.IXPathNavigable ToXPathNavigable(this System.Xml.Linq.XNode node) { throw null; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ------------------------------------------------------------------------------ // Changes to this file must follow the https://aka.ms/api-review process. // ------------------------------------------------------------------------------ namespace System.Xml.XPath { public static partial class Extensions { public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.Linq.XNode node) { throw null; } public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.Linq.XNode node, System.Xml.XmlNameTable? nameTable) { throw null; } public static object XPathEvaluate(this System.Xml.Linq.XNode node, string expression) { throw null; } public static object XPathEvaluate(this System.Xml.Linq.XNode node, string expression, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } public static System.Xml.Linq.XElement? XPathSelectElement(this System.Xml.Linq.XNode node, string expression) { throw null; } public static System.Xml.Linq.XElement? XPathSelectElement(this System.Xml.Linq.XNode node, string expression, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> XPathSelectElements(this System.Xml.Linq.XNode node, string expression) { throw null; } public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> XPathSelectElements(this System.Xml.Linq.XNode node, string expression, System.Xml.IXmlNamespaceResolver? resolver) { throw null; } } public static partial class XDocumentExtensions { public static System.Xml.XPath.IXPathNavigable ToXPathNavigable(this System.Xml.Linq.XNode node) { throw null; } } }
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/tests/JIT/HardwareIntrinsics/Arm/Shared/_ImmTernaryOpTestTemplate.template
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void {TestName}() { var test = new {TemplateName}TernaryOpTest__{TestName}(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if ({LoadIsa}.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if ({LoadIsa}.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if ({LoadIsa}.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if ({LoadIsa}.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if ({LoadIsa}.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if ({LoadIsa}.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if ({LoadIsa}.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if ({LoadIsa}.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class {TemplateName}TernaryOpTest__{TestName} { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] inArray3; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle inHandle3; private GCHandle outHandle; private ulong alignment; public DataTable({Op1BaseType}[] inArray1, {Op2BaseType}[] inArray2, {Op3BaseType}[] inArray3, {RetBaseType}[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<{Op1BaseType}>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<{Op2BaseType}>(); int sizeOfinArray3 = inArray3.Length * Unsafe.SizeOf<{Op3BaseType}>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<{RetBaseType}>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfinArray3 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inArray3 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.inHandle3 = GCHandle.Alloc(this.inArray3, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<{Op1BaseType}, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<{Op2BaseType}, byte>(ref inArray2[0]), (uint)sizeOfinArray2); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray3Ptr), ref Unsafe.As<{Op3BaseType}, byte>(ref inArray3[0]), (uint)sizeOfinArray3); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray3Ptr => Align((byte*)(inHandle3.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); inHandle3.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public {Op1VectorType}<{Op1BaseType}> _fld1; public {Op2VectorType}<{Op2BaseType}> _fld2; public {Op3VectorType}<{Op3BaseType}> _fld3; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = {NextValueOp1}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op1VectorType}<{Op1BaseType}>, byte>(ref testStruct._fld1), ref Unsafe.As<{Op1BaseType}, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = {NextValueOp2}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op2VectorType}<{Op2BaseType}>, byte>(ref testStruct._fld2), ref Unsafe.As<{Op2BaseType}, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = {NextValueOp3}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op3VectorType}<{Op3BaseType}>, byte>(ref testStruct._fld3), ref Unsafe.As<{Op3BaseType}, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>()); return testStruct; } public void RunStructFldScenario({TemplateName}TernaryOpTest__{TestName} testClass) { var result = {Isa}.{Method}(_fld1, _fld2, _fld3, {Imm}); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load({TemplateName}TernaryOpTest__{TestName} testClass) { fixed ({Op1VectorType}<{Op1BaseType}>* pFld1 = &_fld1) fixed ({Op2VectorType}<{Op2BaseType}>* pFld2 = &_fld2) fixed ({Op3VectorType}<{Op3BaseType}>* pFld3 = &_fld3) { var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(pFld1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(pFld2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(pFld3)), {Imm} ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = {LargestVectorSize}; private static readonly int Op1ElementCount = Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>() / sizeof({Op1BaseType}); private static readonly int Op2ElementCount = Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>() / sizeof({Op2BaseType}); private static readonly int Op3ElementCount = Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>() / sizeof({Op3BaseType}); private static readonly int RetElementCount = Unsafe.SizeOf<{RetVectorType}<{RetBaseType}>>() / sizeof({RetBaseType}); private static readonly byte Imm = {Imm}; private static {Op1BaseType}[] _data1 = new {Op1BaseType}[Op1ElementCount]; private static {Op2BaseType}[] _data2 = new {Op2BaseType}[Op2ElementCount]; private static {Op3BaseType}[] _data3 = new {Op3BaseType}[Op3ElementCount]; private static {Op1VectorType}<{Op1BaseType}> _clsVar1; private static {Op2VectorType}<{Op2BaseType}> _clsVar2; private static {Op3VectorType}<{Op3BaseType}> _clsVar3; private {Op1VectorType}<{Op1BaseType}> _fld1; private {Op2VectorType}<{Op2BaseType}> _fld2; private {Op3VectorType}<{Op3BaseType}> _fld3; private DataTable _dataTable; static {TemplateName}TernaryOpTest__{TestName}() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = {NextValueOp1}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op1VectorType}<{Op1BaseType}>, byte>(ref _clsVar1), ref Unsafe.As<{Op1BaseType}, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = {NextValueOp2}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op2VectorType}<{Op2BaseType}>, byte>(ref _clsVar2), ref Unsafe.As<{Op2BaseType}, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = {NextValueOp3}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op3VectorType}<{Op3BaseType}>, byte>(ref _clsVar3), ref Unsafe.As<{Op3BaseType}, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>()); } public {TemplateName}TernaryOpTest__{TestName}() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = {NextValueOp1}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op1VectorType}<{Op1BaseType}>, byte>(ref _fld1), ref Unsafe.As<{Op1BaseType}, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = {NextValueOp2}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op2VectorType}<{Op2BaseType}>, byte>(ref _fld2), ref Unsafe.As<{Op2BaseType}, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = {NextValueOp3}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op3VectorType}<{Op3BaseType}>, byte>(ref _fld3), ref Unsafe.As<{Op3BaseType}, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = {NextValueOp1}; } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = {NextValueOp2}; } for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = {NextValueOp3}; } _dataTable = new DataTable(_data1, _data2, _data3, new {RetBaseType}[RetElementCount], LargestVectorSize); } public bool IsSupported => {Isa}.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = {Isa}.{Method}( Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr), Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr), Unsafe.Read<{Op3VectorType}<{Op3BaseType}>>(_dataTable.inArray3Ptr), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>), typeof(byte) }) .Invoke(null, new object[] { Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr), Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr), Unsafe.Read<{Op3VectorType}<{Op3BaseType}>>(_dataTable.inArray3Ptr), (byte){Imm} }); Unsafe.Write(_dataTable.outArrayPtr, ({RetVectorType}<{RetBaseType}>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>), typeof(byte) }) .Invoke(null, new object[] { {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr)), (byte){Imm} }); Unsafe.Write(_dataTable.outArrayPtr, ({RetVectorType}<{RetBaseType}>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = {Isa}.{Method}( _clsVar1, _clsVar2, _clsVar3, {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed ({Op1VectorType}<{Op1BaseType}>* pClsVar1 = &_clsVar1) fixed ({Op2VectorType}<{Op2BaseType}>* pClsVar2 = &_clsVar2) fixed ({Op3VectorType}<{Op3BaseType}>* pClsVar3 = &_clsVar3) { var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(pClsVar1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(pClsVar2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(pClsVar3)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read<{Op3VectorType}<{Op3BaseType}>>(_dataTable.inArray3Ptr); var result = {Isa}.{Method}(op1, op2, op3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)); var op2 = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)); var op3 = {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr)); var result = {Isa}.{Method}(op1, op2, op3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new {TemplateName}TernaryOpTest__{TestName}(); var result = {Isa}.{Method}(test._fld1, test._fld2, test._fld3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new {TemplateName}TernaryOpTest__{TestName}(); fixed ({Op1VectorType}<{Op1BaseType}>* pFld1 = &test._fld1) fixed ({Op2VectorType}<{Op2BaseType}>* pFld2 = &test._fld2) fixed ({Op3VectorType}<{Op3BaseType}>* pFld3 = &test._fld3) { var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(pFld1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(pFld2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(pFld3)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = {Isa}.{Method}(_fld1, _fld2, _fld3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed ({Op1VectorType}<{Op1BaseType}>* pFld1 = &_fld1) fixed ({Op2VectorType}<{Op2BaseType}>* pFld2 = &_fld2) fixed ({Op3VectorType}<{Op3BaseType}>* pFld3 = &_fld3) { var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(pFld1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(pFld2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(pFld3)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = {Isa}.{Method}(test._fld1, test._fld2, test._fld3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(&test._fld1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(&test._fld2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(&test._fld3)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult({Op1VectorType}<{Op1BaseType}> op1, {Op2VectorType}<{Op2BaseType}> op2, {Op3VectorType}<{Op3BaseType}> op3, void* result, [CallerMemberName] string method = "") { {Op1BaseType}[] inArray1 = new {Op1BaseType}[Op1ElementCount]; {Op2BaseType}[] inArray2 = new {Op2BaseType}[Op2ElementCount]; {Op3BaseType}[] inArray3 = new {Op3BaseType}[Op3ElementCount]; {RetBaseType}[] outArray = new {RetBaseType}[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<{Op1BaseType}, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<{Op2BaseType}, byte>(ref inArray2[0]), op2); Unsafe.WriteUnaligned(ref Unsafe.As<{Op3BaseType}, byte>(ref inArray3[0]), op3); Unsafe.CopyBlockUnaligned(ref Unsafe.As<{RetBaseType}, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<{RetVectorType}<{RetBaseType}>>()); ValidateResult(inArray1, inArray2, inArray3, outArray, method); } private void ValidateResult(void* op1, void* op2, void* op3, void* result, [CallerMemberName] string method = "") { {Op1BaseType}[] inArray1 = new {Op1BaseType}[Op1ElementCount]; {Op2BaseType}[] inArray2 = new {Op2BaseType}[Op2ElementCount]; {Op3BaseType}[] inArray3 = new {Op3BaseType}[Op3ElementCount]; {RetBaseType}[] outArray = new {RetBaseType}[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op1BaseType}, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op2BaseType}, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op3BaseType}, byte>(ref inArray3[0]), ref Unsafe.AsRef<byte>(op3), (uint)Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<{RetBaseType}, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<{RetVectorType}<{RetBaseType}>>()); ValidateResult(inArray1, inArray2, inArray3, outArray, method); } private void ValidateResult({Op1BaseType}[] firstOp, {Op2BaseType}[] secondOp, {Op3BaseType}[] thirdOp, {RetBaseType}[] result, [CallerMemberName] string method = "") { bool succeeded = true; {TemplateValidationLogic} if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof({Isa})}.{nameof({Isa}.{Method})}<{RetBaseType}>({Op1VectorType}<{Op1BaseType}>, {Op2VectorType}<{Op2BaseType}>, {Op3VectorType}<{Op3BaseType}>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void {TestName}() { var test = new {TemplateName}TernaryOpTest__{TestName}(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if ({LoadIsa}.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if ({LoadIsa}.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if ({LoadIsa}.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if ({LoadIsa}.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if ({LoadIsa}.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if ({LoadIsa}.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if ({LoadIsa}.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if ({LoadIsa}.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class {TemplateName}TernaryOpTest__{TestName} { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] inArray3; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle inHandle3; private GCHandle outHandle; private ulong alignment; public DataTable({Op1BaseType}[] inArray1, {Op2BaseType}[] inArray2, {Op3BaseType}[] inArray3, {RetBaseType}[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<{Op1BaseType}>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<{Op2BaseType}>(); int sizeOfinArray3 = inArray3.Length * Unsafe.SizeOf<{Op3BaseType}>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<{RetBaseType}>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfinArray3 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inArray3 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.inHandle3 = GCHandle.Alloc(this.inArray3, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<{Op1BaseType}, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<{Op2BaseType}, byte>(ref inArray2[0]), (uint)sizeOfinArray2); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray3Ptr), ref Unsafe.As<{Op3BaseType}, byte>(ref inArray3[0]), (uint)sizeOfinArray3); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray3Ptr => Align((byte*)(inHandle3.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); inHandle3.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public {Op1VectorType}<{Op1BaseType}> _fld1; public {Op2VectorType}<{Op2BaseType}> _fld2; public {Op3VectorType}<{Op3BaseType}> _fld3; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = {NextValueOp1}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op1VectorType}<{Op1BaseType}>, byte>(ref testStruct._fld1), ref Unsafe.As<{Op1BaseType}, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = {NextValueOp2}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op2VectorType}<{Op2BaseType}>, byte>(ref testStruct._fld2), ref Unsafe.As<{Op2BaseType}, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = {NextValueOp3}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op3VectorType}<{Op3BaseType}>, byte>(ref testStruct._fld3), ref Unsafe.As<{Op3BaseType}, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>()); return testStruct; } public void RunStructFldScenario({TemplateName}TernaryOpTest__{TestName} testClass) { var result = {Isa}.{Method}(_fld1, _fld2, _fld3, {Imm}); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load({TemplateName}TernaryOpTest__{TestName} testClass) { fixed ({Op1VectorType}<{Op1BaseType}>* pFld1 = &_fld1) fixed ({Op2VectorType}<{Op2BaseType}>* pFld2 = &_fld2) fixed ({Op3VectorType}<{Op3BaseType}>* pFld3 = &_fld3) { var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(pFld1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(pFld2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(pFld3)), {Imm} ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, _fld3, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = {LargestVectorSize}; private static readonly int Op1ElementCount = Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>() / sizeof({Op1BaseType}); private static readonly int Op2ElementCount = Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>() / sizeof({Op2BaseType}); private static readonly int Op3ElementCount = Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>() / sizeof({Op3BaseType}); private static readonly int RetElementCount = Unsafe.SizeOf<{RetVectorType}<{RetBaseType}>>() / sizeof({RetBaseType}); private static readonly byte Imm = {Imm}; private static {Op1BaseType}[] _data1 = new {Op1BaseType}[Op1ElementCount]; private static {Op2BaseType}[] _data2 = new {Op2BaseType}[Op2ElementCount]; private static {Op3BaseType}[] _data3 = new {Op3BaseType}[Op3ElementCount]; private static {Op1VectorType}<{Op1BaseType}> _clsVar1; private static {Op2VectorType}<{Op2BaseType}> _clsVar2; private static {Op3VectorType}<{Op3BaseType}> _clsVar3; private {Op1VectorType}<{Op1BaseType}> _fld1; private {Op2VectorType}<{Op2BaseType}> _fld2; private {Op3VectorType}<{Op3BaseType}> _fld3; private DataTable _dataTable; static {TemplateName}TernaryOpTest__{TestName}() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = {NextValueOp1}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op1VectorType}<{Op1BaseType}>, byte>(ref _clsVar1), ref Unsafe.As<{Op1BaseType}, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = {NextValueOp2}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op2VectorType}<{Op2BaseType}>, byte>(ref _clsVar2), ref Unsafe.As<{Op2BaseType}, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = {NextValueOp3}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op3VectorType}<{Op3BaseType}>, byte>(ref _clsVar3), ref Unsafe.As<{Op3BaseType}, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>()); } public {TemplateName}TernaryOpTest__{TestName}() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = {NextValueOp1}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op1VectorType}<{Op1BaseType}>, byte>(ref _fld1), ref Unsafe.As<{Op1BaseType}, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = {NextValueOp2}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op2VectorType}<{Op2BaseType}>, byte>(ref _fld2), ref Unsafe.As<{Op2BaseType}, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>()); for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = {NextValueOp3}; } Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op3VectorType}<{Op3BaseType}>, byte>(ref _fld3), ref Unsafe.As<{Op3BaseType}, byte>(ref _data3[0]), (uint)Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = {NextValueOp1}; } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = {NextValueOp2}; } for (var i = 0; i < Op3ElementCount; i++) { _data3[i] = {NextValueOp3}; } _dataTable = new DataTable(_data1, _data2, _data3, new {RetBaseType}[RetElementCount], LargestVectorSize); } public bool IsSupported => {Isa}.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = {Isa}.{Method}( Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr), Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr), Unsafe.Read<{Op3VectorType}<{Op3BaseType}>>(_dataTable.inArray3Ptr), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>), typeof(byte) }) .Invoke(null, new object[] { Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr), Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr), Unsafe.Read<{Op3VectorType}<{Op3BaseType}>>(_dataTable.inArray3Ptr), (byte){Imm} }); Unsafe.Write(_dataTable.outArrayPtr, ({RetVectorType}<{RetBaseType}>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>), typeof(byte) }) .Invoke(null, new object[] { {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr)), (byte){Imm} }); Unsafe.Write(_dataTable.outArrayPtr, ({RetVectorType}<{RetBaseType}>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.inArray3Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = {Isa}.{Method}( _clsVar1, _clsVar2, _clsVar3, {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed ({Op1VectorType}<{Op1BaseType}>* pClsVar1 = &_clsVar1) fixed ({Op2VectorType}<{Op2BaseType}>* pClsVar2 = &_clsVar2) fixed ({Op3VectorType}<{Op3BaseType}>* pClsVar3 = &_clsVar3) { var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(pClsVar1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(pClsVar2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(pClsVar3)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _clsVar3, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr); var op3 = Unsafe.Read<{Op3VectorType}<{Op3BaseType}>>(_dataTable.inArray3Ptr); var result = {Isa}.{Method}(op1, op2, op3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)); var op2 = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)); var op3 = {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr)); var result = {Isa}.{Method}(op1, op2, op3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, op3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new {TemplateName}TernaryOpTest__{TestName}(); var result = {Isa}.{Method}(test._fld1, test._fld2, test._fld3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new {TemplateName}TernaryOpTest__{TestName}(); fixed ({Op1VectorType}<{Op1BaseType}>* pFld1 = &test._fld1) fixed ({Op2VectorType}<{Op2BaseType}>* pFld2 = &test._fld2) fixed ({Op3VectorType}<{Op3BaseType}>* pFld3 = &test._fld3) { var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(pFld1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(pFld2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(pFld3)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = {Isa}.{Method}(_fld1, _fld2, _fld3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed ({Op1VectorType}<{Op1BaseType}>* pFld1 = &_fld1) fixed ({Op2VectorType}<{Op2BaseType}>* pFld2 = &_fld2) fixed ({Op3VectorType}<{Op3BaseType}>* pFld3 = &_fld3) { var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(pFld1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(pFld2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(pFld3)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _fld3, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = {Isa}.{Method}(test._fld1, test._fld2, test._fld3, {Imm}); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = {Isa}.{Method}( {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(&test._fld1)), {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(&test._fld2)), {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(&test._fld3)), {Imm} ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, test._fld3, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult({Op1VectorType}<{Op1BaseType}> op1, {Op2VectorType}<{Op2BaseType}> op2, {Op3VectorType}<{Op3BaseType}> op3, void* result, [CallerMemberName] string method = "") { {Op1BaseType}[] inArray1 = new {Op1BaseType}[Op1ElementCount]; {Op2BaseType}[] inArray2 = new {Op2BaseType}[Op2ElementCount]; {Op3BaseType}[] inArray3 = new {Op3BaseType}[Op3ElementCount]; {RetBaseType}[] outArray = new {RetBaseType}[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<{Op1BaseType}, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<{Op2BaseType}, byte>(ref inArray2[0]), op2); Unsafe.WriteUnaligned(ref Unsafe.As<{Op3BaseType}, byte>(ref inArray3[0]), op3); Unsafe.CopyBlockUnaligned(ref Unsafe.As<{RetBaseType}, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<{RetVectorType}<{RetBaseType}>>()); ValidateResult(inArray1, inArray2, inArray3, outArray, method); } private void ValidateResult(void* op1, void* op2, void* op3, void* result, [CallerMemberName] string method = "") { {Op1BaseType}[] inArray1 = new {Op1BaseType}[Op1ElementCount]; {Op2BaseType}[] inArray2 = new {Op2BaseType}[Op2ElementCount]; {Op3BaseType}[] inArray3 = new {Op3BaseType}[Op3ElementCount]; {RetBaseType}[] outArray = new {RetBaseType}[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op1BaseType}, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<{Op1VectorType}<{Op1BaseType}>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op2BaseType}, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<{Op2VectorType}<{Op2BaseType}>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<{Op3BaseType}, byte>(ref inArray3[0]), ref Unsafe.AsRef<byte>(op3), (uint)Unsafe.SizeOf<{Op3VectorType}<{Op3BaseType}>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<{RetBaseType}, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<{RetVectorType}<{RetBaseType}>>()); ValidateResult(inArray1, inArray2, inArray3, outArray, method); } private void ValidateResult({Op1BaseType}[] firstOp, {Op2BaseType}[] secondOp, {Op3BaseType}[] thirdOp, {RetBaseType}[] result, [CallerMemberName] string method = "") { bool succeeded = true; {TemplateValidationLogic} if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof({Isa})}.{nameof({Isa}.{Method})}<{RetBaseType}>({Op1VectorType}<{Op1BaseType}>, {Op2VectorType}<{Op2BaseType}>, {Op3VectorType}<{Op3BaseType}>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($"secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: ({string.Join(", ", thirdOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/tests/JIT/Regression/JitBlue/GitHub_39823/GitHub_39823.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>True</Optimize> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>True</Optimize> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest113/Generated113.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated113.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated113.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/tests/JIT/opt/CSE/GitHub_16065b.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="GitHub_16065b.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="GitHub_16065b.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/libraries/System.Drawing.Common/tests/mono/System.Drawing.Imaging/IconCodecTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // ICO Codec class testing unit // // Authors: // Jordi Mas i Hern?ndez ([email protected]) // Sebastien Pouliot <[email protected]> // // Copyright (C) 2006-2007 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using Xunit; namespace MonoTests.System.Drawing.Imaging { public class IconCodecTest { [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Image16() { string sInFile = Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"); using (Image image = Image.FromFile(sInFile)) { Assert.True(image.RawFormat.Equals(ImageFormat.Icon)); // note that image is "promoted" to 32bits Assert.Equal(PixelFormat.Format32bppArgb, image.PixelFormat); Assert.Equal(73746, image.Flags); using (Bitmap bmp = new Bitmap(image)) { Assert.True(bmp.RawFormat.Equals(ImageFormat.MemoryBmp)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(2, bmp.Flags); Assert.Equal(0, bmp.Palette.Entries.Length); } } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Image16_PaletteEntries_Unix() { string sInFile = Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"); using (Image image = Image.FromFile(sInFile)) { // The values are inconsistent across Windows & Unix: GDI+ returns 0, libgdiplus returns 16. Assert.Equal(16, image.Palette.Entries.Length); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Image16_PaletteEntries_Windows() { string sInFile = Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"); using (Image image = Image.FromFile(sInFile)) { // The values are inconsistent across Windows & Unix: GDI+ returns 0, libgdiplus returns 16. Assert.Equal(0, image.Palette.Entries.Length); } } // simley.ico has 48x48, 32x32 and 16x16 images (in that order) [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap16Features() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); // note that image is "promoted" to 32bits Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(16, bmp.Width); Assert.Equal(16, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(16, rect.Width); Assert.Equal(16, rect.Height); Assert.Equal(16, bmp.Size.Width); Assert.Equal(16, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap16Features_Palette_Entries_Unix() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values are inconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(16, bmp.Palette.Entries.Length); Assert.Equal(-16777216, bmp.Palette.Entries[0].ToArgb()); Assert.Equal(-16777216, bmp.Palette.Entries[1].ToArgb()); Assert.Equal(-16744448, bmp.Palette.Entries[2].ToArgb()); Assert.Equal(-8355840, bmp.Palette.Entries[3].ToArgb()); Assert.Equal(-16777088, bmp.Palette.Entries[4].ToArgb()); Assert.Equal(-8388480, bmp.Palette.Entries[5].ToArgb()); Assert.Equal(-16744320, bmp.Palette.Entries[6].ToArgb()); Assert.Equal(-4144960, bmp.Palette.Entries[7].ToArgb()); Assert.Equal(-8355712, bmp.Palette.Entries[8].ToArgb()); Assert.Equal(-65536, bmp.Palette.Entries[9].ToArgb()); Assert.Equal(-16711936, bmp.Palette.Entries[10].ToArgb()); Assert.Equal(-256, bmp.Palette.Entries[11].ToArgb()); Assert.Equal(-16776961, bmp.Palette.Entries[12].ToArgb()); Assert.Equal(-65281, bmp.Palette.Entries[13].ToArgb()); Assert.Equal(-16711681, bmp.Palette.Entries[14].ToArgb()); Assert.Equal(-1, bmp.Palette.Entries[15].ToArgb()); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Flaky - ArgumentException")] public void Bitmap16Features_Palette_Entries_Windows() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values are inconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap16Pixels() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(0, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(-256, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(-256, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(-8355840, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(-256, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(-256, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(-256, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-8355840, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 12).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap16Data() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(16, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(0, *(scan + 0)); Assert.Equal(0, *(scan + 13)); Assert.Equal(0, *(scan + 26)); Assert.Equal(0, *(scan + 39)); Assert.Equal(0, *(scan + 52)); Assert.Equal(0, *(scan + 65)); Assert.Equal(0, *(scan + 78)); Assert.Equal(0, *(scan + 91)); Assert.Equal(0, *(scan + 104)); Assert.Equal(0, *(scan + 117)); Assert.Equal(0, *(scan + 130)); Assert.Equal(0, *(scan + 143)); Assert.Equal(0, *(scan + 156)); Assert.Equal(255, *(scan + 169)); Assert.Equal(0, *(scan + 182)); Assert.Equal(0, *(scan + 195)); Assert.Equal(255, *(scan + 208)); Assert.Equal(255, *(scan + 221)); Assert.Equal(0, *(scan + 234)); Assert.Equal(128, *(scan + 247)); Assert.Equal(0, *(scan + 260)); Assert.Equal(0, *(scan + 273)); Assert.Equal(0, *(scan + 286)); Assert.Equal(255, *(scan + 299)); Assert.Equal(0, *(scan + 312)); Assert.Equal(128, *(scan + 325)); Assert.Equal(0, *(scan + 338)); Assert.Equal(0, *(scan + 351)); Assert.Equal(255, *(scan + 364)); Assert.Equal(0, *(scan + 377)); Assert.Equal(0, *(scan + 390)); Assert.Equal(255, *(scan + 403)); Assert.Equal(255, *(scan + 416)); Assert.Equal(0, *(scan + 429)); Assert.Equal(255, *(scan + 442)); Assert.Equal(0, *(scan + 455)); Assert.Equal(0, *(scan + 468)); Assert.Equal(0, *(scan + 481)); Assert.Equal(255, *(scan + 494)); Assert.Equal(0, *(scan + 507)); Assert.Equal(0, *(scan + 520)); Assert.Equal(0, *(scan + 533)); Assert.Equal(0, *(scan + 546)); Assert.Equal(255, *(scan + 559)); Assert.Equal(0, *(scan + 572)); Assert.Equal(0, *(scan + 585)); Assert.Equal(255, *(scan + 598)); Assert.Equal(0, *(scan + 611)); Assert.Equal(0, *(scan + 624)); Assert.Equal(0, *(scan + 637)); Assert.Equal(128, *(scan + 650)); Assert.Equal(0, *(scan + 663)); Assert.Equal(0, *(scan + 676)); Assert.Equal(0, *(scan + 689)); Assert.Equal(0, *(scan + 702)); Assert.Equal(0, *(scan + 715)); Assert.Equal(0, *(scan + 728)); Assert.Equal(0, *(scan + 741)); Assert.Equal(0, *(scan + 754)); Assert.Equal(0, *(scan + 767)); } } finally { bmp.UnlockBits(data); } } } // VisualPng.ico only has a 32x32 size available [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap32Features() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(32, bmp.Width); Assert.Equal(32, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(32, rect.Width); Assert.Equal(32, rect.Height); Assert.Equal(32, bmp.Size.Width); Assert.Equal(32, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap32Features_PaletteEntries_Unix() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values areinconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(16, bmp.Palette.Entries.Length); Assert.Equal(-16777216, bmp.Palette.Entries[0].ToArgb()); Assert.Equal(-8388608, bmp.Palette.Entries[1].ToArgb()); Assert.Equal(-16744448, bmp.Palette.Entries[2].ToArgb()); Assert.Equal(-8355840, bmp.Palette.Entries[3].ToArgb()); Assert.Equal(-16777088, bmp.Palette.Entries[4].ToArgb()); Assert.Equal(-8388480, bmp.Palette.Entries[5].ToArgb()); Assert.Equal(-16744320, bmp.Palette.Entries[6].ToArgb()); Assert.Equal(-4144960, bmp.Palette.Entries[7].ToArgb()); Assert.Equal(-8355712, bmp.Palette.Entries[8].ToArgb()); Assert.Equal(-65536, bmp.Palette.Entries[9].ToArgb()); Assert.Equal(-16711936, bmp.Palette.Entries[10].ToArgb()); Assert.Equal(-256, bmp.Palette.Entries[11].ToArgb()); Assert.Equal(-16776961, bmp.Palette.Entries[12].ToArgb()); Assert.Equal(-65281, bmp.Palette.Entries[13].ToArgb()); Assert.Equal(-16711681, bmp.Palette.Entries[14].ToArgb()); Assert.Equal(-1, bmp.Palette.Entries[15].ToArgb()); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap32Features_PaletteEntries_Windows() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values areinconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap32Pixels() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(0, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(-8388608, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 16).ToArgb()); Assert.Equal(-65536, bmp.GetPixel(8, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-8388608, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 16).ToArgb()); Assert.Equal(-65536, bmp.GetPixel(12, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 20).ToArgb()); Assert.Equal(-65536, bmp.GetPixel(16, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 4).ToArgb()); Assert.Equal(-8388608, bmp.GetPixel(20, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(24, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 20).ToArgb()); Assert.Equal(-8388608, bmp.GetPixel(28, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 28).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap32Data() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(32, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(0, *(scan + 0)); Assert.Equal(0, *(scan + 13)); Assert.Equal(0, *(scan + 26)); Assert.Equal(0, *(scan + 39)); Assert.Equal(0, *(scan + 52)); Assert.Equal(0, *(scan + 65)); Assert.Equal(0, *(scan + 78)); Assert.Equal(0, *(scan + 91)); Assert.Equal(0, *(scan + 104)); Assert.Equal(0, *(scan + 117)); Assert.Equal(0, *(scan + 130)); Assert.Equal(0, *(scan + 143)); Assert.Equal(0, *(scan + 156)); Assert.Equal(0, *(scan + 169)); Assert.Equal(0, *(scan + 182)); Assert.Equal(0, *(scan + 195)); Assert.Equal(0, *(scan + 208)); Assert.Equal(0, *(scan + 221)); Assert.Equal(0, *(scan + 234)); Assert.Equal(0, *(scan + 247)); Assert.Equal(0, *(scan + 260)); Assert.Equal(0, *(scan + 273)); Assert.Equal(0, *(scan + 286)); Assert.Equal(0, *(scan + 299)); Assert.Equal(0, *(scan + 312)); Assert.Equal(0, *(scan + 325)); Assert.Equal(0, *(scan + 338)); Assert.Equal(0, *(scan + 351)); Assert.Equal(0, *(scan + 364)); Assert.Equal(0, *(scan + 377)); Assert.Equal(0, *(scan + 390)); Assert.Equal(0, *(scan + 403)); Assert.Equal(0, *(scan + 416)); Assert.Equal(0, *(scan + 429)); Assert.Equal(0, *(scan + 442)); Assert.Equal(0, *(scan + 455)); Assert.Equal(0, *(scan + 468)); Assert.Equal(0, *(scan + 481)); Assert.Equal(128, *(scan + 494)); Assert.Equal(0, *(scan + 507)); Assert.Equal(0, *(scan + 520)); Assert.Equal(0, *(scan + 533)); Assert.Equal(0, *(scan + 546)); Assert.Equal(0, *(scan + 559)); Assert.Equal(128, *(scan + 572)); Assert.Equal(0, *(scan + 585)); Assert.Equal(0, *(scan + 598)); Assert.Equal(0, *(scan + 611)); Assert.Equal(0, *(scan + 624)); Assert.Equal(0, *(scan + 637)); Assert.Equal(128, *(scan + 650)); Assert.Equal(0, *(scan + 663)); Assert.Equal(0, *(scan + 676)); Assert.Equal(0, *(scan + 689)); Assert.Equal(0, *(scan + 702)); Assert.Equal(0, *(scan + 715)); Assert.Equal(0, *(scan + 728)); Assert.Equal(0, *(scan + 741)); Assert.Equal(0, *(scan + 754)); Assert.Equal(0, *(scan + 767)); Assert.Equal(0, *(scan + 780)); Assert.Equal(0, *(scan + 793)); Assert.Equal(128, *(scan + 806)); Assert.Equal(0, *(scan + 819)); Assert.Equal(0, *(scan + 832)); Assert.Equal(128, *(scan + 845)); Assert.Equal(0, *(scan + 858)); Assert.Equal(0, *(scan + 871)); Assert.Equal(0, *(scan + 884)); } } finally { bmp.UnlockBits(data); } } } // 48x48_one_entry_1bit.ico only has a 48x48 size available [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap48Features() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(48, bmp.Width); Assert.Equal(48, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(48, rect.Width); Assert.Equal(48, rect.Height); Assert.Equal(48, bmp.Size.Width); Assert.Equal(48, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap48Features_Palette_Entries_Unix() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values are inconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(2, bmp.Palette.Entries.Length); Assert.Equal(-16777216, bmp.Palette.Entries[0].ToArgb()); Assert.Equal(-1, bmp.Palette.Entries[1].ToArgb()); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap48Features_Palette_Entries_Windows() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values are inconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap48Pixels() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(-16777216, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 16).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 20).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 24).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 28).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 32).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 40).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(4, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 16).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 20).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 24).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 28).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 32).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(8, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 12).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 16).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 20).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 24).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 28).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(12, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(16, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(16, 8).ToArgb()); Assert.Equal(-1, bmp.GetPixel(16, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 28).ToArgb()); Assert.Equal(-1, bmp.GetPixel(16, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(16, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(16, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 8).ToArgb()); Assert.Equal(-1, bmp.GetPixel(20, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 16).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 20).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 28).ToArgb()); Assert.Equal(-1, bmp.GetPixel(20, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(20, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(24, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(24, 8).ToArgb()); Assert.Equal(-1, bmp.GetPixel(24, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 16).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap48Data() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(48, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(0, *(scan + 0)); Assert.Equal(0, *(scan + 13)); Assert.Equal(0, *(scan + 26)); Assert.Equal(0, *(scan + 39)); Assert.Equal(0, *(scan + 52)); Assert.Equal(0, *(scan + 65)); Assert.Equal(0, *(scan + 78)); Assert.Equal(0, *(scan + 91)); Assert.Equal(0, *(scan + 104)); Assert.Equal(0, *(scan + 117)); Assert.Equal(0, *(scan + 130)); Assert.Equal(0, *(scan + 143)); Assert.Equal(0, *(scan + 156)); Assert.Equal(0, *(scan + 169)); Assert.Equal(0, *(scan + 182)); Assert.Equal(0, *(scan + 195)); Assert.Equal(0, *(scan + 208)); Assert.Equal(0, *(scan + 221)); Assert.Equal(0, *(scan + 234)); Assert.Equal(0, *(scan + 247)); Assert.Equal(0, *(scan + 260)); Assert.Equal(0, *(scan + 273)); Assert.Equal(0, *(scan + 286)); Assert.Equal(255, *(scan + 299)); Assert.Equal(255, *(scan + 312)); Assert.Equal(255, *(scan + 325)); Assert.Equal(255, *(scan + 338)); Assert.Equal(255, *(scan + 351)); Assert.Equal(255, *(scan + 364)); Assert.Equal(255, *(scan + 377)); Assert.Equal(255, *(scan + 390)); Assert.Equal(255, *(scan + 403)); Assert.Equal(255, *(scan + 416)); Assert.Equal(0, *(scan + 429)); Assert.Equal(255, *(scan + 442)); Assert.Equal(255, *(scan + 455)); Assert.Equal(255, *(scan + 468)); Assert.Equal(255, *(scan + 481)); Assert.Equal(255, *(scan + 494)); Assert.Equal(255, *(scan + 507)); Assert.Equal(255, *(scan + 520)); Assert.Equal(255, *(scan + 533)); Assert.Equal(255, *(scan + 546)); Assert.Equal(255, *(scan + 559)); Assert.Equal(0, *(scan + 572)); Assert.Equal(255, *(scan + 585)); Assert.Equal(0, *(scan + 598)); Assert.Equal(0, *(scan + 611)); Assert.Equal(0, *(scan + 624)); Assert.Equal(0, *(scan + 637)); Assert.Equal(0, *(scan + 650)); Assert.Equal(0, *(scan + 663)); Assert.Equal(0, *(scan + 676)); Assert.Equal(0, *(scan + 689)); Assert.Equal(0, *(scan + 702)); Assert.Equal(0, *(scan + 715)); Assert.Equal(255, *(scan + 728)); Assert.Equal(0, *(scan + 741)); Assert.Equal(0, *(scan + 754)); Assert.Equal(0, *(scan + 767)); Assert.Equal(0, *(scan + 780)); Assert.Equal(0, *(scan + 793)); Assert.Equal(0, *(scan + 806)); Assert.Equal(0, *(scan + 819)); Assert.Equal(0, *(scan + 832)); Assert.Equal(0, *(scan + 845)); Assert.Equal(0, *(scan + 858)); Assert.Equal(255, *(scan + 871)); Assert.Equal(0, *(scan + 884)); Assert.Equal(0, *(scan + 897)); Assert.Equal(0, *(scan + 910)); Assert.Equal(0, *(scan + 923)); Assert.Equal(0, *(scan + 936)); } } finally { bmp.UnlockBits(data); } } } // 64x64x256 only has a 64x64 size available [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap64Features() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(64, bmp.Width); Assert.Equal(64, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(64, rect.Width); Assert.Equal(64, rect.Height); Assert.Equal(64, bmp.Size.Width); Assert.Equal(64, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap64Features_Palette_Entries_Unix() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // This value is inconsistent across Windows & Unix: 0 on Windows, 256 on Unix Assert.Equal(256, bmp.Palette.Entries.Length); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap64Features_Palette_Entries_Windows() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // This value is inconsistent across Windows & Unix: 0 on Windows, 256 on Unix Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap64Pixels() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(-65383, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 16).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 20).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 24).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 28).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 32).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 36).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 40).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 44).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 48).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 52).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 56).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 60).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 16).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 20).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 24).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 28).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 32).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 36).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 40).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 44).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 48).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 52).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 60).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 16).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 20).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 24).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 28).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 32).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 36).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 40).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 44).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 48).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 60).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 12).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 16).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 20).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 24).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 28).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 32).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 36).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 40).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap64Data() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(64, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(153, *(scan + 0)); Assert.Equal(0, *(scan + 97)); Assert.Equal(255, *(scan + 194)); Assert.Equal(0, *(scan + 291)); Assert.Equal(0, *(scan + 388)); Assert.Equal(204, *(scan + 485)); Assert.Equal(204, *(scan + 582)); Assert.Equal(0, *(scan + 679)); Assert.Equal(204, *(scan + 776)); Assert.Equal(153, *(scan + 873)); Assert.Equal(0, *(scan + 970)); Assert.Equal(0, *(scan + 1067)); Assert.Equal(153, *(scan + 1164)); Assert.Equal(153, *(scan + 1261)); Assert.Equal(102, *(scan + 1358)); Assert.Equal(0, *(scan + 1455)); Assert.Equal(0, *(scan + 1552)); Assert.Equal(204, *(scan + 1649)); Assert.Equal(153, *(scan + 1746)); Assert.Equal(0, *(scan + 1843)); Assert.Equal(0, *(scan + 1940)); Assert.Equal(51, *(scan + 2037)); Assert.Equal(0, *(scan + 2134)); Assert.Equal(0, *(scan + 2231)); Assert.Equal(102, *(scan + 2328)); Assert.Equal(124, *(scan + 2425)); Assert.Equal(204, *(scan + 2522)); Assert.Equal(0, *(scan + 2619)); Assert.Equal(0, *(scan + 2716)); Assert.Equal(204, *(scan + 2813)); Assert.Equal(51, *(scan + 2910)); Assert.Equal(0, *(scan + 3007)); Assert.Equal(255, *(scan + 3104)); Assert.Equal(0, *(scan + 3201)); Assert.Equal(0, *(scan + 3298)); Assert.Equal(0, *(scan + 3395)); Assert.Equal(128, *(scan + 3492)); Assert.Equal(0, *(scan + 3589)); Assert.Equal(255, *(scan + 3686)); Assert.Equal(128, *(scan + 3783)); Assert.Equal(0, *(scan + 3880)); Assert.Equal(128, *(scan + 3977)); Assert.Equal(0, *(scan + 4074)); Assert.Equal(0, *(scan + 4171)); Assert.Equal(204, *(scan + 4268)); Assert.Equal(0, *(scan + 4365)); Assert.Equal(0, *(scan + 4462)); Assert.Equal(102, *(scan + 4559)); Assert.Equal(0, *(scan + 4656)); Assert.Equal(0, *(scan + 4753)); Assert.Equal(102, *(scan + 4850)); Assert.Equal(0, *(scan + 4947)); Assert.Equal(0, *(scan + 5044)); Assert.Equal(204, *(scan + 5141)); Assert.Equal(128, *(scan + 5238)); Assert.Equal(0, *(scan + 5335)); Assert.Equal(128, *(scan + 5432)); Assert.Equal(128, *(scan + 5529)); Assert.Equal(0, *(scan + 5626)); Assert.Equal(255, *(scan + 5723)); Assert.Equal(153, *(scan + 5820)); Assert.Equal(0, *(scan + 5917)); Assert.Equal(0, *(scan + 6014)); Assert.Equal(51, *(scan + 6111)); Assert.Equal(0, *(scan + 6208)); Assert.Equal(255, *(scan + 6305)); Assert.Equal(153, *(scan + 6402)); Assert.Equal(0, *(scan + 6499)); Assert.Equal(153, *(scan + 6596)); Assert.Equal(102, *(scan + 6693)); Assert.Equal(0, *(scan + 6790)); Assert.Equal(204, *(scan + 6887)); Assert.Equal(153, *(scan + 6984)); Assert.Equal(0, *(scan + 7081)); Assert.Equal(204, *(scan + 7178)); Assert.Equal(153, *(scan + 7275)); Assert.Equal(0, *(scan + 7372)); Assert.Equal(0, *(scan + 7469)); Assert.Equal(153, *(scan + 7566)); Assert.Equal(0, *(scan + 7663)); Assert.Equal(0, *(scan + 7760)); Assert.Equal(153, *(scan + 7857)); Assert.Equal(102, *(scan + 7954)); Assert.Equal(102, *(scan + 8051)); Assert.Equal(0, *(scan + 8148)); Assert.Equal(0, *(scan + 8245)); Assert.Equal(0, *(scan + 8342)); Assert.Equal(204, *(scan + 8439)); Assert.Equal(0, *(scan + 8536)); Assert.Equal(204, *(scan + 8633)); Assert.Equal(128, *(scan + 8730)); Assert.Equal(0, *(scan + 8827)); Assert.Equal(0, *(scan + 8924)); Assert.Equal(153, *(scan + 9021)); Assert.Equal(153, *(scan + 9118)); Assert.Equal(255, *(scan + 9215)); Assert.Equal(0, *(scan + 9312)); Assert.Equal(0, *(scan + 9409)); Assert.Equal(204, *(scan + 9506)); Assert.Equal(0, *(scan + 9603)); Assert.Equal(0, *(scan + 9700)); Assert.Equal(0, *(scan + 9797)); Assert.Equal(128, *(scan + 9894)); Assert.Equal(0, *(scan + 9991)); Assert.Equal(0, *(scan + 10088)); Assert.Equal(0, *(scan + 10185)); Assert.Equal(102, *(scan + 10282)); Assert.Equal(0, *(scan + 10379)); Assert.Equal(0, *(scan + 10476)); Assert.Equal(51, *(scan + 10573)); Assert.Equal(204, *(scan + 10670)); Assert.Equal(0, *(scan + 10767)); Assert.Equal(0, *(scan + 10864)); Assert.Equal(0, *(scan + 10961)); Assert.Equal(153, *(scan + 11058)); Assert.Equal(0, *(scan + 11155)); Assert.Equal(0, *(scan + 11252)); Assert.Equal(153, *(scan + 11349)); Assert.Equal(51, *(scan + 11446)); Assert.Equal(0, *(scan + 11543)); Assert.Equal(0, *(scan + 11640)); Assert.Equal(0, *(scan + 11737)); Assert.Equal(204, *(scan + 11834)); Assert.Equal(0, *(scan + 11931)); Assert.Equal(0, *(scan + 12028)); Assert.Equal(255, *(scan + 12125)); Assert.Equal(153, *(scan + 12222)); } } finally { bmp.UnlockBits(data); } } } // 96x96x256.ico only has a 96x96 size available [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap96Features() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(96, bmp.Width); Assert.Equal(96, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(96, rect.Width); Assert.Equal(96, rect.Height); Assert.Equal(96, bmp.Size.Width); Assert.Equal(96, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap96Features_Palette_Entries_Unix() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // This value is inconsistent across Unix and Windows. Assert.Equal(256, bmp.Palette.Entries.Length); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap96Features_Palette_Entries_Windows() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // This value is inconsistent across Unix and Windows. Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap96Pixels() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(0, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 64).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(0, 68).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 84).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(4, 16).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(4, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(4, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(4, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(4, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(4, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 60).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(4, 64).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(4, 68).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(4, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 80).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(4, 84).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(4, 88).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(4, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(8, 16).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(8, 20).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(8, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 60).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(8, 64).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(8, 68).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(8, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 80).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(8, 84).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(8, 88).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(8, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 16).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 20).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 60).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(12, 64).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(12, 68).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(12, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 80).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(12, 84).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(12, 88).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(12, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 0).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 4).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 16).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 20).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 64).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 68).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 76).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(16, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 84).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(16, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 0).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(20, 4).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(20, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(20, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(20, 16).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(20, 20).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(20, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 64).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(24, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(24, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(24, 16).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(24, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 64).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 88).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(24, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(28, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 16).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(28, 20).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(28, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 64).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 88).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(32, 0).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(32, 4).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(32, 8).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(32, 12).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(32, 16).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(32, 20).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(32, 24).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(32, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(32, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(32, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(32, 64).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 88).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 0).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(36, 4).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(36, 8).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(36, 12).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(36, 16).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(36, 20).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(36, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(36, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(36, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(36, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(36, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 64).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 88).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 0).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(40, 4).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(40, 8).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(40, 12).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(40, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 28).ToArgb()); Assert.Equal(-13408717, bmp.GetPixel(40, 32).ToArgb()); Assert.Equal(-13408717, bmp.GetPixel(40, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 44).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(40, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 56).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(40, 60).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(40, 64).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(40, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 28).ToArgb()); Assert.Equal(-13408717, bmp.GetPixel(44, 32).ToArgb()); Assert.Equal(-13408717, bmp.GetPixel(44, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 40).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(44, 44).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(44, 48).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(44, 52).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(44, 56).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 60).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 64).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 68).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(44, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(44, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(44, 84).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(48, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(48, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(48, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(48, 28).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(48, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 36).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(48, 40).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(48, 44).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(48, 48).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(48, 52).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(48, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 60).ToArgb()); // Assert.Equal(1842204, bmp.GetPixel(48, 64).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(48, 68).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(48, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 84).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(52, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(52, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(52, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 36).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(52, 40).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(52, 44).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(52, 48).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(52, 52).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(52, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(52, 60).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(52, 64).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(52, 68).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(52, 72).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(52, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(52, 80).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(52, 84).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(52, 88).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(52, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(56, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(56, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 36).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(56, 40).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(56, 44).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(56, 48).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(56, 52).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(56, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(56, 60).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(56, 64).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(56, 68).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(56, 72).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(56, 76).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(56, 80).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(56, 84).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(56, 88).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(56, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 44).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(60, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 64).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(60, 68).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(60, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 76).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(60, 80).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(60, 84).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(60, 88).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(60, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 40).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(64, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(64, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(64, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(64, 64).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(64, 68).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 80).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(64, 84).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(64, 88).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(64, 92).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(68, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 40).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(68, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 68).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(68, 72).ToArgb()); Assert.Equal(-16751002, bmp.GetPixel(68, 76).ToArgb()); Assert.Equal(-16751002, bmp.GetPixel(68, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(68, 84).ToArgb()); Assert.Equal(0, bmp.GetPixel(68, 88).ToArgb()); Assert.Equal(-39373, bmp.GetPixel(68, 92).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(72, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 40).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 44).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(72, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(72, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(72, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(72, 84).ToArgb()); Assert.Equal(0, bmp.GetPixel(72, 88).ToArgb()); Assert.Equal(-39373, bmp.GetPixel(72, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(76, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 40).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(76, 44).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 72).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(76, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(76, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(76, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(76, 88).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(76, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(80, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(80, 44).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 72).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(80, 76).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(80, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(80, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(80, 88).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(80, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(84, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(84, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 36).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(84, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(84, 44).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(84, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(84, 76).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(84, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(84, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(84, 88).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(84, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(88, 0).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(88, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(88, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(88, 40).ToArgb()); Assert.Equal(-16777063, bmp.GetPixel(88, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(88, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(88, 76).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(88, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(88, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(88, 88).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(88, 92).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(92, 0).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(92, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(92, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(92, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(92, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(92, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(92, 28).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(92, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(92, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(92, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(92, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(92, 68).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 76).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(92, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(92, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(92, 88).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(92, 92).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap96Data() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(96, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(0, *(scan + 0)); Assert.Equal(0, *(scan + 97)); Assert.Equal(0, *(scan + 194)); Assert.Equal(0, *(scan + 291)); Assert.Equal(0, *(scan + 388)); Assert.Equal(28, *(scan + 485)); Assert.Equal(0, *(scan + 582)); Assert.Equal(28, *(scan + 679)); Assert.Equal(255, *(scan + 776)); Assert.Equal(0, *(scan + 873)); Assert.Equal(255, *(scan + 970)); Assert.Equal(255, *(scan + 1067)); Assert.Equal(0, *(scan + 1164)); Assert.Equal(255, *(scan + 1261)); Assert.Equal(255, *(scan + 1358)); Assert.Equal(0, *(scan + 1455)); Assert.Equal(255, *(scan + 1552)); Assert.Equal(255, *(scan + 1649)); Assert.Equal(0, *(scan + 1746)); Assert.Equal(255, *(scan + 1843)); Assert.Equal(255, *(scan + 1940)); Assert.Equal(0, *(scan + 2037)); Assert.Equal(255, *(scan + 2134)); Assert.Equal(255, *(scan + 2231)); Assert.Equal(0, *(scan + 2328)); Assert.Equal(255, *(scan + 2425)); Assert.Equal(255, *(scan + 2522)); Assert.Equal(0, *(scan + 2619)); Assert.Equal(255, *(scan + 2716)); Assert.Equal(255, *(scan + 2813)); Assert.Equal(0, *(scan + 2910)); Assert.Equal(255, *(scan + 3007)); Assert.Equal(255, *(scan + 3104)); Assert.Equal(0, *(scan + 3201)); Assert.Equal(255, *(scan + 3298)); Assert.Equal(255, *(scan + 3395)); Assert.Equal(0, *(scan + 3492)); Assert.Equal(0, *(scan + 3589)); Assert.Equal(255, *(scan + 3686)); Assert.Equal(0, *(scan + 3783)); Assert.Equal(0, *(scan + 3880)); Assert.Equal(255, *(scan + 3977)); Assert.Equal(0, *(scan + 4074)); Assert.Equal(0, *(scan + 4171)); Assert.Equal(255, *(scan + 4268)); Assert.Equal(0, *(scan + 4365)); Assert.Equal(28, *(scan + 4462)); Assert.Equal(255, *(scan + 4559)); Assert.Equal(0, *(scan + 4656)); Assert.Equal(51, *(scan + 4753)); Assert.Equal(255, *(scan + 4850)); Assert.Equal(0, *(scan + 4947)); Assert.Equal(51, *(scan + 5044)); Assert.Equal(255, *(scan + 5141)); Assert.Equal(0, *(scan + 5238)); Assert.Equal(51, *(scan + 5335)); Assert.Equal(255, *(scan + 5432)); Assert.Equal(0, *(scan + 5529)); Assert.Equal(51, *(scan + 5626)); Assert.Equal(255, *(scan + 5723)); Assert.Equal(0, *(scan + 5820)); Assert.Equal(51, *(scan + 5917)); Assert.Equal(255, *(scan + 6014)); Assert.Equal(0, *(scan + 6111)); Assert.Equal(51, *(scan + 6208)); Assert.Equal(255, *(scan + 6305)); Assert.Equal(0, *(scan + 6402)); Assert.Equal(51, *(scan + 6499)); Assert.Equal(255, *(scan + 6596)); Assert.Equal(0, *(scan + 6693)); Assert.Equal(51, *(scan + 6790)); Assert.Equal(255, *(scan + 6887)); Assert.Equal(0, *(scan + 6984)); Assert.Equal(51, *(scan + 7081)); Assert.Equal(255, *(scan + 7178)); Assert.Equal(0, *(scan + 7275)); Assert.Equal(51, *(scan + 7372)); Assert.Equal(255, *(scan + 7469)); Assert.Equal(0, *(scan + 7566)); Assert.Equal(51, *(scan + 7663)); Assert.Equal(255, *(scan + 7760)); Assert.Equal(0, *(scan + 7857)); Assert.Equal(51, *(scan + 7954)); Assert.Equal(255, *(scan + 8051)); Assert.Equal(0, *(scan + 8148)); Assert.Equal(51, *(scan + 8245)); Assert.Equal(255, *(scan + 8342)); Assert.Equal(0, *(scan + 8439)); Assert.Equal(51, *(scan + 8536)); Assert.Equal(28, *(scan + 8633)); Assert.Equal(0, *(scan + 8730)); Assert.Equal(51, *(scan + 8827)); Assert.Equal(0, *(scan + 8924)); Assert.Equal(0, *(scan + 9021)); Assert.Equal(51, *(scan + 9118)); Assert.Equal(0, *(scan + 9215)); Assert.Equal(0, *(scan + 9312)); Assert.Equal(51, *(scan + 9409)); Assert.Equal(0, *(scan + 9506)); Assert.Equal(0, *(scan + 9603)); Assert.Equal(51, *(scan + 9700)); Assert.Equal(0, *(scan + 9797)); Assert.Equal(28, *(scan + 9894)); Assert.Equal(51, *(scan + 9991)); Assert.Equal(0, *(scan + 10088)); Assert.Equal(0, *(scan + 10185)); Assert.Equal(51, *(scan + 10282)); Assert.Equal(0, *(scan + 10379)); Assert.Equal(0, *(scan + 10476)); Assert.Equal(51, *(scan + 10573)); Assert.Equal(0, *(scan + 10670)); Assert.Equal(0, *(scan + 10767)); Assert.Equal(51, *(scan + 10864)); Assert.Equal(204, *(scan + 10961)); Assert.Equal(0, *(scan + 11058)); Assert.Equal(51, *(scan + 11155)); Assert.Equal(204, *(scan + 11252)); Assert.Equal(0, *(scan + 11349)); Assert.Equal(51, *(scan + 11446)); Assert.Equal(204, *(scan + 11543)); Assert.Equal(0, *(scan + 11640)); Assert.Equal(51, *(scan + 11737)); Assert.Equal(204, *(scan + 11834)); Assert.Equal(0, *(scan + 11931)); Assert.Equal(51, *(scan + 12028)); Assert.Equal(204, *(scan + 12125)); Assert.Equal(0, *(scan + 12222)); Assert.Equal(51, *(scan + 12319)); Assert.Equal(204, *(scan + 12416)); Assert.Equal(28, *(scan + 12513)); Assert.Equal(51, *(scan + 12610)); Assert.Equal(204, *(scan + 12707)); Assert.Equal(0, *(scan + 12804)); Assert.Equal(28, *(scan + 12901)); Assert.Equal(204, *(scan + 12998)); Assert.Equal(0, *(scan + 13095)); Assert.Equal(0, *(scan + 13192)); Assert.Equal(204, *(scan + 13289)); Assert.Equal(0, *(scan + 13386)); Assert.Equal(0, *(scan + 13483)); Assert.Equal(204, *(scan + 13580)); Assert.Equal(0, *(scan + 13677)); Assert.Equal(28, *(scan + 13774)); Assert.Equal(204, *(scan + 13871)); Assert.Equal(0, *(scan + 13968)); Assert.Equal(0, *(scan + 14065)); Assert.Equal(204, *(scan + 14162)); Assert.Equal(0, *(scan + 14259)); Assert.Equal(0, *(scan + 14356)); Assert.Equal(204, *(scan + 14453)); Assert.Equal(0, *(scan + 14550)); Assert.Equal(0, *(scan + 14647)); Assert.Equal(204, *(scan + 14744)); Assert.Equal(0, *(scan + 14841)); Assert.Equal(0, *(scan + 14938)); Assert.Equal(204, *(scan + 15035)); Assert.Equal(0, *(scan + 15132)); Assert.Equal(0, *(scan + 15229)); Assert.Equal(204, *(scan + 15326)); Assert.Equal(0, *(scan + 15423)); Assert.Equal(0, *(scan + 15520)); Assert.Equal(204, *(scan + 15617)); Assert.Equal(0, *(scan + 15714)); Assert.Equal(0, *(scan + 15811)); Assert.Equal(204, *(scan + 15908)); Assert.Equal(0, *(scan + 16005)); Assert.Equal(0, *(scan + 16102)); Assert.Equal(204, *(scan + 16199)); Assert.Equal(0, *(scan + 16296)); Assert.Equal(0, *(scan + 16393)); Assert.Equal(204, *(scan + 16490)); Assert.Equal(0, *(scan + 16587)); Assert.Equal(0, *(scan + 16684)); Assert.Equal(204, *(scan + 16781)); Assert.Equal(0, *(scan + 16878)); Assert.Equal(0, *(scan + 16975)); Assert.Equal(204, *(scan + 17072)); Assert.Equal(0, *(scan + 17169)); Assert.Equal(0, *(scan + 17266)); Assert.Equal(204, *(scan + 17363)); Assert.Equal(0, *(scan + 17460)); Assert.Equal(0, *(scan + 17557)); Assert.Equal(28, *(scan + 17654)); Assert.Equal(0, *(scan + 17751)); Assert.Equal(0, *(scan + 17848)); Assert.Equal(0, *(scan + 17945)); Assert.Equal(28, *(scan + 18042)); Assert.Equal(0, *(scan + 18139)); Assert.Equal(0, *(scan + 18236)); Assert.Equal(51, *(scan + 18333)); Assert.Equal(28, *(scan + 18430)); Assert.Equal(0, *(scan + 18527)); Assert.Equal(51, *(scan + 18624)); Assert.Equal(0, *(scan + 18721)); Assert.Equal(28, *(scan + 18818)); Assert.Equal(51, *(scan + 18915)); Assert.Equal(255, *(scan + 19012)); Assert.Equal(51, *(scan + 19109)); Assert.Equal(51, *(scan + 19206)); Assert.Equal(255, *(scan + 19303)); Assert.Equal(51, *(scan + 19400)); Assert.Equal(51, *(scan + 19497)); Assert.Equal(255, *(scan + 19594)); Assert.Equal(51, *(scan + 19691)); Assert.Equal(51, *(scan + 19788)); Assert.Equal(255, *(scan + 19885)); Assert.Equal(51, *(scan + 19982)); Assert.Equal(51, *(scan + 20079)); Assert.Equal(255, *(scan + 20176)); Assert.Equal(51, *(scan + 20273)); Assert.Equal(51, *(scan + 20370)); Assert.Equal(255, *(scan + 20467)); Assert.Equal(51, *(scan + 20564)); Assert.Equal(51, *(scan + 20661)); Assert.Equal(255, *(scan + 20758)); Assert.Equal(51, *(scan + 20855)); Assert.Equal(51, *(scan + 20952)); Assert.Equal(255, *(scan + 21049)); Assert.Equal(51, *(scan + 21146)); Assert.Equal(51, *(scan + 21243)); Assert.Equal(28, *(scan + 21340)); Assert.Equal(51, *(scan + 21437)); Assert.Equal(51, *(scan + 21534)); Assert.Equal(0, *(scan + 21631)); Assert.Equal(51, *(scan + 21728)); Assert.Equal(28, *(scan + 21825)); Assert.Equal(0, *(scan + 21922)); Assert.Equal(51, *(scan + 22019)); Assert.Equal(28, *(scan + 22116)); Assert.Equal(0, *(scan + 22213)); Assert.Equal(51, *(scan + 22310)); Assert.Equal(0, *(scan + 22407)); Assert.Equal(0, *(scan + 22504)); Assert.Equal(51, *(scan + 22601)); Assert.Equal(0, *(scan + 22698)); Assert.Equal(0, *(scan + 22795)); Assert.Equal(51, *(scan + 22892)); Assert.Equal(28, *(scan + 22989)); Assert.Equal(0, *(scan + 23086)); Assert.Equal(28, *(scan + 23183)); Assert.Equal(153, *(scan + 23280)); Assert.Equal(28, *(scan + 23377)); Assert.Equal(0, *(scan + 23474)); Assert.Equal(153, *(scan + 23571)); Assert.Equal(28, *(scan + 23668)); Assert.Equal(0, *(scan + 23765)); Assert.Equal(153, *(scan + 23862)); Assert.Equal(0, *(scan + 23959)); Assert.Equal(28, *(scan + 24056)); Assert.Equal(153, *(scan + 24153)); Assert.Equal(0, *(scan + 24250)); Assert.Equal(153, *(scan + 24347)); Assert.Equal(153, *(scan + 24444)); Assert.Equal(0, *(scan + 24541)); Assert.Equal(153, *(scan + 24638)); Assert.Equal(153, *(scan + 24735)); Assert.Equal(0, *(scan + 24832)); Assert.Equal(153, *(scan + 24929)); Assert.Equal(153, *(scan + 25026)); Assert.Equal(0, *(scan + 25123)); Assert.Equal(153, *(scan + 25220)); Assert.Equal(153, *(scan + 25317)); Assert.Equal(0, *(scan + 25414)); Assert.Equal(153, *(scan + 25511)); Assert.Equal(153, *(scan + 25608)); Assert.Equal(0, *(scan + 25705)); Assert.Equal(153, *(scan + 25802)); Assert.Equal(153, *(scan + 25899)); Assert.Equal(0, *(scan + 25996)); Assert.Equal(153, *(scan + 26093)); Assert.Equal(153, *(scan + 26190)); Assert.Equal(0, *(scan + 26287)); Assert.Equal(153, *(scan + 26384)); Assert.Equal(153, *(scan + 26481)); Assert.Equal(0, *(scan + 26578)); Assert.Equal(153, *(scan + 26675)); Assert.Equal(153, *(scan + 26772)); Assert.Equal(28, *(scan + 26869)); Assert.Equal(153, *(scan + 26966)); Assert.Equal(28, *(scan + 27063)); Assert.Equal(28, *(scan + 27160)); Assert.Equal(28, *(scan + 27257)); Assert.Equal(0, *(scan + 27354)); Assert.Equal(0, *(scan + 27451)); Assert.Equal(0, *(scan + 27548)); Assert.Equal(0, *(scan + 27645)); } } finally { bmp.UnlockBits(data); } } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Xp32bppIconFeatures() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_32bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); // note that image is "promoted" to 32bits Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(0, bmp.Palette.Entries.Length); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(16, bmp.Width); Assert.Equal(16, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(16, rect.Width); Assert.Equal(16, rect.Height); Assert.Equal(16, bmp.Size.Width); Assert.Equal(16, bmp.Size.Height); } } private void Save(PixelFormat original, PixelFormat expected, bool colorCheck) { string sOutFile = $"linerect-{expected}.ico"; // Save Bitmap bmp = new Bitmap(100, 100, original); Graphics gr = Graphics.FromImage(bmp); using (Pen p = new Pen(Color.Red, 2)) { gr.DrawLine(p, 10.0F, 10.0F, 90.0F, 90.0F); gr.DrawRectangle(p, 10.0F, 10.0F, 80.0F, 80.0F); } try { // there's no encoder, so we're not saving a ICO but the alpha // bit get sets so it's not like saving a bitmap either bmp.Save(sOutFile, ImageFormat.Icon); // Load using (Bitmap bmpLoad = new Bitmap(sOutFile)) { Assert.Equal(ImageFormat.Png, bmpLoad.RawFormat); Assert.Equal(expected, bmpLoad.PixelFormat); if (colorCheck) { Color color = bmpLoad.GetPixel(10, 10); Assert.Equal(Color.FromArgb(255, 255, 0, 0), color); } } } finally { gr.Dispose(); bmp.Dispose(); try { File.Delete(sOutFile); } catch { } } } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Save_24bppRgb() { Save(PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb, true); } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Save_32bppRgb() { Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppArgb, true); } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Save_32bppArgb() { Save(PixelFormat.Format32bppArgb, PixelFormat.Format32bppArgb, true); } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Save_32bppPArgb() { Save(PixelFormat.Format32bppPArgb, PixelFormat.Format32bppArgb, true); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // ICO Codec class testing unit // // Authors: // Jordi Mas i Hern?ndez ([email protected]) // Sebastien Pouliot <[email protected]> // // Copyright (C) 2006-2007 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using Xunit; namespace MonoTests.System.Drawing.Imaging { public class IconCodecTest { [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Image16() { string sInFile = Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"); using (Image image = Image.FromFile(sInFile)) { Assert.True(image.RawFormat.Equals(ImageFormat.Icon)); // note that image is "promoted" to 32bits Assert.Equal(PixelFormat.Format32bppArgb, image.PixelFormat); Assert.Equal(73746, image.Flags); using (Bitmap bmp = new Bitmap(image)) { Assert.True(bmp.RawFormat.Equals(ImageFormat.MemoryBmp)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(2, bmp.Flags); Assert.Equal(0, bmp.Palette.Entries.Length); } } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Image16_PaletteEntries_Unix() { string sInFile = Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"); using (Image image = Image.FromFile(sInFile)) { // The values are inconsistent across Windows & Unix: GDI+ returns 0, libgdiplus returns 16. Assert.Equal(16, image.Palette.Entries.Length); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Image16_PaletteEntries_Windows() { string sInFile = Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"); using (Image image = Image.FromFile(sInFile)) { // The values are inconsistent across Windows & Unix: GDI+ returns 0, libgdiplus returns 16. Assert.Equal(0, image.Palette.Entries.Length); } } // simley.ico has 48x48, 32x32 and 16x16 images (in that order) [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap16Features() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); // note that image is "promoted" to 32bits Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(16, bmp.Width); Assert.Equal(16, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(16, rect.Width); Assert.Equal(16, rect.Height); Assert.Equal(16, bmp.Size.Width); Assert.Equal(16, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap16Features_Palette_Entries_Unix() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values are inconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(16, bmp.Palette.Entries.Length); Assert.Equal(-16777216, bmp.Palette.Entries[0].ToArgb()); Assert.Equal(-16777216, bmp.Palette.Entries[1].ToArgb()); Assert.Equal(-16744448, bmp.Palette.Entries[2].ToArgb()); Assert.Equal(-8355840, bmp.Palette.Entries[3].ToArgb()); Assert.Equal(-16777088, bmp.Palette.Entries[4].ToArgb()); Assert.Equal(-8388480, bmp.Palette.Entries[5].ToArgb()); Assert.Equal(-16744320, bmp.Palette.Entries[6].ToArgb()); Assert.Equal(-4144960, bmp.Palette.Entries[7].ToArgb()); Assert.Equal(-8355712, bmp.Palette.Entries[8].ToArgb()); Assert.Equal(-65536, bmp.Palette.Entries[9].ToArgb()); Assert.Equal(-16711936, bmp.Palette.Entries[10].ToArgb()); Assert.Equal(-256, bmp.Palette.Entries[11].ToArgb()); Assert.Equal(-16776961, bmp.Palette.Entries[12].ToArgb()); Assert.Equal(-65281, bmp.Palette.Entries[13].ToArgb()); Assert.Equal(-16711681, bmp.Palette.Entries[14].ToArgb()); Assert.Equal(-1, bmp.Palette.Entries[15].ToArgb()); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "Flaky - ArgumentException")] public void Bitmap16Features_Palette_Entries_Windows() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values are inconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap16Pixels() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(0, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(-256, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(-256, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(-8355840, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(-256, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(-256, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(-256, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-8355840, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 12).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap16Data() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(16, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(0, *(scan + 0)); Assert.Equal(0, *(scan + 13)); Assert.Equal(0, *(scan + 26)); Assert.Equal(0, *(scan + 39)); Assert.Equal(0, *(scan + 52)); Assert.Equal(0, *(scan + 65)); Assert.Equal(0, *(scan + 78)); Assert.Equal(0, *(scan + 91)); Assert.Equal(0, *(scan + 104)); Assert.Equal(0, *(scan + 117)); Assert.Equal(0, *(scan + 130)); Assert.Equal(0, *(scan + 143)); Assert.Equal(0, *(scan + 156)); Assert.Equal(255, *(scan + 169)); Assert.Equal(0, *(scan + 182)); Assert.Equal(0, *(scan + 195)); Assert.Equal(255, *(scan + 208)); Assert.Equal(255, *(scan + 221)); Assert.Equal(0, *(scan + 234)); Assert.Equal(128, *(scan + 247)); Assert.Equal(0, *(scan + 260)); Assert.Equal(0, *(scan + 273)); Assert.Equal(0, *(scan + 286)); Assert.Equal(255, *(scan + 299)); Assert.Equal(0, *(scan + 312)); Assert.Equal(128, *(scan + 325)); Assert.Equal(0, *(scan + 338)); Assert.Equal(0, *(scan + 351)); Assert.Equal(255, *(scan + 364)); Assert.Equal(0, *(scan + 377)); Assert.Equal(0, *(scan + 390)); Assert.Equal(255, *(scan + 403)); Assert.Equal(255, *(scan + 416)); Assert.Equal(0, *(scan + 429)); Assert.Equal(255, *(scan + 442)); Assert.Equal(0, *(scan + 455)); Assert.Equal(0, *(scan + 468)); Assert.Equal(0, *(scan + 481)); Assert.Equal(255, *(scan + 494)); Assert.Equal(0, *(scan + 507)); Assert.Equal(0, *(scan + 520)); Assert.Equal(0, *(scan + 533)); Assert.Equal(0, *(scan + 546)); Assert.Equal(255, *(scan + 559)); Assert.Equal(0, *(scan + 572)); Assert.Equal(0, *(scan + 585)); Assert.Equal(255, *(scan + 598)); Assert.Equal(0, *(scan + 611)); Assert.Equal(0, *(scan + 624)); Assert.Equal(0, *(scan + 637)); Assert.Equal(128, *(scan + 650)); Assert.Equal(0, *(scan + 663)); Assert.Equal(0, *(scan + 676)); Assert.Equal(0, *(scan + 689)); Assert.Equal(0, *(scan + 702)); Assert.Equal(0, *(scan + 715)); Assert.Equal(0, *(scan + 728)); Assert.Equal(0, *(scan + 741)); Assert.Equal(0, *(scan + 754)); Assert.Equal(0, *(scan + 767)); } } finally { bmp.UnlockBits(data); } } } // VisualPng.ico only has a 32x32 size available [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap32Features() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(32, bmp.Width); Assert.Equal(32, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(32, rect.Width); Assert.Equal(32, rect.Height); Assert.Equal(32, bmp.Size.Width); Assert.Equal(32, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap32Features_PaletteEntries_Unix() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values areinconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(16, bmp.Palette.Entries.Length); Assert.Equal(-16777216, bmp.Palette.Entries[0].ToArgb()); Assert.Equal(-8388608, bmp.Palette.Entries[1].ToArgb()); Assert.Equal(-16744448, bmp.Palette.Entries[2].ToArgb()); Assert.Equal(-8355840, bmp.Palette.Entries[3].ToArgb()); Assert.Equal(-16777088, bmp.Palette.Entries[4].ToArgb()); Assert.Equal(-8388480, bmp.Palette.Entries[5].ToArgb()); Assert.Equal(-16744320, bmp.Palette.Entries[6].ToArgb()); Assert.Equal(-4144960, bmp.Palette.Entries[7].ToArgb()); Assert.Equal(-8355712, bmp.Palette.Entries[8].ToArgb()); Assert.Equal(-65536, bmp.Palette.Entries[9].ToArgb()); Assert.Equal(-16711936, bmp.Palette.Entries[10].ToArgb()); Assert.Equal(-256, bmp.Palette.Entries[11].ToArgb()); Assert.Equal(-16776961, bmp.Palette.Entries[12].ToArgb()); Assert.Equal(-65281, bmp.Palette.Entries[13].ToArgb()); Assert.Equal(-16711681, bmp.Palette.Entries[14].ToArgb()); Assert.Equal(-1, bmp.Palette.Entries[15].ToArgb()); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap32Features_PaletteEntries_Windows() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values areinconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap32Pixels() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(0, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(-8388608, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 16).ToArgb()); Assert.Equal(-65536, bmp.GetPixel(8, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-8388608, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 16).ToArgb()); Assert.Equal(-65536, bmp.GetPixel(12, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 20).ToArgb()); Assert.Equal(-65536, bmp.GetPixel(16, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 4).ToArgb()); Assert.Equal(-8388608, bmp.GetPixel(20, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(24, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 20).ToArgb()); Assert.Equal(-8388608, bmp.GetPixel(28, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 28).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap32Data() { string sInFile = Helpers.GetTestBitmapPath("VisualPng.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(32, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(0, *(scan + 0)); Assert.Equal(0, *(scan + 13)); Assert.Equal(0, *(scan + 26)); Assert.Equal(0, *(scan + 39)); Assert.Equal(0, *(scan + 52)); Assert.Equal(0, *(scan + 65)); Assert.Equal(0, *(scan + 78)); Assert.Equal(0, *(scan + 91)); Assert.Equal(0, *(scan + 104)); Assert.Equal(0, *(scan + 117)); Assert.Equal(0, *(scan + 130)); Assert.Equal(0, *(scan + 143)); Assert.Equal(0, *(scan + 156)); Assert.Equal(0, *(scan + 169)); Assert.Equal(0, *(scan + 182)); Assert.Equal(0, *(scan + 195)); Assert.Equal(0, *(scan + 208)); Assert.Equal(0, *(scan + 221)); Assert.Equal(0, *(scan + 234)); Assert.Equal(0, *(scan + 247)); Assert.Equal(0, *(scan + 260)); Assert.Equal(0, *(scan + 273)); Assert.Equal(0, *(scan + 286)); Assert.Equal(0, *(scan + 299)); Assert.Equal(0, *(scan + 312)); Assert.Equal(0, *(scan + 325)); Assert.Equal(0, *(scan + 338)); Assert.Equal(0, *(scan + 351)); Assert.Equal(0, *(scan + 364)); Assert.Equal(0, *(scan + 377)); Assert.Equal(0, *(scan + 390)); Assert.Equal(0, *(scan + 403)); Assert.Equal(0, *(scan + 416)); Assert.Equal(0, *(scan + 429)); Assert.Equal(0, *(scan + 442)); Assert.Equal(0, *(scan + 455)); Assert.Equal(0, *(scan + 468)); Assert.Equal(0, *(scan + 481)); Assert.Equal(128, *(scan + 494)); Assert.Equal(0, *(scan + 507)); Assert.Equal(0, *(scan + 520)); Assert.Equal(0, *(scan + 533)); Assert.Equal(0, *(scan + 546)); Assert.Equal(0, *(scan + 559)); Assert.Equal(128, *(scan + 572)); Assert.Equal(0, *(scan + 585)); Assert.Equal(0, *(scan + 598)); Assert.Equal(0, *(scan + 611)); Assert.Equal(0, *(scan + 624)); Assert.Equal(0, *(scan + 637)); Assert.Equal(128, *(scan + 650)); Assert.Equal(0, *(scan + 663)); Assert.Equal(0, *(scan + 676)); Assert.Equal(0, *(scan + 689)); Assert.Equal(0, *(scan + 702)); Assert.Equal(0, *(scan + 715)); Assert.Equal(0, *(scan + 728)); Assert.Equal(0, *(scan + 741)); Assert.Equal(0, *(scan + 754)); Assert.Equal(0, *(scan + 767)); Assert.Equal(0, *(scan + 780)); Assert.Equal(0, *(scan + 793)); Assert.Equal(128, *(scan + 806)); Assert.Equal(0, *(scan + 819)); Assert.Equal(0, *(scan + 832)); Assert.Equal(128, *(scan + 845)); Assert.Equal(0, *(scan + 858)); Assert.Equal(0, *(scan + 871)); Assert.Equal(0, *(scan + 884)); } } finally { bmp.UnlockBits(data); } } } // 48x48_one_entry_1bit.ico only has a 48x48 size available [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap48Features() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(48, bmp.Width); Assert.Equal(48, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(48, rect.Width); Assert.Equal(48, rect.Height); Assert.Equal(48, bmp.Size.Width); Assert.Equal(48, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap48Features_Palette_Entries_Unix() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values are inconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(2, bmp.Palette.Entries.Length); Assert.Equal(-16777216, bmp.Palette.Entries[0].ToArgb()); Assert.Equal(-1, bmp.Palette.Entries[1].ToArgb()); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap48Features_Palette_Entries_Windows() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // These values are inconsistent across Windows & Unix: 0 on Windows, 16 on Unix Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap48Pixels() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(-16777216, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 16).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 20).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 24).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 28).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 32).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 40).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(0, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(4, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 16).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 20).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 24).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 28).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 32).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(8, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(8, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 12).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 16).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 20).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 24).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 28).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(12, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(12, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(16, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(16, 8).ToArgb()); Assert.Equal(-1, bmp.GetPixel(16, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 28).ToArgb()); Assert.Equal(-1, bmp.GetPixel(16, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(16, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(16, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 8).ToArgb()); Assert.Equal(-1, bmp.GetPixel(20, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 16).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 20).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 28).ToArgb()); Assert.Equal(-1, bmp.GetPixel(20, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 36).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(20, 40).ToArgb()); Assert.Equal(-1, bmp.GetPixel(20, 44).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(24, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 4).ToArgb()); Assert.Equal(-16777216, bmp.GetPixel(24, 8).ToArgb()); Assert.Equal(-1, bmp.GetPixel(24, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 16).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap48Data() { string sInFile = Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(48, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(0, *(scan + 0)); Assert.Equal(0, *(scan + 13)); Assert.Equal(0, *(scan + 26)); Assert.Equal(0, *(scan + 39)); Assert.Equal(0, *(scan + 52)); Assert.Equal(0, *(scan + 65)); Assert.Equal(0, *(scan + 78)); Assert.Equal(0, *(scan + 91)); Assert.Equal(0, *(scan + 104)); Assert.Equal(0, *(scan + 117)); Assert.Equal(0, *(scan + 130)); Assert.Equal(0, *(scan + 143)); Assert.Equal(0, *(scan + 156)); Assert.Equal(0, *(scan + 169)); Assert.Equal(0, *(scan + 182)); Assert.Equal(0, *(scan + 195)); Assert.Equal(0, *(scan + 208)); Assert.Equal(0, *(scan + 221)); Assert.Equal(0, *(scan + 234)); Assert.Equal(0, *(scan + 247)); Assert.Equal(0, *(scan + 260)); Assert.Equal(0, *(scan + 273)); Assert.Equal(0, *(scan + 286)); Assert.Equal(255, *(scan + 299)); Assert.Equal(255, *(scan + 312)); Assert.Equal(255, *(scan + 325)); Assert.Equal(255, *(scan + 338)); Assert.Equal(255, *(scan + 351)); Assert.Equal(255, *(scan + 364)); Assert.Equal(255, *(scan + 377)); Assert.Equal(255, *(scan + 390)); Assert.Equal(255, *(scan + 403)); Assert.Equal(255, *(scan + 416)); Assert.Equal(0, *(scan + 429)); Assert.Equal(255, *(scan + 442)); Assert.Equal(255, *(scan + 455)); Assert.Equal(255, *(scan + 468)); Assert.Equal(255, *(scan + 481)); Assert.Equal(255, *(scan + 494)); Assert.Equal(255, *(scan + 507)); Assert.Equal(255, *(scan + 520)); Assert.Equal(255, *(scan + 533)); Assert.Equal(255, *(scan + 546)); Assert.Equal(255, *(scan + 559)); Assert.Equal(0, *(scan + 572)); Assert.Equal(255, *(scan + 585)); Assert.Equal(0, *(scan + 598)); Assert.Equal(0, *(scan + 611)); Assert.Equal(0, *(scan + 624)); Assert.Equal(0, *(scan + 637)); Assert.Equal(0, *(scan + 650)); Assert.Equal(0, *(scan + 663)); Assert.Equal(0, *(scan + 676)); Assert.Equal(0, *(scan + 689)); Assert.Equal(0, *(scan + 702)); Assert.Equal(0, *(scan + 715)); Assert.Equal(255, *(scan + 728)); Assert.Equal(0, *(scan + 741)); Assert.Equal(0, *(scan + 754)); Assert.Equal(0, *(scan + 767)); Assert.Equal(0, *(scan + 780)); Assert.Equal(0, *(scan + 793)); Assert.Equal(0, *(scan + 806)); Assert.Equal(0, *(scan + 819)); Assert.Equal(0, *(scan + 832)); Assert.Equal(0, *(scan + 845)); Assert.Equal(0, *(scan + 858)); Assert.Equal(255, *(scan + 871)); Assert.Equal(0, *(scan + 884)); Assert.Equal(0, *(scan + 897)); Assert.Equal(0, *(scan + 910)); Assert.Equal(0, *(scan + 923)); Assert.Equal(0, *(scan + 936)); } } finally { bmp.UnlockBits(data); } } } // 64x64x256 only has a 64x64 size available [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap64Features() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(64, bmp.Width); Assert.Equal(64, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(64, rect.Width); Assert.Equal(64, rect.Height); Assert.Equal(64, bmp.Size.Width); Assert.Equal(64, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap64Features_Palette_Entries_Unix() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // This value is inconsistent across Windows & Unix: 0 on Windows, 256 on Unix Assert.Equal(256, bmp.Palette.Entries.Length); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap64Features_Palette_Entries_Windows() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // This value is inconsistent across Windows & Unix: 0 on Windows, 256 on Unix Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Bitmap64Pixels() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(-65383, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 16).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 20).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 24).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 28).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 32).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 36).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 40).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 44).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 48).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 52).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 56).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(0, 60).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 16).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 20).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 24).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 28).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 32).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 36).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 40).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 44).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 48).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 52).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(4, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 60).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 16).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 20).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 24).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 28).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 32).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 36).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 40).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 44).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 48).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(8, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 60).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(-10079335, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 12).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 16).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 20).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 24).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 28).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 32).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 36).ToArgb()); Assert.Equal(-33664, bmp.GetPixel(12, 40).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap64Data() { string sInFile = Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(64, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(153, *(scan + 0)); Assert.Equal(0, *(scan + 97)); Assert.Equal(255, *(scan + 194)); Assert.Equal(0, *(scan + 291)); Assert.Equal(0, *(scan + 388)); Assert.Equal(204, *(scan + 485)); Assert.Equal(204, *(scan + 582)); Assert.Equal(0, *(scan + 679)); Assert.Equal(204, *(scan + 776)); Assert.Equal(153, *(scan + 873)); Assert.Equal(0, *(scan + 970)); Assert.Equal(0, *(scan + 1067)); Assert.Equal(153, *(scan + 1164)); Assert.Equal(153, *(scan + 1261)); Assert.Equal(102, *(scan + 1358)); Assert.Equal(0, *(scan + 1455)); Assert.Equal(0, *(scan + 1552)); Assert.Equal(204, *(scan + 1649)); Assert.Equal(153, *(scan + 1746)); Assert.Equal(0, *(scan + 1843)); Assert.Equal(0, *(scan + 1940)); Assert.Equal(51, *(scan + 2037)); Assert.Equal(0, *(scan + 2134)); Assert.Equal(0, *(scan + 2231)); Assert.Equal(102, *(scan + 2328)); Assert.Equal(124, *(scan + 2425)); Assert.Equal(204, *(scan + 2522)); Assert.Equal(0, *(scan + 2619)); Assert.Equal(0, *(scan + 2716)); Assert.Equal(204, *(scan + 2813)); Assert.Equal(51, *(scan + 2910)); Assert.Equal(0, *(scan + 3007)); Assert.Equal(255, *(scan + 3104)); Assert.Equal(0, *(scan + 3201)); Assert.Equal(0, *(scan + 3298)); Assert.Equal(0, *(scan + 3395)); Assert.Equal(128, *(scan + 3492)); Assert.Equal(0, *(scan + 3589)); Assert.Equal(255, *(scan + 3686)); Assert.Equal(128, *(scan + 3783)); Assert.Equal(0, *(scan + 3880)); Assert.Equal(128, *(scan + 3977)); Assert.Equal(0, *(scan + 4074)); Assert.Equal(0, *(scan + 4171)); Assert.Equal(204, *(scan + 4268)); Assert.Equal(0, *(scan + 4365)); Assert.Equal(0, *(scan + 4462)); Assert.Equal(102, *(scan + 4559)); Assert.Equal(0, *(scan + 4656)); Assert.Equal(0, *(scan + 4753)); Assert.Equal(102, *(scan + 4850)); Assert.Equal(0, *(scan + 4947)); Assert.Equal(0, *(scan + 5044)); Assert.Equal(204, *(scan + 5141)); Assert.Equal(128, *(scan + 5238)); Assert.Equal(0, *(scan + 5335)); Assert.Equal(128, *(scan + 5432)); Assert.Equal(128, *(scan + 5529)); Assert.Equal(0, *(scan + 5626)); Assert.Equal(255, *(scan + 5723)); Assert.Equal(153, *(scan + 5820)); Assert.Equal(0, *(scan + 5917)); Assert.Equal(0, *(scan + 6014)); Assert.Equal(51, *(scan + 6111)); Assert.Equal(0, *(scan + 6208)); Assert.Equal(255, *(scan + 6305)); Assert.Equal(153, *(scan + 6402)); Assert.Equal(0, *(scan + 6499)); Assert.Equal(153, *(scan + 6596)); Assert.Equal(102, *(scan + 6693)); Assert.Equal(0, *(scan + 6790)); Assert.Equal(204, *(scan + 6887)); Assert.Equal(153, *(scan + 6984)); Assert.Equal(0, *(scan + 7081)); Assert.Equal(204, *(scan + 7178)); Assert.Equal(153, *(scan + 7275)); Assert.Equal(0, *(scan + 7372)); Assert.Equal(0, *(scan + 7469)); Assert.Equal(153, *(scan + 7566)); Assert.Equal(0, *(scan + 7663)); Assert.Equal(0, *(scan + 7760)); Assert.Equal(153, *(scan + 7857)); Assert.Equal(102, *(scan + 7954)); Assert.Equal(102, *(scan + 8051)); Assert.Equal(0, *(scan + 8148)); Assert.Equal(0, *(scan + 8245)); Assert.Equal(0, *(scan + 8342)); Assert.Equal(204, *(scan + 8439)); Assert.Equal(0, *(scan + 8536)); Assert.Equal(204, *(scan + 8633)); Assert.Equal(128, *(scan + 8730)); Assert.Equal(0, *(scan + 8827)); Assert.Equal(0, *(scan + 8924)); Assert.Equal(153, *(scan + 9021)); Assert.Equal(153, *(scan + 9118)); Assert.Equal(255, *(scan + 9215)); Assert.Equal(0, *(scan + 9312)); Assert.Equal(0, *(scan + 9409)); Assert.Equal(204, *(scan + 9506)); Assert.Equal(0, *(scan + 9603)); Assert.Equal(0, *(scan + 9700)); Assert.Equal(0, *(scan + 9797)); Assert.Equal(128, *(scan + 9894)); Assert.Equal(0, *(scan + 9991)); Assert.Equal(0, *(scan + 10088)); Assert.Equal(0, *(scan + 10185)); Assert.Equal(102, *(scan + 10282)); Assert.Equal(0, *(scan + 10379)); Assert.Equal(0, *(scan + 10476)); Assert.Equal(51, *(scan + 10573)); Assert.Equal(204, *(scan + 10670)); Assert.Equal(0, *(scan + 10767)); Assert.Equal(0, *(scan + 10864)); Assert.Equal(0, *(scan + 10961)); Assert.Equal(153, *(scan + 11058)); Assert.Equal(0, *(scan + 11155)); Assert.Equal(0, *(scan + 11252)); Assert.Equal(153, *(scan + 11349)); Assert.Equal(51, *(scan + 11446)); Assert.Equal(0, *(scan + 11543)); Assert.Equal(0, *(scan + 11640)); Assert.Equal(0, *(scan + 11737)); Assert.Equal(204, *(scan + 11834)); Assert.Equal(0, *(scan + 11931)); Assert.Equal(0, *(scan + 12028)); Assert.Equal(255, *(scan + 12125)); Assert.Equal(153, *(scan + 12222)); } } finally { bmp.UnlockBits(data); } } } // 96x96x256.ico only has a 96x96 size available [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap96Features() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(96, bmp.Width); Assert.Equal(96, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(96, rect.Width); Assert.Equal(96, rect.Height); Assert.Equal(96, bmp.Size.Width); Assert.Equal(96, bmp.Size.Height); } } [PlatformSpecific(TestPlatforms.AnyUnix)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap96Features_Palette_Entries_Unix() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // This value is inconsistent across Unix and Windows. Assert.Equal(256, bmp.Palette.Entries.Length); } } [PlatformSpecific(TestPlatforms.Windows)] [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap96Features_Palette_Entries_Windows() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // This value is inconsistent across Unix and Windows. Assert.Equal(0, bmp.Palette.Entries.Length); } } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Bitmap96Pixels() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { // sampling values from a well known bitmap Assert.Equal(0, bmp.GetPixel(0, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 64).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(0, 68).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 84).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(0, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(4, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(4, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(4, 16).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(4, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(4, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(4, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(4, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(4, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 60).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(4, 64).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(4, 68).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(4, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(4, 80).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(4, 84).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(4, 88).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(4, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 0).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(8, 4).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(8, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(8, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(8, 16).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(8, 20).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(8, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(8, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 60).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(8, 64).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(8, 68).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(8, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(8, 80).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(8, 84).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(8, 88).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(8, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 0).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 4).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 16).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 20).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(12, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(12, 60).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(12, 64).ToArgb()); Assert.Equal(-3342541, bmp.GetPixel(12, 68).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(12, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(12, 80).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(12, 84).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(12, 88).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(12, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 0).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 4).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 16).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 20).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(16, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(16, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 64).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 68).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 76).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(16, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 84).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(16, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(16, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 0).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(20, 4).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(20, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(20, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(20, 16).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(20, 20).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(20, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(20, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 64).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(20, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(20, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(24, 8).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(24, 12).ToArgb()); Assert.Equal(-3407872, bmp.GetPixel(24, 16).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(24, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(24, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(24, 64).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(24, 88).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(24, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(28, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 16).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(28, 20).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(28, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 28).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 56).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(28, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(28, 64).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 88).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(28, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(32, 0).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(32, 4).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(32, 8).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(32, 12).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(32, 16).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(32, 20).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(32, 24).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(32, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(32, 32).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 52).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(32, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(32, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(32, 64).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 88).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(32, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 0).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(36, 4).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(36, 8).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(36, 12).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(36, 16).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(36, 20).ToArgb()); Assert.Equal(-16777012, bmp.GetPixel(36, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 28).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 36).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(36, 40).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(36, 44).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(36, 48).ToArgb()); Assert.Equal(-3368602, bmp.GetPixel(36, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(36, 64).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 88).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(36, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 0).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(40, 4).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(40, 8).ToArgb()); Assert.Equal(-10027264, bmp.GetPixel(40, 12).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(40, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 28).ToArgb()); Assert.Equal(-13408717, bmp.GetPixel(40, 32).ToArgb()); Assert.Equal(-13408717, bmp.GetPixel(40, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 44).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(40, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 56).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(40, 60).ToArgb()); Assert.Equal(-26317, bmp.GetPixel(40, 64).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(40, 68).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 84).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(40, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(40, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 12).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 16).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 20).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 24).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 28).ToArgb()); Assert.Equal(-13408717, bmp.GetPixel(44, 32).ToArgb()); Assert.Equal(-13408717, bmp.GetPixel(44, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 40).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(44, 44).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(44, 48).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(44, 52).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(44, 56).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 60).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 64).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 68).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 72).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(44, 76).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(44, 80).ToArgb()); Assert.Equal(-13434829, bmp.GetPixel(44, 84).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(44, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(44, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 4).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(48, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(48, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(48, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(48, 28).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(48, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 36).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(48, 40).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(48, 44).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(48, 48).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(48, 52).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(48, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 60).ToArgb()); // Assert.Equal(1842204, bmp.GetPixel(48, 64).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(48, 68).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(48, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 84).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 88).ToArgb()); Assert.Equal(0, bmp.GetPixel(48, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(52, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(52, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(52, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(52, 36).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(52, 40).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(52, 44).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(52, 48).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(52, 52).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(52, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(52, 60).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(52, 64).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(52, 68).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(52, 72).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(52, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(52, 80).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(52, 84).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(52, 88).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(52, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(56, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(56, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(56, 36).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(56, 40).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(56, 44).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(56, 48).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(56, 52).ToArgb()); Assert.Equal(-13312, bmp.GetPixel(56, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(56, 60).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(56, 64).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(56, 68).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(56, 72).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(56, 76).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(56, 80).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(56, 84).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(56, 88).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(56, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(60, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 44).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(60, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 52).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 56).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 60).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 64).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(60, 68).ToArgb()); Assert.Equal(-3355546, bmp.GetPixel(60, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(60, 76).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(60, 80).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(60, 84).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(60, 88).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(60, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(64, 40).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(64, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(64, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(64, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(64, 64).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(64, 68).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(64, 80).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(64, 84).ToArgb()); Assert.Equal(-6737101, bmp.GetPixel(64, 88).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(64, 92).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(68, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 40).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(68, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(68, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(68, 68).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(68, 72).ToArgb()); Assert.Equal(-16751002, bmp.GetPixel(68, 76).ToArgb()); Assert.Equal(-16751002, bmp.GetPixel(68, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(68, 84).ToArgb()); Assert.Equal(0, bmp.GetPixel(68, 88).ToArgb()); Assert.Equal(-39373, bmp.GetPixel(68, 92).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(72, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 40).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(72, 44).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(72, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(72, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(72, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(72, 80).ToArgb()); Assert.Equal(0, bmp.GetPixel(72, 84).ToArgb()); Assert.Equal(0, bmp.GetPixel(72, 88).ToArgb()); Assert.Equal(-39373, bmp.GetPixel(72, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(76, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(76, 40).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(76, 44).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(76, 72).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(76, 76).ToArgb()); Assert.Equal(0, bmp.GetPixel(76, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(76, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(76, 88).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(76, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(80, 0).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 36).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(80, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(80, 44).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(80, 72).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(80, 76).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(80, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(80, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(80, 88).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(80, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(84, 0).ToArgb()); Assert.Equal(0, bmp.GetPixel(84, 4).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(84, 36).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(84, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(84, 44).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(84, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(84, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(84, 76).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(84, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(84, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(84, 88).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(84, 92).ToArgb()); Assert.Equal(0, bmp.GetPixel(88, 0).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(88, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(88, 8).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 28).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 32).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(88, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(88, 40).ToArgb()); Assert.Equal(-16777063, bmp.GetPixel(88, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(88, 48).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 68).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(88, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(88, 76).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(88, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(88, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(88, 88).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(88, 92).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(92, 0).ToArgb()); Assert.Equal(-3342490, bmp.GetPixel(92, 4).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(92, 8).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 12).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(92, 16).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(92, 20).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(92, 24).ToArgb()); Assert.Equal(-52429, bmp.GetPixel(92, 28).ToArgb()); Assert.Equal(-14935012, bmp.GetPixel(92, 32).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 36).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 40).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 44).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 48).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 52).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(92, 56).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(92, 60).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(92, 64).ToArgb()); Assert.Equal(-6750157, bmp.GetPixel(92, 68).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 72).ToArgb()); Assert.Equal(0, bmp.GetPixel(92, 76).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(92, 80).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(92, 84).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(92, 88).ToArgb()); Assert.Equal(-65383, bmp.GetPixel(92, 92).ToArgb()); } } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported), nameof(PlatformDetection.IsNotArm64Process))] // [ActiveIssue("https://github.com/dotnet/runtime/issues/28859")] public void Bitmap96Data() { string sInFile = Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); try { Assert.Equal(bmp.Height, data.Height); Assert.Equal(bmp.Width, data.Width); Assert.Equal(PixelFormat.Format24bppRgb, data.PixelFormat); Assert.Equal(96, data.Height); unsafe { byte* scan = (byte*)data.Scan0; // sampling values from a well known bitmap Assert.Equal(0, *(scan + 0)); Assert.Equal(0, *(scan + 97)); Assert.Equal(0, *(scan + 194)); Assert.Equal(0, *(scan + 291)); Assert.Equal(0, *(scan + 388)); Assert.Equal(28, *(scan + 485)); Assert.Equal(0, *(scan + 582)); Assert.Equal(28, *(scan + 679)); Assert.Equal(255, *(scan + 776)); Assert.Equal(0, *(scan + 873)); Assert.Equal(255, *(scan + 970)); Assert.Equal(255, *(scan + 1067)); Assert.Equal(0, *(scan + 1164)); Assert.Equal(255, *(scan + 1261)); Assert.Equal(255, *(scan + 1358)); Assert.Equal(0, *(scan + 1455)); Assert.Equal(255, *(scan + 1552)); Assert.Equal(255, *(scan + 1649)); Assert.Equal(0, *(scan + 1746)); Assert.Equal(255, *(scan + 1843)); Assert.Equal(255, *(scan + 1940)); Assert.Equal(0, *(scan + 2037)); Assert.Equal(255, *(scan + 2134)); Assert.Equal(255, *(scan + 2231)); Assert.Equal(0, *(scan + 2328)); Assert.Equal(255, *(scan + 2425)); Assert.Equal(255, *(scan + 2522)); Assert.Equal(0, *(scan + 2619)); Assert.Equal(255, *(scan + 2716)); Assert.Equal(255, *(scan + 2813)); Assert.Equal(0, *(scan + 2910)); Assert.Equal(255, *(scan + 3007)); Assert.Equal(255, *(scan + 3104)); Assert.Equal(0, *(scan + 3201)); Assert.Equal(255, *(scan + 3298)); Assert.Equal(255, *(scan + 3395)); Assert.Equal(0, *(scan + 3492)); Assert.Equal(0, *(scan + 3589)); Assert.Equal(255, *(scan + 3686)); Assert.Equal(0, *(scan + 3783)); Assert.Equal(0, *(scan + 3880)); Assert.Equal(255, *(scan + 3977)); Assert.Equal(0, *(scan + 4074)); Assert.Equal(0, *(scan + 4171)); Assert.Equal(255, *(scan + 4268)); Assert.Equal(0, *(scan + 4365)); Assert.Equal(28, *(scan + 4462)); Assert.Equal(255, *(scan + 4559)); Assert.Equal(0, *(scan + 4656)); Assert.Equal(51, *(scan + 4753)); Assert.Equal(255, *(scan + 4850)); Assert.Equal(0, *(scan + 4947)); Assert.Equal(51, *(scan + 5044)); Assert.Equal(255, *(scan + 5141)); Assert.Equal(0, *(scan + 5238)); Assert.Equal(51, *(scan + 5335)); Assert.Equal(255, *(scan + 5432)); Assert.Equal(0, *(scan + 5529)); Assert.Equal(51, *(scan + 5626)); Assert.Equal(255, *(scan + 5723)); Assert.Equal(0, *(scan + 5820)); Assert.Equal(51, *(scan + 5917)); Assert.Equal(255, *(scan + 6014)); Assert.Equal(0, *(scan + 6111)); Assert.Equal(51, *(scan + 6208)); Assert.Equal(255, *(scan + 6305)); Assert.Equal(0, *(scan + 6402)); Assert.Equal(51, *(scan + 6499)); Assert.Equal(255, *(scan + 6596)); Assert.Equal(0, *(scan + 6693)); Assert.Equal(51, *(scan + 6790)); Assert.Equal(255, *(scan + 6887)); Assert.Equal(0, *(scan + 6984)); Assert.Equal(51, *(scan + 7081)); Assert.Equal(255, *(scan + 7178)); Assert.Equal(0, *(scan + 7275)); Assert.Equal(51, *(scan + 7372)); Assert.Equal(255, *(scan + 7469)); Assert.Equal(0, *(scan + 7566)); Assert.Equal(51, *(scan + 7663)); Assert.Equal(255, *(scan + 7760)); Assert.Equal(0, *(scan + 7857)); Assert.Equal(51, *(scan + 7954)); Assert.Equal(255, *(scan + 8051)); Assert.Equal(0, *(scan + 8148)); Assert.Equal(51, *(scan + 8245)); Assert.Equal(255, *(scan + 8342)); Assert.Equal(0, *(scan + 8439)); Assert.Equal(51, *(scan + 8536)); Assert.Equal(28, *(scan + 8633)); Assert.Equal(0, *(scan + 8730)); Assert.Equal(51, *(scan + 8827)); Assert.Equal(0, *(scan + 8924)); Assert.Equal(0, *(scan + 9021)); Assert.Equal(51, *(scan + 9118)); Assert.Equal(0, *(scan + 9215)); Assert.Equal(0, *(scan + 9312)); Assert.Equal(51, *(scan + 9409)); Assert.Equal(0, *(scan + 9506)); Assert.Equal(0, *(scan + 9603)); Assert.Equal(51, *(scan + 9700)); Assert.Equal(0, *(scan + 9797)); Assert.Equal(28, *(scan + 9894)); Assert.Equal(51, *(scan + 9991)); Assert.Equal(0, *(scan + 10088)); Assert.Equal(0, *(scan + 10185)); Assert.Equal(51, *(scan + 10282)); Assert.Equal(0, *(scan + 10379)); Assert.Equal(0, *(scan + 10476)); Assert.Equal(51, *(scan + 10573)); Assert.Equal(0, *(scan + 10670)); Assert.Equal(0, *(scan + 10767)); Assert.Equal(51, *(scan + 10864)); Assert.Equal(204, *(scan + 10961)); Assert.Equal(0, *(scan + 11058)); Assert.Equal(51, *(scan + 11155)); Assert.Equal(204, *(scan + 11252)); Assert.Equal(0, *(scan + 11349)); Assert.Equal(51, *(scan + 11446)); Assert.Equal(204, *(scan + 11543)); Assert.Equal(0, *(scan + 11640)); Assert.Equal(51, *(scan + 11737)); Assert.Equal(204, *(scan + 11834)); Assert.Equal(0, *(scan + 11931)); Assert.Equal(51, *(scan + 12028)); Assert.Equal(204, *(scan + 12125)); Assert.Equal(0, *(scan + 12222)); Assert.Equal(51, *(scan + 12319)); Assert.Equal(204, *(scan + 12416)); Assert.Equal(28, *(scan + 12513)); Assert.Equal(51, *(scan + 12610)); Assert.Equal(204, *(scan + 12707)); Assert.Equal(0, *(scan + 12804)); Assert.Equal(28, *(scan + 12901)); Assert.Equal(204, *(scan + 12998)); Assert.Equal(0, *(scan + 13095)); Assert.Equal(0, *(scan + 13192)); Assert.Equal(204, *(scan + 13289)); Assert.Equal(0, *(scan + 13386)); Assert.Equal(0, *(scan + 13483)); Assert.Equal(204, *(scan + 13580)); Assert.Equal(0, *(scan + 13677)); Assert.Equal(28, *(scan + 13774)); Assert.Equal(204, *(scan + 13871)); Assert.Equal(0, *(scan + 13968)); Assert.Equal(0, *(scan + 14065)); Assert.Equal(204, *(scan + 14162)); Assert.Equal(0, *(scan + 14259)); Assert.Equal(0, *(scan + 14356)); Assert.Equal(204, *(scan + 14453)); Assert.Equal(0, *(scan + 14550)); Assert.Equal(0, *(scan + 14647)); Assert.Equal(204, *(scan + 14744)); Assert.Equal(0, *(scan + 14841)); Assert.Equal(0, *(scan + 14938)); Assert.Equal(204, *(scan + 15035)); Assert.Equal(0, *(scan + 15132)); Assert.Equal(0, *(scan + 15229)); Assert.Equal(204, *(scan + 15326)); Assert.Equal(0, *(scan + 15423)); Assert.Equal(0, *(scan + 15520)); Assert.Equal(204, *(scan + 15617)); Assert.Equal(0, *(scan + 15714)); Assert.Equal(0, *(scan + 15811)); Assert.Equal(204, *(scan + 15908)); Assert.Equal(0, *(scan + 16005)); Assert.Equal(0, *(scan + 16102)); Assert.Equal(204, *(scan + 16199)); Assert.Equal(0, *(scan + 16296)); Assert.Equal(0, *(scan + 16393)); Assert.Equal(204, *(scan + 16490)); Assert.Equal(0, *(scan + 16587)); Assert.Equal(0, *(scan + 16684)); Assert.Equal(204, *(scan + 16781)); Assert.Equal(0, *(scan + 16878)); Assert.Equal(0, *(scan + 16975)); Assert.Equal(204, *(scan + 17072)); Assert.Equal(0, *(scan + 17169)); Assert.Equal(0, *(scan + 17266)); Assert.Equal(204, *(scan + 17363)); Assert.Equal(0, *(scan + 17460)); Assert.Equal(0, *(scan + 17557)); Assert.Equal(28, *(scan + 17654)); Assert.Equal(0, *(scan + 17751)); Assert.Equal(0, *(scan + 17848)); Assert.Equal(0, *(scan + 17945)); Assert.Equal(28, *(scan + 18042)); Assert.Equal(0, *(scan + 18139)); Assert.Equal(0, *(scan + 18236)); Assert.Equal(51, *(scan + 18333)); Assert.Equal(28, *(scan + 18430)); Assert.Equal(0, *(scan + 18527)); Assert.Equal(51, *(scan + 18624)); Assert.Equal(0, *(scan + 18721)); Assert.Equal(28, *(scan + 18818)); Assert.Equal(51, *(scan + 18915)); Assert.Equal(255, *(scan + 19012)); Assert.Equal(51, *(scan + 19109)); Assert.Equal(51, *(scan + 19206)); Assert.Equal(255, *(scan + 19303)); Assert.Equal(51, *(scan + 19400)); Assert.Equal(51, *(scan + 19497)); Assert.Equal(255, *(scan + 19594)); Assert.Equal(51, *(scan + 19691)); Assert.Equal(51, *(scan + 19788)); Assert.Equal(255, *(scan + 19885)); Assert.Equal(51, *(scan + 19982)); Assert.Equal(51, *(scan + 20079)); Assert.Equal(255, *(scan + 20176)); Assert.Equal(51, *(scan + 20273)); Assert.Equal(51, *(scan + 20370)); Assert.Equal(255, *(scan + 20467)); Assert.Equal(51, *(scan + 20564)); Assert.Equal(51, *(scan + 20661)); Assert.Equal(255, *(scan + 20758)); Assert.Equal(51, *(scan + 20855)); Assert.Equal(51, *(scan + 20952)); Assert.Equal(255, *(scan + 21049)); Assert.Equal(51, *(scan + 21146)); Assert.Equal(51, *(scan + 21243)); Assert.Equal(28, *(scan + 21340)); Assert.Equal(51, *(scan + 21437)); Assert.Equal(51, *(scan + 21534)); Assert.Equal(0, *(scan + 21631)); Assert.Equal(51, *(scan + 21728)); Assert.Equal(28, *(scan + 21825)); Assert.Equal(0, *(scan + 21922)); Assert.Equal(51, *(scan + 22019)); Assert.Equal(28, *(scan + 22116)); Assert.Equal(0, *(scan + 22213)); Assert.Equal(51, *(scan + 22310)); Assert.Equal(0, *(scan + 22407)); Assert.Equal(0, *(scan + 22504)); Assert.Equal(51, *(scan + 22601)); Assert.Equal(0, *(scan + 22698)); Assert.Equal(0, *(scan + 22795)); Assert.Equal(51, *(scan + 22892)); Assert.Equal(28, *(scan + 22989)); Assert.Equal(0, *(scan + 23086)); Assert.Equal(28, *(scan + 23183)); Assert.Equal(153, *(scan + 23280)); Assert.Equal(28, *(scan + 23377)); Assert.Equal(0, *(scan + 23474)); Assert.Equal(153, *(scan + 23571)); Assert.Equal(28, *(scan + 23668)); Assert.Equal(0, *(scan + 23765)); Assert.Equal(153, *(scan + 23862)); Assert.Equal(0, *(scan + 23959)); Assert.Equal(28, *(scan + 24056)); Assert.Equal(153, *(scan + 24153)); Assert.Equal(0, *(scan + 24250)); Assert.Equal(153, *(scan + 24347)); Assert.Equal(153, *(scan + 24444)); Assert.Equal(0, *(scan + 24541)); Assert.Equal(153, *(scan + 24638)); Assert.Equal(153, *(scan + 24735)); Assert.Equal(0, *(scan + 24832)); Assert.Equal(153, *(scan + 24929)); Assert.Equal(153, *(scan + 25026)); Assert.Equal(0, *(scan + 25123)); Assert.Equal(153, *(scan + 25220)); Assert.Equal(153, *(scan + 25317)); Assert.Equal(0, *(scan + 25414)); Assert.Equal(153, *(scan + 25511)); Assert.Equal(153, *(scan + 25608)); Assert.Equal(0, *(scan + 25705)); Assert.Equal(153, *(scan + 25802)); Assert.Equal(153, *(scan + 25899)); Assert.Equal(0, *(scan + 25996)); Assert.Equal(153, *(scan + 26093)); Assert.Equal(153, *(scan + 26190)); Assert.Equal(0, *(scan + 26287)); Assert.Equal(153, *(scan + 26384)); Assert.Equal(153, *(scan + 26481)); Assert.Equal(0, *(scan + 26578)); Assert.Equal(153, *(scan + 26675)); Assert.Equal(153, *(scan + 26772)); Assert.Equal(28, *(scan + 26869)); Assert.Equal(153, *(scan + 26966)); Assert.Equal(28, *(scan + 27063)); Assert.Equal(28, *(scan + 27160)); Assert.Equal(28, *(scan + 27257)); Assert.Equal(0, *(scan + 27354)); Assert.Equal(0, *(scan + 27451)); Assert.Equal(0, *(scan + 27548)); Assert.Equal(0, *(scan + 27645)); } } finally { bmp.UnlockBits(data); } } } [ConditionalFact(Helpers.IsDrawingSupported)] public void Xp32bppIconFeatures() { string sInFile = Helpers.GetTestBitmapPath("48x48_multiple_entries_32bit.ico"); using (Bitmap bmp = new Bitmap(sInFile)) { GraphicsUnit unit = GraphicsUnit.World; RectangleF rect = bmp.GetBounds(ref unit); Assert.True(bmp.RawFormat.Equals(ImageFormat.Icon)); // note that image is "promoted" to 32bits Assert.Equal(PixelFormat.Format32bppArgb, bmp.PixelFormat); Assert.Equal(73746, bmp.Flags); Assert.Equal(0, bmp.Palette.Entries.Length); Assert.Equal(1, bmp.FrameDimensionsList.Length); Assert.Equal(0, bmp.PropertyIdList.Length); Assert.Equal(0, bmp.PropertyItems.Length); Assert.Null(bmp.Tag); Assert.Equal(96.0f, bmp.HorizontalResolution); Assert.Equal(96.0f, bmp.VerticalResolution); Assert.Equal(16, bmp.Width); Assert.Equal(16, bmp.Height); Assert.Equal(0, rect.X); Assert.Equal(0, rect.Y); Assert.Equal(16, rect.Width); Assert.Equal(16, rect.Height); Assert.Equal(16, bmp.Size.Width); Assert.Equal(16, bmp.Size.Height); } } private void Save(PixelFormat original, PixelFormat expected, bool colorCheck) { string sOutFile = $"linerect-{expected}.ico"; // Save Bitmap bmp = new Bitmap(100, 100, original); Graphics gr = Graphics.FromImage(bmp); using (Pen p = new Pen(Color.Red, 2)) { gr.DrawLine(p, 10.0F, 10.0F, 90.0F, 90.0F); gr.DrawRectangle(p, 10.0F, 10.0F, 80.0F, 80.0F); } try { // there's no encoder, so we're not saving a ICO but the alpha // bit get sets so it's not like saving a bitmap either bmp.Save(sOutFile, ImageFormat.Icon); // Load using (Bitmap bmpLoad = new Bitmap(sOutFile)) { Assert.Equal(ImageFormat.Png, bmpLoad.RawFormat); Assert.Equal(expected, bmpLoad.PixelFormat); if (colorCheck) { Color color = bmpLoad.GetPixel(10, 10); Assert.Equal(Color.FromArgb(255, 255, 0, 0), color); } } } finally { gr.Dispose(); bmp.Dispose(); try { File.Delete(sOutFile); } catch { } } } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Save_24bppRgb() { Save(PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb, true); } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Save_32bppRgb() { Save(PixelFormat.Format32bppRgb, PixelFormat.Format32bppArgb, true); } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Save_32bppArgb() { Save(PixelFormat.Format32bppArgb, PixelFormat.Format32bppArgb, true); } [ConditionalFact(Helpers.RecentGdiplusIsAvailable)] public void Save_32bppPArgb() { Save(PixelFormat.Format32bppPArgb, PixelFormat.Format32bppArgb, true); } } }
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/installer/tests/HostActivation.Tests/DotnetArgValidation.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Build; using System; using System.IO; using Xunit; namespace Microsoft.DotNet.CoreSetup.Test.HostActivation { public class DotnetArgValidation : IClassFixture<DotnetArgValidation.SharedTestState> { private SharedTestState sharedTestState; public DotnetArgValidation(DotnetArgValidation.SharedTestState sharedState) { sharedTestState = sharedState; } [Fact] public void MuxerExec_MissingAppAssembly_Fails() { string assemblyName = Path.Combine(GetNonexistentAndUnnormalizedPath(), "foo.dll"); sharedTestState.BuiltDotNet.Exec("exec", assemblyName) .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"The application to execute does not exist: '{assemblyName}'"); } [Fact] public void MuxerExec_MissingAppAssembly_BadExtension_Fails() { string assemblyName = Path.Combine(GetNonexistentAndUnnormalizedPath(), "foo.xzy"); sharedTestState.BuiltDotNet.Exec("exec", assemblyName) .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"The application to execute does not exist: '{assemblyName}'"); } [Fact] public void MuxerExec_BadExtension_Fails() { // Get a valid file name, but not exe or dll string fxDir = Path.Combine(sharedTestState.RepoDirectories.DotnetSDK, "shared", "Microsoft.NETCore.App"); fxDir = new DirectoryInfo(fxDir).GetDirectories()[0].FullName; string assemblyName = Path.Combine(fxDir, "Microsoft.NETCore.App.deps.json"); sharedTestState.BuiltDotNet.Exec("exec", assemblyName) .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"dotnet exec needs a managed .dll or .exe extension. The application specified was '{assemblyName}'"); } [Fact] public void MissingArgumentValue_Fails() { sharedTestState.BuiltDotNet.Exec("--fx-version") .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"Failed to parse supported options or their values:"); } [Fact] public void InvalidFileOrCommand_NoSDK_ListsPossibleIssues() { string fileName = "NonExistent"; sharedTestState.BuiltDotNet.Exec(fileName) .WorkingDirectory(sharedTestState.BaseDirectory) .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"The application '{fileName}' does not exist") .And.HaveStdErrContaining($"It was not possible to find any installed .NET SDKs"); } // Return a non-exisitent path that contains a mix of / and \ private string GetNonexistentAndUnnormalizedPath() { return Path.Combine(sharedTestState.RepoDirectories.DotnetSDK, @"x\y/"); } public class SharedTestState : IDisposable { public RepoDirectoriesProvider RepoDirectories { get; } public DotNetCli BuiltDotNet { get; } public string BaseDirectory { get; } public SharedTestState() { RepoDirectories = new RepoDirectoriesProvider(); BuiltDotNet = new DotNetCli(RepoDirectories.BuiltDotnet); BaseDirectory = SharedFramework.CalculateUniqueTestDirectory(Path.Combine(TestArtifact.TestArtifactsPath, "argValidation")); // Create an empty global.json file Directory.CreateDirectory(BaseDirectory); File.WriteAllText(Path.Combine(BaseDirectory, "global.json"), "{}"); } public void Dispose() { if (!TestArtifact.PreserveTestRuns() && Directory.Exists(BaseDirectory)) { Directory.Delete(BaseDirectory, true); } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.DotNet.Cli.Build; using System; using System.IO; using Xunit; namespace Microsoft.DotNet.CoreSetup.Test.HostActivation { public class DotnetArgValidation : IClassFixture<DotnetArgValidation.SharedTestState> { private SharedTestState sharedTestState; public DotnetArgValidation(DotnetArgValidation.SharedTestState sharedState) { sharedTestState = sharedState; } [Fact] public void MuxerExec_MissingAppAssembly_Fails() { string assemblyName = Path.Combine(GetNonexistentAndUnnormalizedPath(), "foo.dll"); sharedTestState.BuiltDotNet.Exec("exec", assemblyName) .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"The application to execute does not exist: '{assemblyName}'"); } [Fact] public void MuxerExec_MissingAppAssembly_BadExtension_Fails() { string assemblyName = Path.Combine(GetNonexistentAndUnnormalizedPath(), "foo.xzy"); sharedTestState.BuiltDotNet.Exec("exec", assemblyName) .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"The application to execute does not exist: '{assemblyName}'"); } [Fact] public void MuxerExec_BadExtension_Fails() { // Get a valid file name, but not exe or dll string fxDir = Path.Combine(sharedTestState.RepoDirectories.DotnetSDK, "shared", "Microsoft.NETCore.App"); fxDir = new DirectoryInfo(fxDir).GetDirectories()[0].FullName; string assemblyName = Path.Combine(fxDir, "Microsoft.NETCore.App.deps.json"); sharedTestState.BuiltDotNet.Exec("exec", assemblyName) .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"dotnet exec needs a managed .dll or .exe extension. The application specified was '{assemblyName}'"); } [Fact] public void MissingArgumentValue_Fails() { sharedTestState.BuiltDotNet.Exec("--fx-version") .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"Failed to parse supported options or their values:"); } [Fact] public void InvalidFileOrCommand_NoSDK_ListsPossibleIssues() { string fileName = "NonExistent"; sharedTestState.BuiltDotNet.Exec(fileName) .WorkingDirectory(sharedTestState.BaseDirectory) .CaptureStdOut() .CaptureStdErr() .Execute(fExpectedToFail: true) .Should().Fail() .And.HaveStdErrContaining($"The application '{fileName}' does not exist") .And.HaveStdErrContaining($"It was not possible to find any installed .NET SDKs"); } // Return a non-exisitent path that contains a mix of / and \ private string GetNonexistentAndUnnormalizedPath() { return Path.Combine(sharedTestState.RepoDirectories.DotnetSDK, @"x\y/"); } public class SharedTestState : IDisposable { public RepoDirectoriesProvider RepoDirectories { get; } public DotNetCli BuiltDotNet { get; } public string BaseDirectory { get; } public SharedTestState() { RepoDirectories = new RepoDirectoriesProvider(); BuiltDotNet = new DotNetCli(RepoDirectories.BuiltDotnet); BaseDirectory = SharedFramework.CalculateUniqueTestDirectory(Path.Combine(TestArtifact.TestArtifactsPath, "argValidation")); // Create an empty global.json file Directory.CreateDirectory(BaseDirectory); File.WriteAllText(Path.Combine(BaseDirectory, "global.json"), "{}"); } public void Dispose() { if (!TestArtifact.PreserveTestRuns() && Directory.Exists(BaseDirectory)) { Directory.Delete(BaseDirectory, true); } } } } }
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/tests/Interop/PInvoke/Generics/GenericsNative.SequentialClassL.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <stdio.h> #include <stdint.h> #include <xplatform.h> #include <platformdefines.h> struct SequentialClassL { int64_t value; }; static SequentialClassL SequentialClassLValue = { }; extern "C" DLL_EXPORT SequentialClassL* STDMETHODCALLTYPE GetSequentialClassL(int64_t value) { throw "P/Invoke for SequentialClass<long> should be unsupported."; } extern "C" DLL_EXPORT void STDMETHODCALLTYPE GetSequentialClassLOut(int64_t value, SequentialClassL** pValue) { throw "P/Invoke for SequentialClass<long> should be unsupported."; } extern "C" DLL_EXPORT const SequentialClassL** STDMETHODCALLTYPE GetSequentialClassLPtr(int64_t value) { throw "P/Invoke for SequentialClass<long> should be unsupported."; } extern "C" DLL_EXPORT SequentialClassL* STDMETHODCALLTYPE AddSequentialClassL(SequentialClassL* lhs, SequentialClassL* rhs) { throw "P/Invoke for SequentialClass<long> should be unsupported."; } extern "C" DLL_EXPORT SequentialClassL* STDMETHODCALLTYPE AddSequentialClassLs(const SequentialClassL** pValues, uint32_t count) { throw "P/Invoke for SequentialClass<long> should be unsupported."; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <stdio.h> #include <stdint.h> #include <xplatform.h> #include <platformdefines.h> struct SequentialClassL { int64_t value; }; static SequentialClassL SequentialClassLValue = { }; extern "C" DLL_EXPORT SequentialClassL* STDMETHODCALLTYPE GetSequentialClassL(int64_t value) { throw "P/Invoke for SequentialClass<long> should be unsupported."; } extern "C" DLL_EXPORT void STDMETHODCALLTYPE GetSequentialClassLOut(int64_t value, SequentialClassL** pValue) { throw "P/Invoke for SequentialClass<long> should be unsupported."; } extern "C" DLL_EXPORT const SequentialClassL** STDMETHODCALLTYPE GetSequentialClassLPtr(int64_t value) { throw "P/Invoke for SequentialClass<long> should be unsupported."; } extern "C" DLL_EXPORT SequentialClassL* STDMETHODCALLTYPE AddSequentialClassL(SequentialClassL* lhs, SequentialClassL* rhs) { throw "P/Invoke for SequentialClass<long> should be unsupported."; } extern "C" DLL_EXPORT SequentialClassL* STDMETHODCALLTYPE AddSequentialClassLs(const SequentialClassL** pValues, uint32_t count) { throw "P/Invoke for SequentialClass<long> should be unsupported."; }
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/mono/mono/mini/cpu-riscv32.md
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the MIT license. # # RISC-V RV32 Machine Description # # This file describes various properties of Mini instructions for RV32 and is # read by genmdesc.py to generate a C header file used by various parts of the # JIT. # # Lines are of the form: # # <name>: len:<length> [dest:<rspec>] [src1:<rspec>] [src2:<rspec>] [src3:<rspec>] [clob:<cspec>] # # Here, <name> is the name of the instruction as specified in mini-ops.h. # length is the maximum number of bytes that could be needed to generate native # code for the instruction. dest, src1, src2, and src3 specify output and input # registers needed by the instruction. <rspec> can be one of: # # a a0 # i any integer register # b any integer register (used as a pointer) # f any float register (a0..a1 pair in soft float) # l a0..a1 pair # # clob specifies which registers are clobbered (i.e. overwritten with garbage) # by the instruction. <cspec> can be one of: # # a a0 # c all caller-saved registers
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the MIT license. # # RISC-V RV32 Machine Description # # This file describes various properties of Mini instructions for RV32 and is # read by genmdesc.py to generate a C header file used by various parts of the # JIT. # # Lines are of the form: # # <name>: len:<length> [dest:<rspec>] [src1:<rspec>] [src2:<rspec>] [src3:<rspec>] [clob:<cspec>] # # Here, <name> is the name of the instruction as specified in mini-ops.h. # length is the maximum number of bytes that could be needed to generate native # code for the instruction. dest, src1, src2, and src3 specify output and input # registers needed by the instruction. <rspec> can be one of: # # a a0 # i any integer register # b any integer register (used as a pointer) # f any float register (a0..a1 pair in soft float) # l a0..a1 pair # # clob specifies which registers are clobbered (i.e. overwritten with garbage) # by the instruction. <cspec> can be one of: # # a a0 # c all caller-saved registers
-1
dotnet/runtime
66,130
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296
This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
dotnet-bot
2022-03-03T06:45:13Z
2022-03-06T13:47:20Z
be629f49a350d526de2c65981294734cee420b90
6fce82cb7b111ba9a2547b70b4592cea98ae314e
Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 1647296. This is the pull request automatically created by the OneLocBuild task in the build process to check-in localized files generated based upon translation source files (.lcl files) handed-back from the downstream localization pipeline. If there are issues in translations, visit https://aka.ms/ceLocBug and log bugs for fixes. The OneLocBuild wiki is https://aka.ms/onelocbuild and the localization process in general is documented at https://aka.ms/AllAboutLoc.
./src/coreclr/System.Private.CoreLib/src/System/Math.CoreCLR.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================ ** ** ** ** Purpose: Some floating-point math operations ** ** ===========================================================*/ using System.Runtime.CompilerServices; namespace System { public static partial class Math { [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Acos(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Acosh(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Asin(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Asinh(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Atan(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Atanh(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Atan2(double y, double x); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Cbrt(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Ceiling(double a); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Cos(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Cosh(double value); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Exp(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Floor(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double FusedMultiplyAdd(double x, double y, double z); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Log(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Log2(double x); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Log10(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Pow(double x, double y); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Sin(double a); public static unsafe (double Sin, double Cos) SinCos(double x) { double sin, cos; SinCos(x, &sin, &cos); return (sin, cos); } [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Sinh(double value); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Sqrt(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Tan(double a); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Tanh(double value); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] private static extern double FMod(double x, double y); [MethodImpl(MethodImplOptions.InternalCall)] private static extern unsafe double ModF(double x, double* intptr); [MethodImpl(MethodImplOptions.InternalCall)] private static extern unsafe void SinCos(double x, double* sin, double* cos); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================ ** ** ** ** Purpose: Some floating-point math operations ** ** ===========================================================*/ using System.Runtime.CompilerServices; namespace System { public static partial class Math { [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Acos(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Acosh(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Asin(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Asinh(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Atan(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Atanh(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Atan2(double y, double x); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Cbrt(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Ceiling(double a); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Cos(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Cosh(double value); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Exp(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Floor(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double FusedMultiplyAdd(double x, double y, double z); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Log(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Log2(double x); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Log10(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Pow(double x, double y); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Sin(double a); public static unsafe (double Sin, double Cos) SinCos(double x) { double sin, cos; SinCos(x, &sin, &cos); return (sin, cos); } [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Sinh(double value); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Sqrt(double d); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Tan(double a); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] public static extern double Tanh(double value); [Intrinsic] [MethodImpl(MethodImplOptions.InternalCall)] private static extern double FMod(double x, double y); [MethodImpl(MethodImplOptions.InternalCall)] private static extern unsafe double ModF(double x, double* intptr); [MethodImpl(MethodImplOptions.InternalCall)] private static extern unsafe void SinCos(double x, double* sin, double* cos); } }
-1