.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...
Idealism asked 8/9, 2008 at 21:33

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...
Purpure asked 30/3, 2017 at 16:54

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...
Mycah asked 26/2, 2009 at 0:55

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...
Lice asked 12/7, 2010 at 15:50

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://...
Traction asked 15/2, 2013 at 19:36

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 (=>)...
Tapdance asked 3/7, 2009 at 16:23

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...

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...
Demilune asked 14/5, 2012 at 13:6

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...
Susansusana asked 7/11, 2010 at 9:12

5

Solved

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,...
Grandsire asked 28/9, 2008 at 13:42

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==...
Bahadur asked 19/3, 2015 at 23:40

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

In .NET 3.5 I have a Grid in a Window. I am populating this Grid with Buttons. When the buttons fill the grid and go out of view the Grid does not show the scroll bar. I have set the Grids vertical...
Indopacific asked 4/11, 2014 at 14:6

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...
Timbuktu asked 13/7, 2010 at 13:58

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!
Tennilletennis asked 25/4, 2010 at 15:4

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...
Locker asked 19/1, 2011 at 20:19

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...
Odontograph asked 25/2, 2010 at 9:49

© 2022 - 2024 — McMap. All rights reserved.