¡@

Home 

c# Programming Glossary: tricks

What to do when bit mask (flags) enum gets too large

http://stackoverflow.com/questions/1060760/what-to-do-when-bit-mask-flags-enum-gets-too-large

a c# specific example if there are any language specific tricks that I can employ to get the job done. May not be neccessary..

Is there a way to return Anonymous Type from method?

http://stackoverflow.com/questions/1329672/is-there-a-way-to-return-anonymous-type-from-method

to prevent their use in this way. There are some tricks that you can do to in conjunction with returning an Object that..

Reducing memory usage of .NET applications?

http://stackoverflow.com/questions/1343374/reducing-memory-usage-of-net-applications

seems excessive for such a simple program. Are there any tricks to make a C# process a bit leaner I'm writing a program that's..

XML Serialization and Inherited Types

http://stackoverflow.com/questions/20084/xml-serialization-and-inherited-types

StackOverflow table too to see if you have any neat hacks tricks in order to get this up and running in the quickest lightest..

Creating an instance using Ninject with additional parameters in the constructor

http://stackoverflow.com/questions/2227548/creating-an-instance-using-ninject-with-additional-parameters-in-the-constructor

so you dont need to use container specific attributes and tricks. There's a good blog post on that called Your IoC Container..

Tips for optimizing C#/.NET programs [closed]

http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs

dozens of times over the years for my list of tips and tricks that people can use to optimize their vbscript their jscript.. their C# code. I always resist this. Emphasizing tips and tricks is exactly the wrong way to approach performance. That way leads.. focus on solid engineering principles not on a bag full of tricks that are narrowly applicable to trivial or unrealistic situations...

Icecast 2: protocol description, streaming to it using C#

http://stackoverflow.com/questions/5215019/icecast-2-protocol-description-streaming-to-it-using-c-sharp

very useful to know common guidelines best practices maybe tricks I may should must use to seamlessly work with streamed audio..

C# unsafe value type array to byte array conversions

http://stackoverflow.com/questions/621493/c-sharp-unsafe-value-type-array-to-byte-array-conversions

answers I learned some fundamentals and got to try out new tricks After initially accepting Davy Landman's answer I found out..

Why does casting int to invalid enum value NOT throw exception?

http://stackoverflow.com/questions/6413804/why-does-casting-int-to-invalid-enum-value-not-throw-exception

when not to use lambda expressions [closed]

http://stackoverflow.com/questions/672918/when-not-to-use-lambda-expressions

there are no performance differences as anonyms are C# tricks not IL stuff. Most of what I think about anonymous methods applies.. is no performance impact as these are all C# compiler tricks not JIT compiler tricks . Just as I didn't feel we are overusing.. as these are all C# compiler tricks not JIT compiler tricks . Just as I didn't feel we are overusing anonymous methods I..

SQL injection on INSERT

http://stackoverflow.com/questions/681583/sql-injection-on-insert

right tablename to empty using trial and error and various tricks. Here's a description of how you could perform an SQL Injection..

How slow is Reflection

http://stackoverflow.com/questions/771524/how-slow-is-reflection

If you are using reflection in a tight loop there are tricks to improve it generics using a wrapper where T new and MakeGenericType..

Is extending String class with IsNullOrEmpty confusing?

http://stackoverflow.com/questions/790810/is-extending-string-class-with-isnullorempty-confusing

for a null this Don't let an extension method perform tricks that a normal instance method couldn't do EDIT Responding to..

c# marking class property as dirty

http://stackoverflow.com/questions/805505/c-sharp-marking-class-property-as-dirty

class level or for that matter notifications you can use tricks like below to minimise the clutter in your properties here showing..

Is there any definitive documentation on writing software installers?

http://stackoverflow.com/questions/923384/is-there-any-definitive-documentation-on-writing-software-installers

WiX and Windows Installer teams are great for learning new tricks etc. Far too many to list here but once you know the terminology..