Anyone found a C# beautifier that works? Google came up with some real garbage and this site has no search results on C# beautifier.
I found some sample code but it pastes into the IDE as 1 line:
Code:protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } base.Dispose(disposing); } [WebMethod] [XmlInclude(typeof(Member))] public Member[] getMembers() { ArrayList al = new ArrayList(); Member mem = new Member(0, "bob", "bsmith", "password1", "[email protected]", "Initiate", false, DateTime.Now); al.Add(mem); Member mem1 = new Member(0, "jim", "jsmith", "password2", "[email protected]", "Member", false, DateTime.Now); al.Add(mem1); Member mem2 = new Member(0, "ed", "esmith", "password3", "[email protected]", "Officer", false, DateTime.Now); al.Add(mem2); Member mem3 = new Member(0, "neil", "nsmith", "password4", "[email protected]", "Guest", false, DateTime.Now); al.Add(mem3); Member[] outArray = (Member[])al.ToArray(typeof(Member)); return outArray; } } [Serializable] public class Member { public int memberid; public String name; public string username; public string password; public string email; public string comments; public bool disabled; public DateTime created; public Member(int _memberid, string _name, string _username, string _password, string _email, string _comments, bool _disabled, DateTime _created) { memberid = _memberid; name = _name; username = _username; password = _password; email = _email; comments = _comments; disabled = _disabled; created = _created; } public Member() { }
