¡@

Home 

c# Programming Glossary: single

Get property value from string using reflection in C#

http://stackoverflow.com/questions/1196991/get-property-value-from-string-using-reflection-in-c-sharp

GetSourceValue get the value of the property using only a single string as the parameter. I want to pass a class and property..

Create Excel (.XLS and .XLSX) file from C# [closed]

http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp

a workbook from it. Note that the ExcelLibrary code is the single line at the bottom Create the data set and table DataSet ds..

What is the correct way to create a single instance application?

http://stackoverflow.com/questions/19147/what-is-the-correct-way-to-create-a-single-instance-application

is the correct way to create a single instance application Using C# and WPF under .net rather than.. way to create an application that can only be run as a single instance I know it has something to do with some mythical thing..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

thread http stackoverflow.com questions 205689 class with single method best approach#206481 I used to love utility classes filled.. coherent functionality ideally each class should have a single purpose within the system. I'd much rather have a five times.. that little cute and innocent static method might take a single parameter. As functionality grows a couple of new parameters..

Implement C# Generic Timeout

http://stackoverflow.com/questions/299198/implement-c-sharp-generic-timeout

for good ideas for implementing a generic way to have a single line or anonymous delegate of code execute with a timeout. TemperamentalClass..

How do you convert Byte Array to Hexadecimal String, and vice versa?

http://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa

you can improve performance for long strings by using a single pass parser like so public static byte StringToByteArray String..

Protect .NET code from reverse engineering?

http://stackoverflow.com/questions/506282/protect-net-code-from-reverse-engineering

work with your complex license code can be undone with a single byte patch. You just need to accept that there is a very real..

When to use struct in C#?

http://stackoverflow.com/questions/521298/when-to-use-struct-in-c

across these rules here cached A struct should represent a single value. A struct should have a memory footprint less than 16.. the following characteristics It logically represents a single value similar to primitive types integer double and so on ... these structs Each struct Entry and Enumerator represent single values. Speed Entry is never passed as a parameter outside of..

Proper use of the IDisposable interface

http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface

and that way you promise that you've written that single method to clean up your unmanaged resources public void Dispose..

What is differences between Multidimensional array and Array of Arrays in C#?

http://stackoverflow.com/questions/597720/what-is-differences-between-multidimensional-array-and-array-of-arrays-in-c

you will see that storage and retrieval from jagged or single dimensional arrays are simple IL instructions while same operations..

Random number generator only generating one random number

http://stackoverflow.com/questions/767999/random-number-generator-only-generating-one-random-number

you get the same value lots of times. You should keep a single Random instance and keep using Next on the same instance. Function.. instances per thread either can be fine but mutating a single instance from multiple callers at the same time is just asking..

What does the [Flags] Enum Attribute mean in C#?

http://stackoverflow.com/questions/8447/what-does-the-flags-enum-attribute-mean-in-c

enumerable represents a collection of flags rather than a single value. Such collections are usually manipulated using bitwise..

Refactoring code to avoid anti-pattern

http://stackoverflow.com/questions/11224170/refactoring-code-to-avoid-anti-pattern

directly to store the data. Is this a violation of Single Responsibility Principle How to correct it Note The repository.. code to satisfy single responsibility principle Using the Single Responsibility Principle forces my containers to have public.. many reasons. So no anti pattern but a violation of the Single Responsibility Principle for sure. The last 2 responsibilities..

Polymorphism: Is ORM entity a Domain Entity or Data Entity?

http://stackoverflow.com/questions/11257484/polymorphism-is-orm-entity-a-domain-entity-or-data-entity

data store Any code example or reference 3 Will it satisfy Single Responsibility Principle CODE public interface IBankAccount..

Find an item in List by LINQ?

http://stackoverflow.com/questions/1175645/find-an-item-in-list-by-linq

There's a few ways note this is not a complete list . 1 Single will return a single result but will throw an exception if it.. List string myList new List string string result myList.Single s s search 2 Where will return all items which match your criteria..

STAThread and multithreading

http://stackoverflow.com/questions/165316/stathread-and-multithreading

