.net-3.5 Questions
3
Solved
I am trying to perform the following SQL using LINQ and the closest I got was doing cross joins and sum calculations. I know there has to be a better way to write it so I am turning to the stack te...
6
Solved
I want to be able to pass a method as a parameter.
eg..
//really dodgy code
public void PassMeAMethod(string text, Method method)
{
DoSomething(text);
// call the method
//method1();
Fo...
7
Solved
I have a simple struct that has limited use. The struct is created in a method that calls the data from the database. If there is no data returned from the database I want to be able to return a nu...
Adlay asked 27/2, 2009 at 18:32
4
Solved
What's the better way to insert cell comments in excel 2007 files programmatically using c# and .net 3.5?
12
Solved
Anyone getting this error when using the new free chart controls MS bought from Dundas?
"Error executing child request for ChartImg.axd"
On the MSDN forum they suggested it was my web.config:
MS...
3
I am developing a manged HTTP Module that will intercept requests to and response from IIS 7. The intercepted messages will be modified based on a set of business rules by a custom filter. The busi...
Gutierrez asked 5/11, 2010 at 20:25
16
Solved
I came across an issue that makes me think there is bug in the 3.0 framework. When I try to use extension methods I get the following error:
Missing compiler required member
'System.Runtime.Compi...
Baziotes asked 15/10, 2008 at 17:29
3
I have a scenario where I have to move all my data in a SharePoint 2010 list (name= "VersionTestList") to a SQL server database. Since versioning is enabled in the list, I want to move the previous...
Elbring asked 14/3, 2013 at 12:0
4
Solved
I would like to compare lists of elements of a given type, to see which list is "bigger".
new BuiltInComparer<IEnumerable<int>>().Compare(
new[] {3,2,3},
new[] {1,2,3})
...would r...
Kithara asked 11/5, 2010 at 14:52
5
I have a VS.NET 2008 solution which contains a Setup Project. This Setup Project takes output of my other project (in the same solution) and produces a MSI. So far, so good... I would like the asse...
Edee asked 22/2, 2009 at 22:3
3
Solved
I am new to windows desktop application development.
I have created an application using visual - studio 2010 in which I have used one form for data entry. One form with report viewer control and ...
Ashford asked 18/3, 2013 at 10:16
18
Solved
Is there any way to format a string by name rather than position in C#?
In python, I can do something like this example (shamelessly stolen from here):
>>> print '%(language)s has %(#)03...
Hull asked 1/10, 2008 at 18:30
3
Solved
I have one test that needs to work more then 1 minute (VS2008, MSTest, tests are launched from the VisualStudio):
const int TestTimeout = 1;
[TestMethod]
[Timeout(10*60*1000)] // 10 minutes
p...
Monkfish asked 5/11, 2010 at 20:27
4
Solved
I have an application that uses ActiveDirecotry authorisation and it has been decided that it needs to support nested AD groups, e.g.:
MAIN_AD_GROUP
|
|-> SUB_GROUP
|
|-> User
So, the...
Sporocarp asked 15/3, 2011 at 13:52
6
Solved
What's a simple way to combine feed and feed2? I want the items from feed2 to be added to feed. Also I want to avoid duplicates as feed might already have items when a question is tagged with both ...
3
Solved
Does anyone know of a way to programmatically read the list of References in a VS2008 csproj file? MSBuild does not appear to support this functionality. I'm trying to read the nodes by loading the...
3
Solved
ASP.Net 3.5 running under IIS 7 doesn't seem to allow this out of the box.
if (!EventLog.SourceExists("MyAppLog"))
EventLog.CreateEventSource("MyAppLog", "Application");
EventLog myLog = new E...
Jinnyjinrikisha asked 13/11, 2008 at 2:6
1
Solved
I am trying to use GZipStream with MemoryStream. I write all bytes I need and then close gzip stream so after that I need to get compressed buffer from memory stream without allocation additional m...
3
Solved
Is it possible to create VSTO project for Office 2010 and above that targets .NET 3.5 in Visual Studio 2015?
When I try to create it I don't see any project templates:
If I change version of .NE...
Piperonal asked 4/9, 2015 at 9:25
6
Solved
Let's say I have the following content in an XElement object
<root>Hello<child>Wold</child></root>
If I use XElement.ToString(), this gives me
"<root xmnls="someschem...
Fernald asked 7/3, 2013 at 19:53
5
Solved
What is the fastest way to convert an object to a double? I'm at a piece of code right now, which reads:
var d = double.TryParse(o.ToString(), out d); // o is the Object...
First thoughts were t...
Convent asked 2/7, 2010 at 16:4
1
Using the System.Speech.Synthesis.SpeechSynthesizer class in .Net 3.5, the AudioPosition property of the SpeakProgressEventArgs appears to be inaccurate.
The following code produces the following ...
Mendie asked 12/11, 2009 at 0:5
6
Solved
Is there a class existing in .NET Framework 3.5 that would be equivalent to the .NET 4 Tuple?
I would like to use it in order to return several values from a method, rather than create a struct.
8
Solved
There has been a lot of sentiment to include a nameof operator in C#. As an example of how this operator would work, nameof(Customer.Name) would return the string "Name".
I have a domain object. A...
Frear asked 19/11, 2008 at 12:54
2
Solved
Note: I'm using C# in Unity, that means version .NET 3.5, so I cannot use await or async keyword..
What will happen to using statement when I put a method in it which works asynchronously?
using ...
Belindabelisarius asked 15/11, 2015 at 17:55
© 2022 - 2024 — McMap. All rights reserved.