¡@

Home 

c# Programming Glossary: are

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

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

will work but it requires Excel to be on the machine you are using. Also the OLEDB method is intriguing but may not yield.. Excel Writer is here PEAR Excel Writer c# .net excel share improve this question You can use a library called ExcelLibrary... It will not write to the new .xlsx format yet but they are working on adding that functionality in. It's very simple small..

How to properly clean up Excel interop objects

http://stackoverflow.com/questions/158706/how-to-properly-clean-up-excel-interop-objects

wrong or has an alternative to ensure interop objects are properly disposed of. c# excel interop com interop share.. properly disposed of. c# excel interop com interop share improve this question Excel does not quit because your app.. which didn't get released by my code because I wasn't aware of it and was the cause why Excel was not unloaded. I found..

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

a hexadecimal string and vice versa. c# bytearray hex share improve this question Either public static string ByteArrayToString.. hex BitConverter.ToString ba return hex.Replace There are even more variants of doing it for example here . The reverse..

Sending email in .NET through Gmail

http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail

sending the messages though my Gmail account. The emails are personalized emails to the bands I play on my show. Is it possible.. on my show. Is it possible to do c# .net email gmail share improve this question Be sure to use System.Net.Mail not the..

Why is it important to override GetHashCode when Equals method is overridden?

http://stackoverflow.com/questions/371328/why-is-it-important-to-override-gethashcode-when-equals-method-is-overridden

to override GetHashCode c# override hashcode share improve this question Yes it is important if your item will.. since this is used in the absense of a custom IEqualityComparer T to group items into buckets. If the hash code for two items.. method should reflect the Equals logic the rules are if two things are equal Equals ... true then they must return..

Why are mutable structs evil?

http://stackoverflow.com/questions/441309/why-are-mutable-structs-evil

are mutable structs evil Following the discussions here on SO I.. already read several times the remark that mutable structs are evil like in the answer to this question . What's the actual.. mutability and structs c# struct immutability mutable share improve this question Structs are value types which means they..

What's the difference between String and string?

http://stackoverflow.com/questions/7074/whats-the-difference-between-string-and-string

string s Hello World String S Hello World Also what are the guidelines for the use of each c# string share improve.. what are the guidelines for the use of each c# string share improve this question string is an alias for System.String.. in their examples . It appears that the guidance in this area may have changed as StyleCop now enforces the use of the C#..

Random number generator only generating one random number

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

have equal value. Why does that happen c# random share improve this question Every time you do new Random it is initialized.. we've just made the outcome even more random but what we are actually doing is potentially breaking the internal implementation.. does not make any guarantees of thread safety. Thus there are two valid approaches synchronize so that we don't access it..

Deep cloning objects in C#

http://stackoverflow.com/questions/78536/deep-cloning-objects-in-c-sharp

myObj.Clone And then make changes to the new object that are not reflected in the original object. I don't often need this.. being reflected in the original object c# .net clone share improve this question Whilst the standard practice is to implement..

How to use HTML Agility pack

http://stackoverflow.com/questions/846994/how-to-use-html-agility-pack

My project is in C#. c# html html agility pack share improve this question Download and build the HTMLAgilityPack.. htmlDoc new HtmlAgilityPack.HtmlDocument There are various options set as needed htmlDoc.OptionFixNestedTags true.. correctly. thanks Matthew HtmlDocument and HtmlNode are the classes you'll use most. Similar to an XML parser it provides..

How do you get total amount of RAM the computer has?

http://stackoverflow.com/questions/105031/how-do-you-get-total-amount-of-ram-the-computer-has

I saw that when I was searching but it doesn't work Are you missing an assembly or reference . I've looked to add that..

C# Interfaces. Implicit implementation versus Explicit implementation

http://stackoverflow.com/questions/143405/c-sharp-interfaces-implicit-implementation-versus-explicit-implementation

should you use implicit and when should you use explicit Are there any pros and or cons to one or the other c# .net interface..

Are there any suggestions for developing a C# coding standards / best practices document? [closed]

http://stackoverflow.com/questions/14967/are-there-any-suggestions-for-developing-a-c-sharp-coding-standards-best-pract

there any suggestions for developing a C# coding standards best..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

some of your developers have SQL2005 and others SQL2008. Are you sure you have correctly identified which ones are escalating..

How to get Color from Hexadecimal color code using .NET?

http://stackoverflow.com/questions/2109756/how-to-get-color-from-hexadecimal-color-code-using-net

improve this question I'm assuming that's an ARGB code... Are you referring to System.Drawing.Color or System.Windows.Media.Color..

C# Conditional Compilation and framework targets

http://stackoverflow.com/questions/2923210/c-sharp-conditional-compilation-and-framework-targets

My question is how are people handling this situation Are you creating different configurations Are you passing in the.. this situation Are you creating different configurations Are you passing in the constants via the command line c# .net 3.5..

