|
C# Source Code Formatting Show |
|
| |
|
|
SourceFormatX code formatter bases on powerful syntax parse engines so it can beautify and format source code files with omnifarious styles, even these messy source code examples below:
|
C# Source Code Formatting Examples:
Example 1
|
Example 2
|
Example 3
|
Example 4
This is an extreme C# code formatting example, the purpose of it is to show the power of CSharp syntax parse engine powered by SourceFormatX C# Code Formatting Tool.
namespace Tekdev.Cryptography{using System;using System.Text;using System.IO;
internal class RSAUtilties{internal static void WriteKeyFile(string expression,
string keyLocation){using(FileStream fs=new FileStream(keyLocation,
FileMode.Create)){StreamWriter writer=new StreamWriter(fs);writer.Write(
expression);writer.Close();}return;}internal static string ReadKeyFile(string
keyLocation){string keyValue=string.Empty;using(FileStream keyStream=File.Open(
keyLocation,FileMode.Open)){StreamReader reader=new StreamReader(keyStream);
keyValue=reader.ReadToEnd();reader.Close();}return keyValue;}}}
namespace Tekdev.Cryptography {
using System;
using System.Text;
using System.IO;
internal class RSAUtilties {
internal static void WriteKeyFile(string expression, string keyLocation) {
using(FileStream fs = new FileStream(keyLocation, FileMode.Create)) {
StreamWriter writer = new StreamWriter(fs);
writer.Write(expression);
writer.Close();
}
return ;
}
internal static string ReadKeyFile(string keyLocation) {
string keyValue = string.Empty;
using(FileStream keyStream = File.Open(keyLocation, FileMode.Open)) {
StreamReader reader = new StreamReader(keyStream);
keyValue = reader.ReadToEnd();
reader.Close();
}
return keyValue;
}
}
}
Example 1
|
Example 2
|
Example 3
|
Example 4
Don't waste time on formatting CSharp code by hand any more! Use SourceFormatX C# Code Formatter to format your Java code.
|