¡@

Home 

c# Programming Glossary: refactored

new keyword in method signature

http://stackoverflow.com/questions/1014295/new-keyword-in-method-signature

statement like this MyObject myVar new MyObject It was refactored to this by accident private static new MyObject CreateSomething..

Attach debugger in C# to another process

http://stackoverflow.com/questions/11811856/attach-debugger-in-c-sharp-to-another-process

the return values as constants for better readability and refactored the whole thing a bit to get rid of some of the duplication..

Integer handled as reference type when passed into a delegate

http://stackoverflow.com/questions/15302801/integer-handled-as-reference-type-when-passed-into-a-delegate

that is closed over. In other words the code will be refactored to look something like this public class ClosureClass public..

When to pass ref keyword in

http://stackoverflow.com/questions/2193064/when-to-pass-ref-keyword-in

For example I had some logic in a method which could be refactored into its own method. Resharper 4.5 made one of the parameters..

Visual Studio C# statement collapsing

http://stackoverflow.com/questions/285422/visual-studio-c-sharp-statement-collapsing

editing really long code blocks which should definitely be refactored anyway but that's beyond the scope of this question I often..

Partial generic type inference possible in C#?

http://stackoverflow.com/questions/2893698/partial-generic-type-inference-possible-in-c

my fluent interface for my IoC class library and when I refactored some code in order to share some common functionality through..

Refactoring Singleton Overuse

http://stackoverflow.com/questions/2925459/refactoring-singleton-overuse

static methods a completely procedural mess of C# code. I refactored this the best I knew at the time bringing in lots of post college..

Why is .NET exception not caught by try/catch block?

http://stackoverflow.com/questions/36014/why-is-net-exception-not-caught-by-try-catch-block

and retried. It turns out the generated code is a little refactored but the same unhandled exception occurs in my test cases. Update..

Opening a “known file type” into running instance of custom app - .NET

http://stackoverflow.com/questions/424368/opening-a-known-file-type-into-running-instance-of-custom-app-net

IsSingleInstance property to true This should all be refactored to make it less tightly coupled obviously. class MyWindowsApplicationBase.. method of your app then looks like this This should all be refactored to make it less tightly coupled obviously. public static void..

JSON formatter in C#?

http://stackoverflow.com/questions/4580397/json-formatter-in-c

support unquoted values such as integers and booleans. I refactored the previous version and got the final version The code is shorter..

Why does throwing 2 exceptions in a row not generate an unreachable code warning

http://stackoverflow.com/questions/6371564/why-does-throwing-2-exceptions-in-a-row-not-generate-an-unreachable-code-warning

introduced in C# 3.0 right around the time that I heavily refactored the reachability checker. This is probably my bad sorry. The..

Get external IP address over remoting in C#

http://stackoverflow.com/questions/66363/get-external-ip-address-over-remoting-in-c-sharp

is ever replaced . EDIT Now to apply this towards the refactored question How do I get the IP address of my client from a server..

Writing large number of records (bulk insert) to Access in .NET/C#

http://stackoverflow.com/questions/7070011/writing-large-number-of-records-bulk-insert-to-access-in-net-c

out a large dataset. Note that my original post before I refactored it had both the question and answer in the question part. I..

Performance - using Guid object or Guid string as Key

http://stackoverflow.com/questions/713109/performance-using-guid-object-or-guid-string-as-key

object or the string representation of the Guid I just refactored some code which was using string to use the object because there..

Events - naming convention and style

http://stackoverflow.com/questions/724085/events-naming-convention-and-style

EventArgs e Console.WriteLine Heard it n.b. Code is refactored from http www.codeproject.com KB cs simplesteventexample.aspx..

Generics vs. Array Lists

http://stackoverflow.com/questions/94884/generics-vs-array-lists

It was eventually updated to 2.0 but none of the code was refactored due to time constraints. There are a number of places where..