¡@

Home 

c# Programming Glossary: either

How can a Word document be created in C#? [closed]

http://stackoverflow.com/questions/10412/how-can-a-word-document-be-created-in-c

working on the client machine then you have a choice of either using Office Automation or using the Office Open XML format.. below which is supported by Microsoft Office 2000 and up either natively or through service packs. One draw back to this though..

How to Query an NTP Server using C#?

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c

C# to get the Date Time of the NTP Server returned as either a string or as a DateTime . How is this possibly in its simplest..

Volatile vs. Interlocked vs. lock

http://stackoverflow.com/questions/154551/volatile-vs-interlocked-vs-lock

code and you don't need to remember to lock elsewhere either. It's also very fast as MSDN says on modern CPU's this is often..

Conditional operator cannot cast implicitly?

http://stackoverflow.com/questions/2215745/conditional-operator-cannot-cast-implicitly

x void M int x void M string x ... M y y is assigned to either int x or string x depending on the type of y We need to be able..

When to Use Static Classes in C#

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

method we can't. Sure if we just need to add functionality either before or after the old method we can create a new class and..

Why does one often see “null != variable” instead of “variable != null” in C#?

http://stackoverflow.com/questions/271561/why-does-one-often-see-null-variable-instead-of-variable-null-in-c

this question It's a hold over from C. In C if you either use a bad compiler or don't have warnings turned up high enough..

How to provide user name and password when connecting to a network share

http://stackoverflow.com/questions/295538/how-to-provide-user-name-and-password-when-connecting-to-a-network-share

passwords share improve this question You can either change the thread identity or P Invoke WNetAddConnection2. I..

Panel not getting focus

http://stackoverflow.com/questions/3562235/panel-not-getting-focus

works quite well yet the control doesn't get the focus neither KeyUp KeyDown KeyPress nor GotFocus LostFocus is triggered for.. I think I could manage to implement keyboard response either using something like Keyboard.GetState or ProcessCmdWnd or something...

Best practices for exception management in Java or C#

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

a JSON object. Unfortunately I can't guarantee success for either of these tasks cut network connection malformed JSON object.. but not bubble them up or formally notifying the system either via a log or a notification to the user What best practices..

How do I save a stream to a file?

http://stackoverflow.com/questions/411592/how-do-i-save-a-stream-to-a-file

Copies the contents of input to output. Doesn't close either stream. summary public static void CopyStream Stream input Stream..

C# String enums

http://stackoverflow.com/questions/424366/c-sharp-string-enums

dictionary and static properties but that wasn't that good either. c# string enums enumerator share improve this question ..

How to read a text file reversely with iterator in C#

http://stackoverflow.com/questions/452902/how-to-read-a-text-file-reversely-with-iterator-in-c-sharp

If this method discovers that the returned stream is either unreadable or unseekable a NotSupportedException is thrown...

How do I make a textbox that only accepts numbers?

http://stackoverflow.com/questions/463299/how-do-i-make-a-textbox-that-only-accepts-numbers

behave such that pressing a non numeric character would either produce no result or immediately provide the user with feedback..

Protect .NET code from reverse engineering?

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

happily buy software licenses and many computer users who either don't want to risk it find it wrong or are not tech savvy enough..

How would you count occurrences of a string within a string?

http://stackoverflow.com/questions/541954/how-would-you-count-occurrences-of-a-string-within-a-string

your original technique seems to be about 30 faster than either of these I've just done a quick benchmark with once upon a time..

Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials

http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials

to reduce my dependencies if I can. I've searched MSDN for either a managed or a win32 means of using remote file sharing but..

Random number generator only generating one random number

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

threads use different Random instances per thread either can be fine but mutating a single instance from multiple callers..

C# Events and Thread Safety

http://stackoverflow.com/questions/786383/c-sharp-events-and-thread-safety

spectre a while ago but it's not valid. I checked it with either Joe Duffy or Vance Morrison a while ago I can't remember which...

C#: TreeView owner drawing with ownerdrawtext and the weird black highlighting when clicking on a node

http://stackoverflow.com/questions/1003459/c-treeview-owner-drawing-with-ownerdrawtext-and-the-weird-black-highlighting-w

this question In my experience you usually can't. Either you draw the item yourself or you don't. If you try to composite..

How to populate/instantiate a C# array with a single value?