apartment STA . For reference that's the entire article . Single threaded apartment... OK that went over my head. Also I read..

Should I learn VB.NET or C#? [closed]

http://stackoverflow.com/questions/1653895/should-i-learn-vb-net-or-c

really good.Serves as primary reference for me Towards A Single Folder Filesystem stackoverflow What is a database file system..

C# compiler number literals

http://stackoverflow.com/questions/166752/c-sharp-compiler-number-literals

'f' at the end to ensure something is treated as a 'Single' instead. For example like this... var x 0 x is Int32 var y.. For example like this... var x 0 x is Int32 var y 0f y is Single What are the other modifiers I can use Is there one for forcing..

Single-assembly multi-language Windows Forms deployment (ILMerge and satellite assemblies / localization) - possible?

http://stackoverflow.com/questions/1952638/single-assembly-multi-language-windows-forms-deployment-ilmerge-and-satellite-a

assembly multi language Windows Forms deployment ILMerge and.. method and re implemented a private framework method class SingleAssemblyComponentResourceManager System.ComponentModel.ComponentResourceManager.. private CultureInfo _neutralResourcesCulture public SingleAssemblyComponentResourceManager Type t base t _contextTypeInfo..

What is a message pump?

http://stackoverflow.com/questions/2222365/what-is-a-message-pump

thread belongs to a COM apartment. There are two kinds Single Threaded Apartments STA and a Multi Thread Apartment MTA . An..

How to avoid Dependency Injection constructor madness?

http://stackoverflow.com/questions/2420193/how-to-avoid-dependency-injection-constructor-madness

Constructor Injection is that it makes violations of the Single Responsibility Principle glaringly obvious. When that happens..

Using the iterator variable of foreach loop in a lambda expression - why fails?

http://stackoverflow.com/questions/3168375/using-the-iterator-variable-of-foreach-loop-in-a-lambda-expression-why-fails

Hi Int32 Hi Int32 Obviously I would expect Hi String Hi Single Hi Int32 but apparently it is not the case. Why the last element..

Single MSI to install correct 32 or 64 bit c# application

http://stackoverflow.com/questions/3724956/single-msi-to-install-correct-32-or-64-bit-c-sharp-application

MSI to install correct 32 or 64 bit c# application I have a..

C# Equivalent of SQL Server 2005 DataTypes

http://stackoverflow.com/questions/425389/c-sharp-equivalent-of-sql-server-2005-datatypes

SqlDecimal Decimal decimal SqlDecimal Decimal real SqlSingle Single float SqlDouble Double smalldatetime SqlDateTime.. Decimal decimal SqlDecimal Decimal real SqlSingle Single float SqlDouble Double smalldatetime SqlDateTime DateTime..

how can i get text formatting with iTextSharp

http://stackoverflow.com/questions/6882098/how-can-i-get-text-formatting-with-itextsharp

Vector.I2 topRight Vector.I1 topRight Vector.I2 Single curFontSize rect.Height See if something has changed either..

Single Form Hide on Startup

http://stackoverflow.com/questions/70272/single-form-hide-on-startup

Form Hide on Startup I have an application with one form in..

Bind datagrid column visibility MVVM

http://stackoverflow.com/questions/7711275/bind-datagrid-column-visibility-mvvm

None ItemsSource Binding Employees SelectionMode Single ColumnHeaderStyle StaticResource columnHeaderStyle RowHeaderStyle..

Why is The Iteration Variable in a C# foreach statement read-only?

http://stackoverflow.com/questions/776430/why-is-the-iteration-variable-in-a-c-sharp-foreach-statement-read-only

the looping sequence. Assigning a value to it breaks the Single Responsibility Principle or Curly's Law if you follow Coding..

Difference between association, aggregation and composition

http://stackoverflow.com/questions/885937/difference-between-association-aggregation-and-composition

example relationship between Questions and options. Single questions can have multiple options and option can not belong..

How can I detect the encoding/codepage of a text file

http://stackoverflow.com/questions/90838/how-can-i-detect-the-encoding-codepage-of-a-text-file

and Character Sets No Excuses . Specifically Joel says The Single Most Important Fact About Encodings If you completely forget..