.net-3.5 Questions

1

Solved

Before I start explaining my issue, please note that my target framework is .NET 3.5. I have a textbox whose text is bound to a viewmodel property. My requirement is that when user enters somethin...
Gilding asked 31/1, 2013 at 14:43

3

Solved

I have a Timespan that I need to output in a particular format as shown below :- TimeSpan TimeDifference = DateTime.Now - RandomDate; I'm formatting the TimeSpan like this :- string result = st...
Rascon asked 31/1, 2013 at 9:7

5

Solved

So say I have a collection of Bloops Class Bloop Public FirstName Public LastName Public Address Public Number Public OtherStuff End Class Then I have a class of Razzies Class Razzie Publ...
Begin asked 28/5, 2009 at 21:12

7

Solved

How can I retrieve the Created date from the current .NET assembly? I'd like to add some realy simple functionality where my app stops working one week after the build date of the main assem...
Quotient asked 12/1, 2010 at 16:18

7

Solved

I have installed Static and dynamic compression for IIS7, as well as setting the two web.config values at my application Virtual Folder level. As I understand it, I don't need to enable compression...
Finedrawn asked 24/4, 2009 at 16:34

4

Solved

I need fastest possible way to multiply and divide big arrays of data. I've read this (wrote by Ben Voigt here): .NET doesn't use MMX or SSE or AVX, as of the current version (...) modern C++ comp...
Distributive asked 4/1, 2013 at 15:50

2

Solved

Possible Duplicate: Are doubles faster than floats in c#? I wrote simple benchmark to check how much performance i can get changing double datatype to float in my application. Here is...
Shewchuk asked 4/1, 2013 at 14:26

1

Solved

As discussed here ProcessStartInfo hanging on "WaitForExit"? Why? - calling p.WaitForExit() with a large output fills the OutputStream and causes a deadlock as the process and the output ...
Twelvetone asked 12/12, 2012 at 11:55

5

Solved

to run both 3.5 and 4.0 web apps?
Nib asked 15/4, 2010 at 2:3

3

Solved

[Serializable] class MyClass { [NonSerialized] int Foo { get; set; } // error [NonSerialized] int bar; // ok } Why is this disallowed? I know about the workarounds such as implementing ISeri...
Formation asked 21/9, 2010 at 13:40

2

Solved

I have found an issue that is quite easy to reproduce. Please advise if there is any work around for this? There are two .Net libraries libraryA.dll and libraryB.dll. And each library has one inte...
Keloid asked 17/11, 2010 at 10:30

6

Solved

I have a List<object> which is a collection of various type of objects. I am writing a helper method which will return a specific type of object. The helper method will accept type name as ...
Diabetes asked 21/12, 2012 at 15:20

7

Solved

Is it possible for me to use LINQ in a way that allows me to determine that "9" is the first missing value in the sorted list without using a for-loop and comparing each value to the one adjacent ...
Tumefaction asked 24/11, 2010 at 18:39

2

Solved

I'm adapting some code that someone else wrote and need to return a DataTable for time's sake. I have code like this: using (SqlCommand command = new SqlCommand(query, conn)) { //add parameters ...
Colver asked 14/12, 2012 at 0:17

2

Solved

I may be completely imagining this, but I could have sworn there was a way to make individual Run (or Parapgraph) elements in a RichTextBox read-only. I also could have sworn I tried a method for d...
Gigantism asked 5/7, 2009 at 17:40

2

Solved

How would I use NUnit and a test database to verify my code? I would in theory use mocks (moq) but my code is more in maintenance shape and fix it mode and I don't have the to setup all the mocks. ...
Timorous asked 7/12, 2012 at 22:37

1

Solved

There is a List<T>.FindIndex(Int32, Predicate <T>). That method is exactly what I want to for a IList<T> object. I know IList has a method IndexOf(T) but I need the predicate to d...
Shaeffer asked 7/12, 2012 at 16:51

4

Solved

I have a domain model that is trivially represented by the following. IMyInterface ClassA : IMyInterface ClassB : IMyInterface What I want is to implement IEquatable in such a way that I can w...
Beveridge asked 30/9, 2009 at 15:18

3

Solved

In our product, we have things called "services" which are the basic means of communication between different parts of the product (and especially between languages—an in-house language, C, Python ...
Envision asked 6/12, 2012 at 2:47

2

Solved

I have a method in MyWebpage.aspx.cs lik so: public partial class MyWebpage : PageBase { private readonly DataAccessLayer dataAccessLayer; protected string GetMyTitle(string myVar, string myId)...
Side asked 6/12, 2012 at 1:32

2

Solved

How does Dapper help protect against SQL injections? I am testing out different DAL technologies and have to choose one to be secure our site. I'm leaning towards Dapper (http://code.google.com/p/d...
Durr asked 30/11, 2012 at 21:28

1

I have the following code that was written by someone else in my web project: StringBuilder sql = new StringBuilder(""); // Define sql sql.Append("SELECT title "); sql.Append("FROM MyTable ")...
Pericranium asked 30/11, 2012 at 22:11

4

Solved

Possible Duplicate: IPC Mechanisms in C# - Usage and Best Practices I have two diffenent process: A and B. The process A wants to send to the process B some data (array of bytes, str...
Holliholliday asked 30/11, 2012 at 10:15

1

Solved

I want to add reference to an assembly that is in the Devpath folder. But it does not appear in the Add Reference Window. the C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config is...
Adhamh asked 28/11, 2012 at 10:54

6

Solved

I have a complete separation of my Entity Framework objects and my POCO objects, I just translate them back and forth... i.e: // poco public class Author { public Guid Id { get; set; } public s...
Riata asked 31/3, 2009 at 6:4

© 2022 - 2024 — McMap. All rights reserved.