Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 0fbd855

Browse files
authored
Simply type names in Corelib (#18623)
1 parent eb31c35 commit 0fbd855

File tree

379 files changed

+5743
-5743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+5743
-5743
lines changed

src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.MUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ internal static partial class Kernel32
1313
internal const uint MUI_PREFERRED_UI_LANGUAGES = 0x10;
1414

1515
[DllImport(Libraries.Kernel32, CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)]
16-
internal static extern bool GetFileMUIPath(uint flags, String filePath, [Out] StringBuilder language, ref int languageLength, [Out] StringBuilder fileMuiPath, ref int fileMuiPathLength, ref Int64 enumerator);
16+
internal static extern bool GetFileMUIPath(uint flags, string filePath, [Out] StringBuilder language, ref int languageLength, [Out] StringBuilder fileMuiPath, ref int fileMuiPathLength, ref long enumerator);
1717
}
1818
}

src/System.Private.CoreLib/shared/Interop/Windows/OleAut32/Interop.SysAllocStringLen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ internal partial class OleAut32
1414
internal static extern SafeBSTRHandle SysAllocStringLen(IntPtr src, uint len);
1515

1616
[DllImport(Libraries.OleAut32, CharSet = CharSet.Unicode)]
17-
internal static extern IntPtr SysAllocStringLen(String src, int len);
17+
internal static extern IntPtr SysAllocStringLen(string src, int len);
1818
}
1919
}

src/System.Private.CoreLib/shared/System/AccessViolationException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ public AccessViolationException()
2626
HResult = HResults.E_POINTER;
2727
}
2828

29-
public AccessViolationException(String message)
29+
public AccessViolationException(string message)
3030
: base(message)
3131
{
3232
HResult = HResults.E_POINTER;
3333
}
3434

