.net-3.5 Questions
2
Solved
I have a binary file specification that describes a packetized data structure. Each data packet has a two-byte sync pattern, so scanning for the beginning of a packet is possible, using a BinaryRea...
Pleasure asked 5/3, 2012 at 22:34
3
Solved
What are some good (or the best!) XMPP/Jabber client libraries for .NET 3.5 or 4.0 development?
I have seen a few decent libraries out there, but most of the good ones seem to be built for F...
3
Solved
I have found similar questions on this page, but I can't seem to figure out how to interpret the answers or figure out if they are truly duplicates.
Here are the possible duplicates I've found, wit...
Polemoniaceous asked 8/9, 2010 at 20:37
2
Solved
Im using in
EventLogQuery eventsQuery = new EventLogQuery("Security", PathType.LogName, queryString);
EventLogReader logReader = new EventLogReader(eventsQuery);
In order to read the log event...
4
Solved
I have the need to make a call to the System.Xaml library in .NET 4.0. Is it possible to make a call to this library if your project is targeted to 3.5?
1
Completely random and suddenly our application crashes on its production environment. The application runs on Windows XP and .net framework 3.5 sp1. In the application we provide a WCF service and ...
Banta asked 28/2, 2012 at 8:56
3
Solved
I am using Visual Studio 2008 | .NET 3.5 | C#. I have created an user control that has the following property: DisplayMode. DisplayMode is meant to either display a series of text boxes or a single...
Sloop asked 2/6, 2009 at 20:22
3
Solved
Lets say I have the below code. What is the difference between assigning the actions directly and subscribing to an event?
//Action directly assigned
public class ClassA
{
public Action<string...
3
Solved
1
Solved
I have an asp.net application that requires some editing of the machine.config file in order to work properly. On my development machine(running windows xp), I edited the machine.config file at the...
Zurek asked 10/2, 2012 at 19:54
1
Solved
I am trying to see if I can port a .NET 4 project (specifically, Cassette) to 3.5.
I finished the entire main project but now I'm on the last error and I can't seem to figure out a workaround.
Ca...
Nacelle asked 7/2, 2012 at 17:13
2
I have a very long and repeating binding expression in xaml. Can I first define it in resource section and then refer to it using DynamicResource or StaticResource? Something like:
<SomeControl...
1
Solved
I'm trying to validate some data in a CSV file I'm parsing through. The users feed my program a CSV file and I want them to be able to validate any combination (and/or) of columns 2 though 7 and sp...
Twentyone asked 6/2, 2012 at 16:40
2
Solved
As a means of introducing lazy formatting evaluation in a library I am developing, I have defined the delegates
public delegate string MessageFormatterDelegate(string message, params object[] argu...
1
Solved
I have a windows service containing this code:
public static void ExtractTextInner(string source, string destination)
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName...
Casandracasanova asked 2/2, 2012 at 10:18
4
I have the following code that gives the error
Default parameter specifiers are not permitted
How can this be fixed?
bool listSubscribe(string apikey,
string id,
string email_address,
...
5
Solved
I have a method that uses the params keyword, like so:
private void ParamsMethod(params string[] args)
{
// Etc...
}
Then, I call the method using various combinations of arguments:
// Within...
Carolann asked 26/1, 2012 at 21:44
2
Solved
I'm exposing an API through a facade with methods returning interface types, and I have run into an issue with generic lists and inheritance in C#/.NET 3.5.
I have two interfaces:
IMyList (impleme...
Visitant asked 26/1, 2012 at 17:50
2
Take a look at this psuedo schema (please note this is a simplification so please try not to comment too heavily on the "advisability" of the schema itself). Assume Indexes are inplace on the FKs.
...
Soakage asked 22/11, 2011 at 12:40
8
10
Was considering the System.Collections.ObjectModel ObservableCollection<T> class. This one is strange because
it has an Add Method which takes one item only. No AddRange or equivalent.
th...
Pithead asked 11/9, 2008 at 16:15
3
Solved
For this LINQ query I'm getting the exception below:
(from row in ds.Tables[0].AsEnumerable()
where row.Field<string>("Dept_line_code") == DeptCode &&
row.Field<string&...
Priscilapriscilla asked 10/1, 2012 at 13:26
4
Solved
I have an application that takes too long to run, and I want to introduce threading / parallelization / whatever.
Specifically, the code retreives several thousand mails, then sends them. Today, t...
Preteritive asked 2/1, 2012 at 11:57
1
Solved
I am trying to serialize a list of descendants. This is what I have now, that works fine:
class Animal {}
class Zebra:Animal{}
class Hippo:Animal{}
[XmlRootAttribute("Zoo")]
class Zoo
{
[XmlArr...
Juan asked 1/1, 2012 at 13:15
1
Solved
This code generates two compile time errors:
private void DoSomething()
{
List<List<Foo>> myFoos = GetFoos();
UseFoos(myFoos);
}
private void UseFoos(IEnumerable<IEnumerable<...
© 2022 - 2024 — McMap. All rights reserved.