Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A string is a sequence of characters. It is commonly used to represent text or a sequence of bytes. Use this tag along with the appropriate programming language being used.
1
vote
Creating submenus with buttons
I didn't see this covered in other peoples' answers, so I thought I'd mention one thing. Your structs with consts are all right by me:
struct ConfigDPSubmenu
{
public const string _SubMenuBtn1Tex …
5
votes
Building DebuggerDisplay strings
I'd personally like DebuggerDisplayHelper.ToString() to be an extension method, so I finagled it up as such:
public static class DebuggerDisplayHelper
{
public static string ToString<T>(this T ob …
4
votes
Compare items in two lists
This uses no LINQ, just methods defined on List<T>:
internal static bool DoIdsMatchThoseFromXml(List<string> Ids, List<string> XmlIds)
{
return Ids.TrueForAll(XmlIds.Contains) && XmlI …
8
votes
Matching a generated string of random letters to an input
I'd look at compiling your regex and having it as a class-level member for optimal reuse. Also lift the random number generator out the same way, as it's never good practice to continually regenerate …
5
votes
Replace strings in a file
The biggest tip I can give is to use the using construct to make sure your IDisposable resources are properly disposed. These are your StreamReaders and StreamWriters. I also think what ANeves says is …