¡@

Home 

c# Programming Glossary: could

Dependency Inject (DI) “friendly” library

http://stackoverflow.com/questions/2045904/dependency-inject-di-friendly-library

flexible Facade with a high degree of discoverability you could consider providing Fluent Builders. Something like this public.. that it's possible to supply a custom dependency and you could write var foo new MyFacade .WithDependency new CustomDependency..

How To: Execute command line in C#, get STD OUT results

http://stackoverflow.com/questions/206323/how-to-execute-command-line-in-c-get-std-out-results

selected and write the results to a text box. Yes I could figure this out for myself but surely someone else has done..

When to Use Static Classes in C#

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

of parts nonetheless. Had it not been a static method we could make a derivate class and change the method contents as needed... the single purpose of doing what this static method did we could solve this by taking in the required parameters in the constructor.. giving you all the benefits in the long run. Finally you could also make a class that hides the instantiation as if it was..

Validate a username and password against Active Directory?

http://stackoverflow.com/questions/290548/validate-a-username-and-password-against-active-directory

credentials create a principal context e.g. your domain could be machine too using PrincipalContext pc new PrincipalContext..

What is the difference between a field and a property in C#?

http://stackoverflow.com/questions/295104/what-is-the-difference-between-a-field-and-a-property-in-c

Properties are not required to encapsulate fields they could do a calculation on other fields or serve other purposes. @GSS..

Dynamic LINQ OrderBy on IEnumerable<T>

http://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet

properties. To get it working with IEnumerable T you could add some wrapper methods that go via AsQueryable but the code..

Casting vs using the 'as' keyword in the CLR

http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr

this makes sense. Sorry for the bad example it is all I could think of... Update What is in general the preferred method I..

Use of Application.DoEvents()

http://stackoverflow.com/questions/5181777/use-of-application-doevents

come from about 3 feet in front of the monitor. The user could for example close the main window while the loop that calls.. the loop. That's bad. Very very bad. There's more the user could click the same menu item or button that causes the same loop.. suspended and the new loop is starting from scratch. That could work but boy the odds are slim. Especially when the nested loop..

When to use struct in C#?

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

is declared readonly not immutable Size of these struct could be well over 16 bytes Entry has an undetermined lifetime from..

Proper use of the IDisposable interface

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

it's safe to free managed resources. This internal method could be given some arbitrary name like CoreDispose or MyInternalDispose..

What is the best workaround for the WCF client `using` block issue?

http://stackoverflow.com/questions/573872/what-is-the-best-workaround-for-the-wcf-client-using-block-issue

this MSDN article wrapping a WCF client in a using block could mask any errors that result in the client being left in a faulted..

Random number generator only generating one random number

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

If we do that at the same time from multiple threads you could argue we've just made the outcome even more random but what.. is potentially breaking the internal implementation and we could also start getting the same numbers from different threads which..

Is it possible to dynamically compile and execute C# code fragments?

http://stackoverflow.com/questions/826398/is-it-possible-to-dynamically-compile-and-execute-c-sharp-code-fragments

to compile it for performance reasons. At the very least I could define an interface that they would be required to implement..

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

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

mean in C# Anyone have a good explanation or example they could post Edit I changed the answer this one is more in depth. c#..

C# Finalize/Dispose pattern

http://stackoverflow.com/questions/898828/c-sharp-finalize-dispose-pattern

my class in the example is called NoGateway and the client could use and dispose of the class like this using NoGateway objNoGateway..

XmlSerializer giving FileNotFoundException at constructor

http://stackoverflow.com/questions/1127431/xmlserializer-giving-filenotfoundexception-at-constructor

produces System.IO.FileNotFoundException occurred Message Could not load file or assembly ' Containing Assembly of MyType .XmlSerializers..

Parse JSON in C#

http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp

page so I've been recommended to give JSON.NET a try. Could anyone point me in the right direction to just simply writing.. and runs perfectly but isn't returning any results. Could someone help me with returning what I require the results ready..

Generating an Xml Serialization assembly as part of my build

http://stackoverflow.com/questions/134224/generating-an-xml-serialization-assembly-as-part-of-my-build

occurred in mscorlib.dll Additional information Could not load file or assembly 'MyAssembly.XmlSerializers Version..

C# object dumper

http://stackoverflow.com/questions/1347375/c-sharp-object-dumper

. I don't want to use a watch as this is for printing out. Could anyone point me to something like this if it exists Or write..

The located assembly's manifest definition does not match the assembly reference

http://stackoverflow.com/questions/215026/the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference

and I get the following error System.IO.FileLoadException Could not load file or assembly 'Utility Version 1.2.0.200 Culture.. in FooTests.cs line 98 System.IO.FileLoadException Could not load file or assembly 'Utility Version 1.2.0.203 Culture..

Nullable type issue with ?: Conditional Operator

http://stackoverflow.com/questions/295833/nullable-type-issue-with-conditional-operator

type issue with Conditional Operator Could someone explain why this works in C#.NET 2.0 Nullable DateTime..

Can't get sql server compact 3.5 / 4 to work with ASP .NET MVC 2

http://stackoverflow.com/questions/3223359/cant-get-sql-server-compact-3-5-4-to-work-with-asp-net-mvc-2

errors before hitting the code above. This is the message Could not load file or assembly 'System.Data.SqlServerCe.Entity' or.. the code. Exception Details System.BadImageFormatException Could not load file or assembly 'System.Data.SqlServerCe.Entity' or..

Comparison of XSD Code Generators

http://stackoverflow.com/questions/386155/comparison-of-xsd-code-generators

less functionality than current xsd.exe XSDClassGen Could not locate it OXM Library Recommend looking at this project..

LINQ to read XML

http://stackoverflow.com/questions/670563/linq-to-read-xml

B level2 name B1 level2 name B2 level1 level1 name C root Could someone give me a C# code using LINQ the simplest way to print..

Could not establish trust relationship for SSL/TLS secure channel — SOAP

http://stackoverflow.com/questions/703272/could-not-establish-trust-relationship-for-ssl-tls-secure-channel-soap

not establish trust relationship for SSL TLS secure channel.. to invoke the web service it fails with the message saying Could not establish a trust relationship for the SSL TLS secure channel.. to do so from many other locations. Where do I look Could this be a security issue between Windows and .NET that is unique..

Group by in LINQ

http://stackoverflow.com/questions/7325278/group-by-in-linq

PersonID g.Key this is where I am not sure how to put it Could someone please point me in the right direction Thanks c# linq..

How to get a user's client IP address in ASP.NET?

http://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net

help E.g. are you trying to uniquely identify your users Could you use a cookie or the session ID perhaps instead of the IP..

C# getting the path of %AppData%

http://stackoverflow.com/questions/867485/c-sharp-getting-the-path-of-appdata

to the location of where my application is running from Could not find a part of the path 'D Projects SubVersionProjects CatDialer..

How to write a scalable Tcp/Ip based server

http://stackoverflow.com/questions/869744/how-to-write-a-scalable-tcp-ip-based-server

e throw new ApplicationException Could not create socket check to make sure not duplicating port e..

Seeking clarification on apparent contradictions regarding weakly typed languages

http://stackoverflow.com/questions/9929585/seeking-clarification-on-apparent-contradictions-regarding-weakly-typed-language

it really mean for a language to be truly weakly typed Could you mention any good examples of weakly typing that are not..