.net-3.5 Questions
16
Solved
What's the simplest way of blocking a thread until a file has been unlocked and is accessible for reading and renaming? For example, is there a WaitOnFile() somewhere in the .NET Framework?
I have...
3
I would like to use WiX Bundle to turn on the Windows Feature version of .NET Framework 3.5.
I am aware that there is a list of .NET Framework that can be installed. In fact I use this to install 4...
4
Solved
I have a generic method which has two generic parameters. I tried to compile the code below but it doesn't work. Is it a .NET limitation? Is it possible to have multiple constraints for different p...
7
Solved
I want to check if a reference type is null. I see two options (_settings is of reference type FooType):
if (_settings == default(FooType)) { ... }
and
if (_settings == null) { ... }
How do t...
6
Solved
Within the context of an ASP.NET page, I can use Request.QueryString to get a collection of the key/value pairs in the query string portion of the URI.
For example, if I load my page using http://...
4
Solved
I am experiencing a strange compiler error with extension methods. I have an assembly which has an extension method like
public static class MyClass
{
public static Bar GetBar(this Foo foo)
{
...
Decedent asked 13/7, 2011 at 9:23
8
Solved
It probably isn't even possible to do this, but I will ask anyway.
Is it possible to create a function that receives a string and then uses it as a right side argument for the goes to operator (=>)...
15
I need a way to see if a user is part of an active directory group from my .Net 3.5 asp.net c# application.
I am using the standard ldap authentication example off of msdn but I don't really see h...
Overdo asked 3/2, 2010 at 0:50
6
Solved
I am currently working with a ASP.NET Web site project in Visual Studio 2008 and everytime I make a change to code behind page for a user control and browse to page that is using the user contorl I...
Oporto asked 4/2, 2009 at 16:14
6
Solved
I am using the following code to write the Date Modified time of a Directory to a label
string selectedPath = comboBox1.SelectedItem.ToString();
DateTime lastdate = Directory.GetLastWriteTime(sele...
6
Solved
Some 4 years back, I followed this MSDN article for DateTime usage best practices for building a .Net client on .Net 1.1 and ASMX web services (with SQL 2000 server as the backend). I still remembe...
Prig asked 15/9, 2008 at 17:57
8
Solved
I'm working my way through Head First C#, and I'm a bit confused on my current exercise. They state:
If you declare a variable inside a for loop--for (int c = 0; ...)--then that variable's only va...
5
Solved
How to serialize object + compress it and then decompress + deserialize without third-party library?
I have a big object in memory which I want to save as a blob into database.
I want to compress it before saving because database server is usually not local.
This is what I have at the moment:
us...
Tannen asked 23/8, 2012 at 9:27
4
Solved
I have the following classes
public abstract class BaseViewPresenter { }
public abstract class BaseView<T> : UserControl
where T : BaseViewPresenter { }
public class LoginPresenter : BaseV...
Holomorphic asked 11/9, 2014 at 16:24
5
Solved
Is there a way to do your timezone offsets on the server side, by reading something in the request over http, instead of sending everything to the client and letting it deal with it?
Comport asked 3/12, 2008 at 19:50
11
Solved
I have an array of integers:
int[] number = new int[] { 2,3,6,7 };
What is the easiest way of converting these into a single string where the numbers are separated by a character (like: "2,3,...
12
Solved
This bothers me a lot and I find I write stupid bugs when combined with Intellisense (VS 2008 Pro):
class Foo
{
public Foo(bool isAction)
{
this.IsAction = IsAction;
}
public bool IsAction {...
Geopolitics asked 5/6, 2009 at 19:41
2
Is it possible do do the following? I tried, but when it got to the Query, it just said there was a null reference.
var builder = new StringBuilder("select * from my table1 where 1 = 1");
if(x==...
14
Solved
Does .NET 3.5 C# allow us to include a variable within a string variable without having to use the + concatenator (or string.Format(), for that matter).
For example (In the pseudo, I'm using a $ s...
Flanagan asked 12/4, 2011 at 19:0
3
Solved
6
Solved
I have a user control which has a ComboBox and a SelectedIndexChanged event handler. In the event handler, I need to be able to tell what was the previously selected index... can anyone point me in...
5
Solved
I have a the following dictionary:
IDictionary<int, IList<MyClass>> myDictionary
and I am wanting to get all the values in the dictionary as an IList....
Just to add a bit of a b...
Pitarys asked 17/2, 2009 at 7:1
2
I need to find the Name and speed of the processor on my machine. I'm building an open source help desk suite and finding this really entertaining!
Thanks for the help guys!
3
Designing a game for any laptop:
I want to play 2 sounds at the same time! A background music and a sound when pressing on a button!
Using System.Media won't allow me to play 2 sounds together. F...
3
Solved
I'm having a little bit of a problem that I thought was related to Security but, turns out can't be as I did almost everything ...
Plenty of information on this on the web but nothing has an answe...
© 2022 - 2024 — McMap. All rights reserved.