.net-3.5 Questions

2

Solved

I have to call the following method: public bool Push(button RemoteButtons) RemoteButtons is defined this way: enum RemoteButtons { Play, Pause, Stop } The Push method belongs to the RemoteCo...
Gripper asked 14/3, 2014 at 22:54

7

Solved

I have a DataTable with a Name column. I want to generate a collection of the unique names ordered alphabetically. The following query ignores the order by clause. var names = (from DataRow dr in...
Entrechat asked 1/8, 2008 at 13:14

9

Solved

I am trying to write a function that will convert a DateTime.Now instance to the number of seconds it represents so that I can compare that to another DateTime instance. Here is what I currently ha...
Jala asked 5/11, 2010 at 20:30

11

Solved

In many places in our code we have collections of objects, from which we need to create a comma-separated list. The type of collection varies: it may be a DataTable from which we need a certain col...
Nedranedrah asked 1/12, 2008 at 10:45

3

Solved

So when I write something like this Action action = new Action(()=>_myMessage = "hello"); Refactor Pro! Highlights this as a redundant delegate creation and allows me to to shorten it to Act...
Sanative asked 19/4, 2009 at 19:53

4

Solved

I have a Winforms App in C# with a ListView control. This ListView shows a list of TO-DO items and I am using the 'ItemSelectionChanged' event to handle updates. The problem is that the 'ItemSele...
Melvamelvena asked 12/7, 2010 at 14:51

3

Solved

I wonder if there is a way to limit who can inherit from a class. internal: doesn't allow class to be inherited outside the assembly sealed: class cannot be inherited Is there a keyword or way ...
Leaflet asked 25/12, 2011 at 21:28

3

For usage in my current project I've created a class that allows me to call SQL Server async. My code looks like this: internal class CommandAndCallback<TCallback, TError> { public SqlComm...
Sheritasherj asked 15/3, 2013 at 11:30

3

Solved

I am running Windows 8 and have both Visual Studio 2010 Ultimate w/sp1 and Visual Studio 2012 Ultimate and I am trying to create a Portable Class Library that supports .net 3.5 and greater. When I...

3

Solved

I have an 3rd party SOAP web service. I need to make a call to one of its methods. The request needs to be signed. How can I sign the request?
Worlock asked 18/2, 2010 at 21:22

1

Solved

In a WinForms application, a Panel is used as a placeholder to display a single User Control as a navigation strategy: whenever the user wishes to navigate to a given area, the respective User Cont...
Amyamyas asked 14/3, 2018 at 16:47

3

I am wondering how you would convert the date and time from 20100131022308.000000-360. I've been trying to figure it out for a while now and I can't seem to get anywhere. I am using C# in a WPF A...
Blockbusting asked 1/3, 2010 at 20:55

6

Solved

Using C# Winforms (3.5). Is it possible to set the row colors to automatically alternate in a listview? Or do I need to manually set the row color each time a new row is added to the listview? B...
Paragraphia asked 19/5, 2010 at 15:5

2

looking for a string within excel file range with like expression Example file excel look like below: ---------------------------------------------------------- # | A | B | C | D | -----------...
Cazares asked 21/2, 2018 at 8:59

4

Solved

I'm writing a routine that validates data before inserting it into a database, and one of the steps is to see if numeric values fit the precision and scale of a Numeric(x,y) SQL-Server type. I ha...
Padus asked 10/10, 2008 at 19:13

5

Solved

Is there support for POP3 client in the .net framework? If so, please tell me it's name as I have been searching for it, but I was unable to find it. Regards!
Reservation asked 17/11, 2010 at 23:53

3

Solved

OK, so here is some context for my problem, written as pseudo-C# code (feel free to point out any mistake): (You can jump directly to the stacktrace and read the context later.) public class SomeF...
Contrived asked 23/11, 2010 at 16:20

3

Solved

I have a Pocket PC 2003 solution, consisting of three projects, that was created in Visual Studio 2005. I open the solution in Visual Studio 2008 and two of the projects fail to convert due to erro...
Overwind asked 9/12, 2008 at 19:15

4

Solved

I'm having trouble dealing with some XML file (which is at the end of this post). I wrote the following code in order to get Job_Id data related to a given Job_Name pattern whose owner Job_Owner i...
Binucleate asked 7/10, 2011 at 21:18

3

How to mock ObjectContext or ObjectQuery in Entity Framework?
Hulton asked 6/1, 2009 at 4:11

3

Solved

How do you put a WPF control into a Windows Forms Form? Most likely I will be inserting my WPF control into a Windows.Forms.Panel.
Bostic asked 19/2, 2011 at 21:0

6

Solved

Why would the cast (to a System.Guid type) statement be invalid (second line in try block)? For example, suppose I have a string with a value of "5DD52908-34FF-44F8-99B9-0038AFEFDB81". I'd l...
Demonstrable asked 25/8, 2011 at 22:4

2

Solved

I've got a .NET library in which I need to find all the classes which have a custom attribute I've defined on them, and I want to be able to find them on-the-fly when an application is using my lib...
Casady asked 6/4, 2009 at 3:10

2

Solved

I have a ClickOnce environment like this: \\Fileserver\ClickOnceApps\App1.application C:\Documents and Settings\user\Start Menu\Programs\publisher\app1.appref-ms My understanding is the .apppref-ms...
Impracticable asked 11/11, 2008 at 15:20

4

Solved

I would like to do something like this in .NET 3.5. What's the quickest way? IEnumerable<DataRow> collection = TypedDataSet.TypedTableBase<DataRow>.Rows as IEnumerable<DataRow&gt...
Safelight asked 11/2, 2011 at 21:18

© 2022 - 2024 — McMap. All rights reserved.