http://stackoverflow.com/questions/1014005/how-to-populate-instantiate-a-c-sharp-array-with-a-single-value

an array with a seed value that's not the default Either on creation or a built in method afterwards I believe Java has..

Bundler not including .min files

http://stackoverflow.com/questions/11980458/bundler-not-including-min-files

4 bundling and minification share improve this question Either rename .min.js to .js or do something like public static void..

C# compiler bug? Why doesn't this implicit user-defined conversion compile?

http://stackoverflow.com/questions/1208796/c-sharp-compiler-bug-why-doesnt-this-implicit-user-defined-conversion-compile

of the following are true S0 and T0 are different types. Either S0 or T0 is the class or struct type in which the operator declaration..

How to convert a Unicode character to its ASCII equivalent

http://stackoverflow.com/questions/138449/how-to-convert-a-unicode-character-to-its-ascii-equivalent

ê Extended ASCII 136 was inserted in the database. Either Access or the reading component in .NET converted this to U..

How to call generic method with a given Type object?

http://stackoverflow.com/questions/1408120/how-to-call-generic-method-with-a-given-type-object

Couldn't figure out so quickly how to get around that. Either way this is compile time safe I think. It just feels wrong somehow..

How to intersect two polygons?

http://stackoverflow.com/questions/1526352/how-to-intersect-two-polygons

polygons representing A B and the intersecting polygon AB. Either of which may be an empty polygon e.g. null . Hint for optimization..

Getting / setting file owner in C#

http://stackoverflow.com/questions/153087/getting-setting-file-owner-in-c-sharp

You cannot assign ownership to that user. Either you don't have TakeOwnership permissions or it is not your user..

What's the difference between an argument and a parameter?

http://stackoverflow.com/questions/156767/whats-the-difference-between-an-argument-and-a-parameter

to use the word argument or parameter or something else. Either way the other people know what I mean but what's correct and..

Embedding assemblies inside another assembly

http://stackoverflow.com/questions/222655/embedding-assemblies-inside-another-assembly

format exist before .NET Yes. Are all .NET assemblies DLLs Either DLLs or EXE normally but can also be netmodule. but not all..

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

versa. c# bytearray hex share improve this question Either public static string ByteArrayToString byte ba StringBuilder..

Entity Framework Code Only error: the model backing the context has changed since the database was created

http://stackoverflow.com/questions/3552000/entity-framework-code-only-error-the-model-backing-the-context-has-changed-sinc

context has changed since the database was created. Either manually delete update the database or call Database.SetInitializer.. context has changed since the database was created. Either manually delete update the database or call Database.SetInitializer..

What does “opening a connection” actually mean?

http://stackoverflow.com/questions/3845764/what-does-opening-a-connection-actually-mean

the pool for reuse or go through its shut down procedure. Either the pool will reach its limit or the number of underlying connections..

C# (.NET) Design Flaws [closed]

http://stackoverflow.com/questions/411906/c-sharp-net-design-flaws

easy to add but an efficient closed algebraic type like Either is not so I'd love some way to declare a closed algebraic type..

in a “using” block is a SqlConnection closed on return or exception?

http://stackoverflow.com/questions/4717789/in-a-using-block-is-a-sqlconnection-closed-on-return-or-exception

sqlconnection share improve this question Yes Yes. Either way when the using block is exited either by successful completion..

How might I schedule a C# Windows Service to perform a task daily?

http://stackoverflow.com/questions/503564/how-might-i-schedule-a-c-sharp-windows-service-to-perform-a-task-daily

improve this question I wouldn't use Thread.Sleep . Either use a scheduled task as others have mentioned or set up a timer..

How can I ensure that a division of integers is always rounded up?

http://stackoverflow.com/questions/921180/how-can-i-ensure-that-a-division-of-integers-is-always-rounded-up

would have been no remainder Therefore both are non zero. Either they are of the same sign or opposite signs. If they're of opposite..

Most common C# bitwise operations on enums

http://stackoverflow.com/questions/93744/most-common-c-sharp-bitwise-operations-on-enums

how to set delete toggle or test a bit in a bitfield. Either I'm unsure or I mix them up because I rarely need these. So..

An obvious singleton implementation for .NET?

http://stackoverflow.com/questions/953259/an-obvious-singleton-implementation-for-net

conclusion that I am missing something. Something major. Either that the whole problem is too trivial to bother thinking that..