Skip to content

Commit

Permalink
Fix typo (dotnet/corefx#36107)
Browse files Browse the repository at this point in the history
.Net -> .NET

Commit migrated from dotnet/corefx@d29ae79
  • Loading branch information
Potapy4 authored and davidsh committed Mar 17, 2019
1 parent 35ad444 commit 28f63d6
Show file tree
Hide file tree
Showing 54 changed files with 116 additions and 116 deletions.
Expand Up @@ -96,7 +96,7 @@ private static int Main(string[] args)
(instance as IDisposable)?.Dispose();
}

// Environment.Exit not supported on .Net Native - don't even call it to avoid the nuisance exception.
// Environment.Exit not supported on .NET Native - don't even call it to avoid the nuisance exception.
if (!RuntimeInformation.FrameworkDescription.StartsWith(".NET Native", StringComparison.OrdinalIgnoreCase))
{
// Use Exit rather than simply returning the exit code so that we forcibly shut down
Expand Down
Expand Up @@ -3,7 +3,7 @@
# See the LICENSE file in the project root for more information.

# Requires Visual Studio Command Prompt
# Requires Azure SDK and .Net Framework SDK installed on the build machine.
# Requires Azure SDK and .NET Framework SDK installed on the build machine.

$cdir = pwd
$folderName = "CoreFxNetCloudService"
Expand Down
Expand Up @@ -59,7 +59,7 @@ public static partial class PlatformDetection
public static bool SupportsClientAlpn => SupportsAlpn ||
(RuntimeInformation.IsOSPlatform(OSPlatform.OSX) && PlatformDetection.OSXVersion > new Version(10, 12));

// Officially, .Net Native only supports processes running in an AppContainer. However, the majority of tests still work fine
// Officially, .NET Native only supports processes running in an AppContainer. However, the majority of tests still work fine
// in a normal Win32 process and we often do so as running in an AppContainer imposes a substantial tax in debuggability
// and investigatability. This predicate is used in ConditionalFacts to disable the specific tests that really need to be
// running in AppContainer when running on .NetNative.
Expand Down
Expand Up @@ -2110,7 +2110,7 @@ skipargument:

End Sub

' Type.IsEquivalentTo is not supported in .Net 4.0
' Type.IsEquivalentTo is not supported in .NET Framework 4.0
Private Shared Function GetArgumentType(ByVal argument As Object) As Type
'A Nothing object has no type.
If argument Is Nothing Then Return Nothing
Expand Down
Expand Up @@ -268,7 +268,7 @@ public void CollisionExceptionMessageContainsKey()
.Add("firstKey", "1").Add("secondKey", "2");
var exception = AssertExtensions.Throws<ArgumentException>(null, () => map.Add("firstKey", "3"));

if (!PlatformDetection.IsNetNative) //.Net Native toolchain removes exception messages.
if (!PlatformDetection.IsNetNative) //.NET Native toolchain removes exception messages.
{
Assert.Contains("firstKey", exception.Message);
}
Expand Down
Expand Up @@ -313,7 +313,7 @@ public void CollisionExceptionMessageContainsKey()
var map = ImmutableSortedDictionary.Create<string, string>()
.Add("firstKey", "1").Add("secondKey", "2");
var exception = AssertExtensions.Throws<ArgumentException>(null, () => map.Add("firstKey", "3"));
if (!PlatformDetection.IsNetNative) //.Net Native toolchain removes exception messages.
if (!PlatformDetection.IsNetNative) //.NET Native toolchain removes exception messages.
{
Assert.Contains("firstKey", exception.Message);
}
Expand Down
Expand Up @@ -29,7 +29,7 @@ public static ICollection<object> GetCollectionWrapper(Type itemType, object col
return (ICollection<object>)collectionObject;
}

// Most common .Net collections implement IList as well so for those
// Most common .NET collections implement IList as well so for those
// cases we can optimize the wrapping instead of using reflection to create
// a generic type.
if (typeof(IList).IsAssignableFrom(collectionObject.GetType()))
Expand Down
Expand Up @@ -321,7 +321,7 @@ public void Add2_Name_Duplicate()
ex = AssertExtensions.Throws<ArgumentException>(null, () => container.Add(c2, "dup"));
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf("'dup'") != -1);
Expand All @@ -336,7 +336,7 @@ public void Add2_Name_Duplicate()
// unique and case-insensitive
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf("'duP'") != -1);
Expand All @@ -361,7 +361,7 @@ public void Add2_Name_Duplicate()
// unique and case-insensitive
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf("'dup'") != -1);
Expand Down Expand Up @@ -705,7 +705,7 @@ public void ValidateName_Component_Null()
ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => _container.InvokeValidateName((IComponent)null, "A"));
Assert.Equal(typeof(ArgumentNullException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.Equal("component", ex.ParamName);
Expand Down Expand Up @@ -740,7 +740,7 @@ public void ValidateName_Name_Duplicate()
// unique and case-insensitive
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf("'dup'") != -1);
Expand All @@ -756,7 +756,7 @@ public void ValidateName_Name_Duplicate()
// unique and case-insensitive
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf("'dup'") != -1);
Expand All @@ -774,7 +774,7 @@ public void ValidateName_Name_Duplicate()
// unique and case-insensitive
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf("'dup'") != -1);
Expand Down
Expand Up @@ -81,7 +81,7 @@ public void Append_Context_Null()
ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => stack.Append(null));
Assert.Equal(typeof(ArgumentNullException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.Equal("context", ex.ParamName);
Expand Down Expand Up @@ -119,7 +119,7 @@ public void Indexer1_Level_Negative()
ex = Assert.Throws<ArgumentOutOfRangeException>(() => stack[-1]);
Assert.Equal(typeof(ArgumentOutOfRangeException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.Equal(new ArgumentOutOfRangeException("level").Message, ex.Message);
Assert.Equal("level", ex.ParamName);
Expand All @@ -129,7 +129,7 @@ public void Indexer1_Level_Negative()
ex = Assert.Throws<ArgumentOutOfRangeException>(() => stack[-5]);
Assert.Equal(typeof(ArgumentOutOfRangeException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.Equal(new ArgumentOutOfRangeException("level").Message, ex.Message);
Assert.Equal("level", ex.ParamName);
Expand Down Expand Up @@ -163,7 +163,7 @@ public void Indexer2_Type_Null()
ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => stack[(Type)null]);
Assert.Equal(typeof(ArgumentNullException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.Equal("type", ex.ParamName);
Expand All @@ -177,7 +177,7 @@ public void Push_Context_Null()
ArgumentNullException ex= Assert.Throws<ArgumentNullException>(()=> stack.Push(null));
Assert.Equal(typeof(ArgumentNullException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.Equal("context", ex.ParamName);
Expand Down
Expand Up @@ -95,7 +95,7 @@ public void ConvertFrom_String_InvalidCulture()
// a CultureInfo object on this computer
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf(typeof(CultureInfo).Name) != -1);
Expand All @@ -116,7 +116,7 @@ public void ConvertFrom_String_InvalidCulture()
// a CultureInfo object on this computer
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf(typeof(CultureInfo).Name) != -1);
Expand All @@ -137,7 +137,7 @@ public void ConvertFrom_String_InvalidCulture()
// a CultureInfo object on this computer
Assert.Equal(typeof(ArgumentException), ex.GetType());
Assert.Null(ex.InnerException);
if (!PlatformDetection.IsNetNative) // .Net Native toolchain optimizes away exception messages and paramnames.
if (!PlatformDetection.IsNetNative) // .NET Native toolchain optimizes away exception messages and paramnames.
{
Assert.NotNull(ex.Message);
Assert.True(ex.Message.IndexOf(typeof(CultureInfo).Name) != -1);
Expand Down
Expand Up @@ -413,7 +413,7 @@
<data name="SQL_WrongType" xml:space="preserve"><value>Expecting argument of type {1}, but received type {0}.</value></data>
<data name="ADP_InvalidConnectionOptionValue" xml:space="preserve"><value>Invalid value for key '{0}'.</value></data>
<data name="ADP_KeywordNotSupported" xml:space="preserve"><value>Keyword not supported: '{0}'.</value></data>
<data name="ADP_InternalProviderError" xml:space="preserve"><value>Internal .Net Framework Data Provider error {0}.</value></data>
<data name="ADP_InternalProviderError" xml:space="preserve"><value>Internal .NET Framework Data Provider error {0}.</value></data>
<data name="ADP_NoQuoteChange" xml:space="preserve"><value>The QuotePrefix and QuoteSuffix properties cannot be changed once an Insert, Update, or Delete command has been generated.</value></data>
<data name="ADP_MissingSourceCommand" xml:space="preserve"><value>The DataAdapter.SelectCommand property needs to be initialized.</value></data>
<data name="ADP_MissingSourceCommandConnection" xml:space="preserve"><value>The DataAdapter.SelectCommand.Connection property needs to be initialized;</value></data>
Expand Down
Expand Up @@ -546,7 +546,7 @@ protected override void SetStorage(object store, BitArray nullbits)
/// </summary>
/// <param name="type">type to test for IDynamicMetaObjectProvider</param>
/// <exception cref="InvalidOperationException">DataSet will not serialize types that implement IDynamicMetaObjectProvider but do not also implement IXmlSerializable</exception>
/// <remarks>IDynamicMetaObjectProvider was introduced in .Net Framework V4.0 into System.Core</remarks>
/// <remarks>IDynamicMetaObjectProvider was introduced in .NET Framework V4.0 into System.Core</remarks>
internal static void VerifyIDynamicMetaObjectProvider(Type type)
{
if (typeof(IDynamicMetaObjectProvider).IsAssignableFrom(type) &&
Expand Down
Expand Up @@ -696,7 +696,7 @@ public void GetParentRows_ByNameDataRowVersion()
drArrResult = drChild.GetParentRows("Parent-Child", DataRowVersion.Default);
Assert.Equal(drArrExcepted, drArrResult);

/* .Net don't work as expected
/* .NET don't work as expected
//Check DataRowVersion.Proposed
// Teting: DataRow.GetParentRows_D_D ,DataRowVersion.Proposed
drArrExcepted = dtParent.Select("ParentId=" + drParent["ParentId"],"",DataViewRowState.ModifiedCurrent);
Expand Down
4 changes: 2 additions & 2 deletions src/libraries/System.Data.Odbc/src/Resources/Strings.resx
Expand Up @@ -267,7 +267,7 @@
<value>Keyword not supported: '{0}'.</value>
</data>
<data name="ADP_InternalProviderError" xml:space="preserve">
<value>Internal .Net Framework Data Provider error {0}.</value>
<value>Internal .NET Framework Data Provider error {0}.</value>
</data>
<data name="ADP_InvalidMultipartName" xml:space="preserve">
<value>{0} '{1}'.</value>
Expand Down Expand Up @@ -306,7 +306,7 @@
<value>OdbcCommandBuilder.DeriveParameters failed because the OdbcCommand.CommandText property value is an invalid multipart name</value>
</data>
<data name="ODBC_NotSupportedEnumerationValue" xml:space="preserve">
<value>The {0} enumeration value, {1}, is not supported by the .Net Framework Odbc Data Provider.</value>
<value>The {0} enumeration value, {1}, is not supported by the .NET Framework Odbc Data Provider.</value>
</data>
<data name="ADP_CommandTextRequired" xml:space="preserve">
<value>{0}: CommandText property has not been initialized</value>
Expand Down
Expand Up @@ -243,7 +243,7 @@
<value>Keyword not supported: '{0}'.</value>
</data>
<data name="ADP_InternalProviderError" xml:space="preserve">
<value>Internal .Net Framework Data Provider error {0}.</value>
<value>Internal .NET Framework Data Provider error {0}.</value>
</data>
<data name="ADP_InvalidMultipartName" xml:space="preserve">
<value>{0} '{1}'.</value>
Expand Down Expand Up @@ -273,7 +273,7 @@
<value>Connecting to a mirrored SQL Server instance using the MultiSubnetFailover connection option is not supported.</value>
</data>
<data name="SQL_NotSupportedEnumerationValue" xml:space="preserve">
<value>The {0} enumeration value, {1}, is not supported by the .Net Framework SqlClient Data Provider.</value>
<value>The {0} enumeration value, {1}, is not supported by the .NET Framework SqlClient Data Provider.</value>
</data>
<data name="ADP_CommandTextRequired" xml:space="preserve">
<value>{0}: CommandText property has not been initialized</value>
Expand Down Expand Up @@ -402,7 +402,7 @@
<value>The instance of SQL Server you attempted to connect to does not support encryption.</value>
</data>
<data name="SQL_InvalidSQLServerVersionUnknown" xml:space="preserve">
<value>Unsupported SQL Server version. The .Net Framework SqlClient Data Provider can only be used with SQL Server versions 7.0 and later.</value>
<value>Unsupported SQL Server version. The .NET Framework SqlClient Data Provider can only be used with SQL Server versions 7.0 and later.</value>
</data>
<data name="SQL_CannotCreateNormalizer" xml:space="preserve">
<value>Cannot create normalizer for '{0}'.</value>
Expand Down
Expand Up @@ -23,7 +23,7 @@ internal static readonly SqlDependencyPerAppDomainDispatcher
internal object _instanceLock = new object();

// Dependency ID -> Dependency hashtable. 1 -> 1 mapping.
// 1) Used for ASP.Net to map from ID to dependency.
// 1) Used for ASP.NET to map from ID to dependency.
// 2) Used to enumerate dependencies to invalidate based on server.
private Dictionary<string, SqlDependency> _dependencyIdToDependencyHash;

Expand Down Expand Up @@ -254,7 +254,7 @@ internal void InvalidateServer(string server, SqlNotification sqlNotification)
}
}

// This method is called by SqlCommand to enable ASP.Net scenarios - map from ID to Dependency.
// This method is called by SqlCommand to enable ASP.NET scenarios - map from ID to Dependency.
internal SqlDependency LookupDependencyEntry(string id)
{
if (null == id)
Expand Down
Expand Up @@ -169,7 +169,7 @@ protected virtual int BinaryStateSize
/// <remarks>
/// For fast performance, avoid using MemoryStream/BinaryReader or reflection/serialization. I measured the difference between several implementations and found that:
/// * Difference in time performance between using plain byte array versus MemoryStream with BinaryReader is ~ 1/10!
/// * Difference between this implementation and serialization via .Net Serialization is ~1/100!
/// * Difference between this implementation and serialization via .NET Serialization is ~1/100!
/// </remarks>
protected virtual void Serialize(byte[] binState, out int nextOffset)
{
Expand Down

0 comments on commit 28f63d6

Please sign in to comment.