Are string.Equals() and == operator really same? [duplicate]

http://stackoverflow.com/questions/3678792/are-string-equals-and-operator-really-same

string.Equals and operator really same duplicate This question.. C# difference between ` ` and .Equals 9 answers Are they really same Today I ran into this problem. Here is the..

What static analysis tools are available for C#? [closed]

http://stackoverflow.com/questions/38635/what-static-analysis-tools-are-available-for-c

analysis against C# code I know about FxCop and StyleCop. Are there others I've run across NStatic before but it's been in..

Performance differences between debug and release builds

http://stackoverflow.com/questions/4043821/performance-differences-between-debug-and-release-builds

code checked of. So my questions is actually twofold 1 Are there much performance differences between these two configurations... performance differences between these two configurations. Are there any specific type of code that will cause big differences.. in performance here or is it actually not that important 2 Are there any type of code that will run fine under the Debug configuration..

Best practices for exception management in Java or C#

http://stackoverflow.com/questions/409563/best-practices-for-exception-management-in-java-or-c-sharp

forcing a caller to manage a potential exception graceful Are you being respectful to the idoms of the language Do you really..

Differences in string compare methods in C#

http://stackoverflow.com/questions/44288/differences-in-string-compare-methods-in-c-sharp

be used over the others Should one be avoided at all costs Are there more I haven't listed string testString Test string anotherString..

How do the major C# DI/IoC frameworks compare?

http://stackoverflow.com/questions/4581791/how-do-the-major-c-sharp-di-ioc-frameworks-compare

best .. Ninject Unity Castle.Windsor Autofac StructureMap Are there any other DI IoC Frameworks for C# that I haven't listed..

IPC Mechanisms in C# - Usage and Best Practices

http://stackoverflow.com/questions/56121/ipc-mechanisms-in-c-sharp-usage-and-best-practices

events semaphores How is the scene in .NET enviroment Are there any tutorial explaining all available options and when..

How do I drag and drop files into a C# application?

http://stackoverflow.com/questions/68598/how-do-i-drag-and-drop-files-into-a-c-sharp-application

how to go about it for a C# application I'm working on. Are there best practices or gotchas to look out for c# winforms..

POCO vs DTO

http://stackoverflow.com/questions/725348/poco-vs-dto

used for moving data between the layers of an application. Are POCO and DTO the same thing ps look at this great article about..

Is there a .NET/C# wrapper for SQLite?

http://stackoverflow.com/questions/93654/is-there-a-net-c-wrapper-for-sqlite

find an appropriate library. Is there one An official one Are there other ways to use SQLite than with a wrapper c# .net..

Debug Windows Service

http://stackoverflow.com/questions/2629720/debug-windows-service

might suggest I look at a template . EDIT 2 NONE OF THESE ARE WORKING Everytime I try something I get some message about having..

Create thread just like if it were a separated application in C#

http://stackoverflow.com/questions/3641296/create-thread-just-like-if-it-were-a-separated-application-in-c-sharp

should eliminate the problem since as I said when they ARE different instances I don't get any exception. Hope I'm being..

multimap in .NET

http://stackoverflow.com/questions/380595/multimap-in-net

other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY SOLUTIONS DESIGN ``AS IS'' AND ANY EXPRESS OR.. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOLUTIONS DESIGN OR CONTRIBUTORS.. OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The views..

Count total rows of gridview with pagination

http://stackoverflow.com/questions/5788329/count-total-rows-of-gridview-with-pagination

notifyLbl.Visible true notifyLbl.Text ALL VACANCIES ARE CLOSED IN deptList.SelectedItem.Text.ToUpper vacanyList.Enabled.. titleLbl.Text AppListTbl.Rows.Count.ToString CANDIDATE S ARE ELIGIBLE FOR THE POST OF vacanyList.SelectedItem.Text.ToUpper.. else notifyLbl.Visible true notifyLbl.Text ALL VACANCIES ARE CLOSED IN deptList.SelectedItem.Text.ToUpper appForVacGrid.DataSource..

How to Identify where Instances of an object are Still Referenced?

http://stackoverflow.com/questions/5818802/how-to-identify-where-instances-of-an-object-are-still-referenced

these references hiding Because if they are not GC'd they ARE still referenced somewhere but how to tell for sure I'm tired..

Matrix / coordinate transformation order

http://stackoverflow.com/questions/8834070/matrix-coordinate-transformation-order

18f matrix.TransformPoints transformed The original points ARE known. The transformation values ARE known. The order in which.. The original points ARE known. The transformation values ARE known. The order in which the transformations were applied is..

using various types in a using statement (C#)

http://stackoverflow.com/questions/966086/using-various-types-in-a-using-statement-c

dispose why does it accept multiple objects ONLY IF THEY ARE OF THE SAME TYPE I don't get it since all they need to be is..