35-
public AccessViolationException(String message, Exception innerException)
35+
public AccessViolationException(string message, Exception innerException)
3636
: base(message, innerException)
3737
{
3838
HResult = HResults.E_POINTER;

src/System.Private.CoreLib/shared/System/ApplicationException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ public ApplicationException()
3939
// message, its HRESULT set to COR_E_APPLICATION,
4040
// and its ExceptionInfo reference set to null.
4141
//
42-
public ApplicationException(String message)
42+
public ApplicationException(string message)
4343
: base(message)
4444
{
4545
HResult = HResults.COR_E_APPLICATION;
4646
}
4747

48-
public ApplicationException(String message, Exception innerException)
48+
public ApplicationException(string message, Exception innerException)
4949
: base(message, innerException)
5050
{
5151
HResult = HResults.COR_E_APPLICATION;

src/System.Private.CoreLib/shared/System/ArgumentNullException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ public ArgumentNullException()
3030
HResult = HResults.E_POINTER;
3131
}
3232

33-
public ArgumentNullException(String paramName)
33+
public ArgumentNullException(string paramName)
3434
: base(SR.ArgumentNull_Generic, paramName)
3535
{
3636
HResult = HResults.E_POINTER;
3737
}
3838

39-
public ArgumentNullException(String message, Exception innerException)
39+
public ArgumentNullException(string message, Exception innerException)
4040
: base(message, innerException)
4141
{
4242
HResult = HResults.E_POINTER;
4343
}
4444

45-
public ArgumentNullException(String paramName, String message)
45+
public ArgumentNullException(string paramName, string message)
4646
: base(message, paramName)
4747
{
4848
HResult = HResults.E_POINTER;

src/System.Private.CoreLib/shared/System/ArgumentOutOfRangeException.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace System
2222
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
2323
public class ArgumentOutOfRangeException : ArgumentException
2424
{
25-
private Object _actualValue;
25+
private object _actualValue;
2626

2727
// Creates a new ArgumentOutOfRangeException with its message
2828
// string set to a default message explaining an argument was out of range.
@@ -32,19 +32,19 @@ public ArgumentOutOfRangeException()
3232
HResult = HResults.COR_E_ARGUMENTOUTOFRANGE;
3333
}
3434

35-
public ArgumentOutOfRangeException(String paramName)
35+
public ArgumentOutOfRangeException(string paramName)
3636
: base(SR.Arg_ArgumentOutOfRangeException, paramName)
3737
{
3838
HResult = HResults.COR_E_ARGUMENTOUTOFRANGE;
3939
}
4040

41-
public ArgumentOutOfRangeException(String paramName, String message)
41+
public ArgumentOutOfRangeException(string paramName, string message)
4242
: base(message, paramName)
4343
{
4444
HResult = HResults.COR_E_ARGUMENTOUTOFRANGE;
4545
}
4646

47-
public ArgumentOutOfRangeException(String message, Exception innerException)
47+
public ArgumentOutOfRangeException(string message, Exception innerException)
4848
: base(message, innerException)
4949
{
5050
HResult = HResults.COR_E_ARGUMENTOUTOFRANGE;
@@ -53,7 +53,7 @@ public ArgumentOutOfRangeException(String message, Exception innerException)
5353
// We will not use this in the classlibs, but we'll provide it for
5454
// anyone that's really interested so they don't have to stick a bunch
5555
// of printf's in their code.
56-
public ArgumentOutOfRangeException(String paramName, Object actualValue, String message)
56+
public ArgumentOutOfRangeException(string paramName, object actualValue, string message)
5757
: base(message, paramName)
5858
{
5959
_actualValue = actualValue;
@@ -72,14 +72,14 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
7272
info.AddValue("ActualValue", _actualValue, typeof(object));
7373
}
7474

75-
public override String Message
75+
public override string Message
7676
{
7777
get
7878
{
79-
String s = base.Message;
79+
string s = base.Message;
8080
if (_actualValue != null)
8181
{
82-
String valueMessage = SR.Format(SR.ArgumentOutOfRange_ActualValue, _actualValue.ToString());
82+
string valueMessage = SR.Format(SR.ArgumentOutOfRange_ActualValue, _actualValue.ToString());
8383
if (s == null)
8484
return valueMessage;
8585
return s + Environment.NewLine + valueMessage;
@@ -92,7 +92,7 @@ public override String Message
9292
// Note - we don't set this anywhere in the class libraries in
9393
// version 1, but it might come in handy for other developers who
9494
// want to avoid sticking printf's in their code.
95-
public virtual Object ActualValue
95+
public virtual object ActualValue
9696
{
9797
get { return _actualValue; }
9898
}

src/System.Private.CoreLib/shared/System/ArithmeticException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public ArithmeticException()
3434
// message, its HRESULT set to COR_E_ARITHMETIC,
3535
// and its ExceptionInfo reference set to null.
3636
//
37-
public ArithmeticException(String message)
37+
public ArithmeticException(string message)
3838
: base(message)
3939
{
4040
HResult = HResults.COR_E_ARITHMETIC;
4141
}
4242

43-
public ArithmeticException(String message, Exception innerException)
43+
public ArithmeticException(string message, Exception innerException)
4444
: base(message, innerException)
4545
{
4646
HResult = HResults.COR_E_ARITHMETIC;

src/System.Private.CoreLib/shared/System/ArraySegment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void CopyTo(ArraySegment<T> destination)
131131
System.Array.Copy(_array, _offset, destination._array, destination._offset, _count);
132132
}
133133

134-
public override bool Equals(Object obj)
134+
public override bool Equals(object obj)
135135
{
136136
if (obj is ArraySegment<T>)
137137
return Equals((ArraySegment<T>)obj);

src/System.Private.CoreLib/shared/System/ArrayTypeMismatchException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public ArrayTypeMismatchException()
3434
// message, its HRESULT set to COR_E_ARRAYTYPEMISMATCH,
3535
// and its ExceptionInfo reference set to null.
3636
//
37-
public ArrayTypeMismatchException(String message)
37+
public ArrayTypeMismatchException(string message)
3838
: base(message)
3939
{
4040
HResult = HResults.COR_E_ARRAYTYPEMISMATCH;
4141
}
4242

43-
public ArrayTypeMismatchException(String message, Exception innerException)
43+
public ArrayTypeMismatchException(string message, Exception innerException)
4444
: base(message, innerException)
4545
{
4646
HResult = HResults.COR_E_ARRAYTYPEMISMATCH;

src/System.Private.CoreLib/shared/System/BadImageFormatException.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,34 @@ namespace System
2121
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
2222
public partial class BadImageFormatException : SystemException
2323
{
24-
private String _fileName; // The name of the corrupt PE file.
25-
private String _fusionLog = null; // fusion log (when applicable)
24+
private string _fileName; // The name of the corrupt PE file.
25+
private string _fusionLog = null; // fusion log (when applicable)
2626

2727
public BadImageFormatException()
2828
: base(SR.Arg_BadImageFormatException)
2929
{
3030
HResult = HResults.COR_E_BADIMAGEFORMAT;
3131
}
3232

33-
public BadImageFormatException(String message)
33+
public BadImageFormatException(string message)
3434
: base(message)
3535
{
3636
HResult = HResults.COR_E_BADIMAGEFORMAT;
3737
}
3838

39-
public BadImageFormatException(String message, Exception inner)
39+
public BadImageFormatException(string message, Exception inner)
4040
: base(message, inner)
4141
{
4242
HResult = HResults.COR_E_BADIMAGEFORMAT;
4343
}
4444

45-
public BadImageFormatException(String message, String fileName) : base(message)
45+
public BadImageFormatException(string message, string fileName) : base(message)
4646
{
4747
HResult = HResults.COR_E_BADIMAGEFORMAT;
4848
_fileName = fileName;
4949
}
5050

51-
public BadImageFormatException(String message, String fileName, Exception inner)
51+
public BadImageFormatException(string message, string fileName, Exception inner)
5252
: base(message, inner)
5353
{
5454
HResult = HResults.COR_E_BADIMAGEFORMAT;
@@ -69,7 +69,7 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
6969
info.AddValue("BadImageFormat_FusionLog", _fusionLog, typeof(string));
7070
}
7171

72-
public override String Message
72+
public override string Message
7373
{
7474
get
7575
{
@@ -91,14 +91,14 @@ private void SetMessageField()
9191
}
9292
}
9393

94-
public String FileName
94+
public string FileName
9595
{
9696
get { return _fileName; }
9797
}
9898

99-
public override String ToString()
99+
public override string ToString()
100100
{
101-
String s = GetType().ToString() + ": " + Message;
101+
string s = GetType().ToString() + ": " + Message;
102102

103103
if (_fileName != null && _fileName.Length != 0)
104104
s += Environment.NewLine + SR.Format(SR.IO_FileName_Name, _fileName);
@@ -121,7 +121,7 @@ public override String ToString()
121121
return s;
122122
}
123123

124-
public String FusionLog
124+
public string FusionLog
125125
{
126126
get { return _fusionLog; }
127127
}

src/System.Private.CoreLib/shared/System/BitConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ public static string ToString(byte[] value, int startIndex, int length)
376376

377377
if (length > (int.MaxValue / 3))
378378
{
379-
// (Int32.MaxValue / 3) == 715,827,882 Bytes == 699 MB
379+
// (int.MaxValue / 3) == 715,827,882 Bytes == 699 MB
380380
throw new ArgumentOutOfRangeException(nameof(length), SR.Format(SR.ArgumentOutOfRange_LengthTooLarge, (int.MaxValue / 3)));
381381
}
382382

0 commit comments

Comments
 (0)