Replace usages of "String" with "string".

This commit is contained in:
2019-05-23 08:32:35 +02:00
parent dcb9c65267
commit 8b918a57de
4 changed files with 13 additions and 13 deletions

View File

@@ -57,14 +57,14 @@ namespace VAR.Toolbox.Code
/// Logea el marcador /// Logea el marcador
/// </summary> /// </summary>
/// <param name="text">The text.</param> /// <param name="text">The text.</param>
public static void Marker(String text) public static void Marker(string text)
{ {
try try
{ {
StreamWriter outStream = GetOutputStreamWritter(); StreamWriter outStream = GetOutputStreamWritter();
WriteLine(outStream, string.Empty); WriteLine(outStream, string.Empty);
WriteLine(outStream, String.Format("---------------------------- {0} -----------------------", text)); WriteLine(outStream, string.Format("---------------------------- {0} -----------------------", text));
WriteLine(outStream, String.Format("\\- Date: {0}", DateTime.UtcNow.ToString("s"))); WriteLine(outStream, string.Format("\\- Date: {0}", DateTime.UtcNow.ToString("s")));
WriteLine(outStream, string.Empty); WriteLine(outStream, string.Empty);
CloseOutputStreamWritter(outStream); CloseOutputStreamWritter(outStream);
} }
@@ -75,12 +75,12 @@ namespace VAR.Toolbox.Code
/// Logea el texto especificado /// Logea el texto especificado
/// </summary> /// </summary>
/// <param name="text">The text.</param> /// <param name="text">The text.</param>
public static void Log(String text) public static void Log(string text)
{ {
try try
{ {
StreamWriter outStream = GetOutputStreamWritter(); StreamWriter outStream = GetOutputStreamWritter();
WriteLine(outStream, String.Format("{0} -- {1}", DateTime.UtcNow.ToString("s"), text)); WriteLine(outStream, string.Format("{0} -- {1}", DateTime.UtcNow.ToString("s"), text));
CloseOutputStreamWritter(outStream); CloseOutputStreamWritter(outStream);
} }
catch (Exception) { /* Nom Nom Nom */} catch (Exception) { /* Nom Nom Nom */}
@@ -97,14 +97,14 @@ namespace VAR.Toolbox.Code
{ {
StreamWriter outStream = GetOutputStreamWritter(); StreamWriter outStream = GetOutputStreamWritter();
WriteLine(outStream, string.Empty); WriteLine(outStream, string.Empty);
WriteLine(outStream, String.Format("!!!!!!!!!!!!!!!!!!!!!!!!!!!! {0} !!!!!!!!!!!!!!!!!!!!!!!", "Exception")); WriteLine(outStream, string.Format("!!!!!!!!!!!!!!!!!!!!!!!!!!!! {0} !!!!!!!!!!!!!!!!!!!!!!!", "Exception"));
WriteLine(outStream, String.Format("\\- Date: {0}", DateTime.UtcNow.ToString("s"))); WriteLine(outStream, string.Format("\\- Date: {0}", DateTime.UtcNow.ToString("s")));
WriteLine(outStream, string.Empty); WriteLine(outStream, string.Empty);
Exception exAux = ex; Exception exAux = ex;
while (exAux != null) while (exAux != null)
{ {
WriteLine(outStream, String.Format("Message: {0}", exAux.Message)); WriteLine(outStream, string.Format("Message: {0}", exAux.Message));
WriteLine(outStream, String.Format("Stacktrace: {0}", exAux.StackTrace)); WriteLine(outStream, string.Format("Stacktrace: {0}", exAux.StackTrace));
exAux = exAux.InnerException; exAux = exAux.InnerException;
} }
CloseOutputStreamWritter(outStream); CloseOutputStreamWritter(outStream);

View File

@@ -162,8 +162,8 @@ namespace VAR.Toolbox.Code
break; break;
// Add device description // Add device description
string deviceName = new String(GetMonikerName(devMoniker[0]).ToCharArray()); string deviceName = new string(GetMonikerName(devMoniker[0]).ToCharArray());
string deviceString = new String(GetMonikerString(devMoniker[0]).ToCharArray()); string deviceString = new string(GetMonikerString(devMoniker[0]).ToCharArray());
devices.Add(deviceName, deviceString); devices.Add(deviceName, deviceString);
// Release COM object // Release COM object

View File

@@ -193,7 +193,7 @@ namespace VAR.Toolbox.UI
{ {
if (xmlReader.NodeType == XmlNodeType.Element) if (xmlReader.NodeType == XmlNodeType.Element)
{ {
String name = xmlReader.Name; string name = xmlReader.Name;
if (name.Contains(":")) if (name.Contains(":"))
{ {
name = name.Split(':')[1]; name = name.Split(':')[1];

View File

@@ -18,7 +18,7 @@ namespace VAR.Toolbox.UI
bool userInactive = false; bool userInactive = false;
uint inactiveTime = Win32.GetLastInputTime(); uint inactiveTime = Win32.GetLastInputTime();
lblInactive.Text = String.Format("Inactive by {0} seconds", inactiveTime); lblInactive.Text = string.Format("Inactive by {0} seconds", inactiveTime);
if (chkAutoCover.Checked) if (chkAutoCover.Checked)
{ {