Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
GeneralRe: Moving from FoxPro to C# - confusion and Data Structure Questions. Pin
Jammer23-Feb-08 15:26
Jammer23-Feb-08 15:26 
GeneralRe: Moving from FoxPro to C# - confusion and Data Structure Questions. Pin
Christian Graus23-Feb-08 15:36
protectorChristian Graus23-Feb-08 15:36 
GeneralClass Tips [modified] Pin
MasterSharp23-Feb-08 11:14
MasterSharp23-Feb-08 11:14 
GeneralRe: Class Tips Pin
Christian Graus23-Feb-08 12:03
protectorChristian Graus23-Feb-08 12:03 
GeneralRe: Class Tips Pin
MasterSharp23-Feb-08 13:55
MasterSharp23-Feb-08 13:55 
GeneralRe: Class Tips Pin
MasterSharp23-Feb-08 13:56
MasterSharp23-Feb-08 13:56 
QuestionCreate picture of Form Pin
JankoH23-Feb-08 10:58
JankoH23-Feb-08 10:58 
GeneralRe: Create picture of Form Pin
Expert Coming23-Feb-08 11:10
Expert Coming23-Feb-08 11:10 
GeneralRe: Create picture of Form Pin
JankoH23-Feb-08 11:13
JankoH23-Feb-08 11:13 
GeneralRe: Create picture of Form Pin
Christian Graus23-Feb-08 11:40
protectorChristian Graus23-Feb-08 11:40 
GeneralRe: Create picture of Form Pin
JankoH23-Feb-08 11:55
JankoH23-Feb-08 11:55 
GeneralRe: Create picture of Form Pin
Christian Graus23-Feb-08 12:04
protectorChristian Graus23-Feb-08 12:04 
GeneralRe: Create picture of Form Pin
JankoH23-Feb-08 12:07
JankoH23-Feb-08 12:07 
AnswerRe: Create picture of Form Pin
Guffa23-Feb-08 12:05
Guffa23-Feb-08 12:05 
QuestionWhere can I find free obfuscator ? Pin
nirfun23-Feb-08 5:35
nirfun23-Feb-08 5:35 
GeneralRe: Where can I find free obfuscator ? Pin
Expert Coming23-Feb-08 6:32
Expert Coming23-Feb-08 6:32 
GeneralRe: Where can I find free obfuscator ? Pin
PIEBALDconsult23-Feb-08 7:30
mvePIEBALDconsult23-Feb-08 7:30 
GeneralRe: Where can I find free obfuscator ? Pin
Pete O'Hanlon23-Feb-08 10:21
mvePete O'Hanlon23-Feb-08 10:21 
GeneralPlay a stream via windows media player com object Pin
Areff23-Feb-08 2:11
Areff23-Feb-08 2:11 
GeneralRe: Play a stream via windows media player com object Pin
Christian Graus23-Feb-08 10:49
protectorChristian Graus23-Feb-08 10:49 
GeneralRe: Play a stream via windows media player com object Pin
Areff23-Feb-08 19:10
Areff23-Feb-08 19:10 
GeneralRe: Play a stream via windows media player com object Pin
electriac24-Feb-08 11:51
electriac24-Feb-08 11:51 
QuestionTCPClient Socket Pin
Mohammed Shahab23-Feb-08 1:25
Mohammed Shahab23-Feb-08 1:25 
Questionfrom C# 2003 to C# 2005 Pin
Knowledgestudent23-Feb-08 0:58
Knowledgestudent23-Feb-08 0:58 
GeneralRe: from C# 2003 to C# 2005 Pin
Colin Angus Mackay23-Feb-08 4:07
Colin Angus Mackay23-Feb-08 4:07 
Knowledgestudent wrote:
I have written a code using C# 2003 in the past I need to run it on the 2005 environment , I changed every thing but I still got this :

var q =
from device in _manager.DiscoverAllDevices() select device.Name;


Your example won't compile on either 2003 or 2005. It will only compile on 2008.

The equivalent code (roughly) in 2005 is:

Collection<string> q = new Collection<string>();
foreach(Device device in _manager.DiscoverAllDevices())
{
    q.Add(device.Name);
}


I'm assuming that _manager.DiscoverAllDevices() returns something that when enumerated results in lots of Device objects. If not you will have to change the variable type for device.

Does this help?


General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.