Replace usages of "String" with "string".
This commit is contained in:
@@ -57,14 +57,14 @@ namespace VAR.Toolbox.Code
|
||||
/// Logea el marcador
|
||||
/// </summary>
|
||||
/// <param name="text">The text.</param>
|
||||
public static void Marker(String text)
|
||||
public static void Marker(string text)
|
||||
{
|
||||
try
|
||||
{
|
||||
StreamWriter outStream = GetOutputStreamWritter();
|
||||
WriteLine(outStream, string.Empty);
|
||||
WriteLine(outStream, String.Format("---------------------------- {0} -----------------------", text));
|
||||
WriteLine(outStream, String.Format("\\- Date: {0}", DateTime.UtcNow.ToString("s")));
|
||||
WriteLine(outStream, string.Format("---------------------------- {0} -----------------------", text));
|
||||
WriteLine(outStream, string.Format("\\- Date: {0}", DateTime.UtcNow.ToString("s")));
|
||||
WriteLine(outStream, string.Empty);
|
||||
CloseOutputStreamWritter(outStream);
|
||||
}
|
||||
@@ -75,12 +75,12 @@ namespace VAR.Toolbox.Code
|
||||
/// Logea el texto especificado
|
||||
/// </summary>
|
||||
/// <param name="text">The text.</param>
|
||||
public static void Log(String text)
|
||||
public static void Log(string text)
|
||||
{
|
||||
try
|
||||
{
|
||||
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);
|
||||
}
|
||||
catch (Exception) { /* Nom Nom Nom */}
|
||||
@@ -97,14 +97,14 @@ namespace VAR.Toolbox.Code
|
||||
{
|
||||
StreamWriter outStream = GetOutputStreamWritter();
|
||||
WriteLine(outStream, string.Empty);
|
||||
WriteLine(outStream, String.Format("!!!!!!!!!!!!!!!!!!!!!!!!!!!! {0} !!!!!!!!!!!!!!!!!!!!!!!", "Exception"));
|
||||
WriteLine(outStream, String.Format("\\- Date: {0}", DateTime.UtcNow.ToString("s")));
|
||||
WriteLine(outStream, string.Format("!!!!!!!!!!!!!!!!!!!!!!!!!!!! {0} !!!!!!!!!!!!!!!!!!!!!!!", "Exception"));
|
||||
WriteLine(outStream, string.Format("\\- Date: {0}", DateTime.UtcNow.ToString("s")));
|
||||
WriteLine(outStream, string.Empty);
|
||||
Exception exAux = ex;
|
||||
while (exAux != null)
|
||||
{
|
||||
WriteLine(outStream, String.Format("Message: {0}", exAux.Message));
|
||||
WriteLine(outStream, String.Format("Stacktrace: {0}", exAux.StackTrace));
|
||||
WriteLine(outStream, string.Format("Message: {0}", exAux.Message));
|
||||
WriteLine(outStream, string.Format("Stacktrace: {0}", exAux.StackTrace));
|
||||
exAux = exAux.InnerException;
|
||||
}
|
||||
CloseOutputStreamWritter(outStream);
|
||||
|
||||
@@ -162,8 +162,8 @@ namespace VAR.Toolbox.Code
|
||||
break;
|
||||
|
||||
// Add device description
|
||||
string deviceName = new String(GetMonikerName(devMoniker[0]).ToCharArray());
|
||||
string deviceString = new String(GetMonikerString(devMoniker[0]).ToCharArray());
|
||||
string deviceName = new string(GetMonikerName(devMoniker[0]).ToCharArray());
|
||||
string deviceString = new string(GetMonikerString(devMoniker[0]).ToCharArray());
|
||||
devices.Add(deviceName, deviceString);
|
||||
|
||||
// Release COM object
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace VAR.Toolbox.UI
|
||||
{
|
||||
if (xmlReader.NodeType == XmlNodeType.Element)
|
||||
{
|
||||
String name = xmlReader.Name;
|
||||
string name = xmlReader.Name;
|
||||
if (name.Contains(":"))
|
||||
{
|
||||
name = name.Split(':')[1];
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace VAR.Toolbox.UI
|
||||
bool userInactive = false;
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user