Click here to Skip to main content
15,889,413 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it possible to create an Access database with Pure C# Code Pin
JoeSharp20-Aug-07 1:02
JoeSharp20-Aug-07 1:02 
QuestionActive Directory Integration using C#.net Pin
shanthivasan19-Aug-07 22:26
shanthivasan19-Aug-07 22:26 
AnswerRe: Active Directory Integration using C#.net Pin
sathish s19-Aug-07 22:44
sathish s19-Aug-07 22:44 
GeneralRe: Active Directory Integration using C#.net Pin
shanthivasan19-Aug-07 23:33
shanthivasan19-Aug-07 23:33 
GeneralRe: Active Directory Integration using C#.net Pin
sathish s20-Aug-07 3:24
sathish s20-Aug-07 3:24 
GeneralRe: Active Directory Integration using C#.net Pin
shanthivasan20-Aug-07 3:31
shanthivasan20-Aug-07 3:31 
AnswerRe: Active Directory Integration using C#.net Pin
ekynox20-Aug-07 12:57
ekynox20-Aug-07 12:57 
QuestionC# 3.0 Limitation: Type Inference & Lambda Expressions Pin
SHaroz19-Aug-07 22:14
SHaroz19-Aug-07 22:14 
I saw an interesting point raised here: http://www.atrevido.net/blog/2007/08/02/C+Frustration.aspx[^]

The C# 3 spec does not permit assigning a labmda expression to type infered value. So the following statement is invalid:
var Add = (int a, int b) => a + b;

The keyword var will give error CS0815, "Cannot assign 'lambda expression' to an implicitly typed local".
If the type is changed from var to Func<int, int, int>, the error goes away. The type of this lambda expression is not ambiguous, so the error must simply be a limitation in the type inference. Does anyone know if Microsoft has plans to fix this issue? If the type is known and expressible as a variable, then I see no good reason why this variable should behave differently than any other type-infered generic variable.

I ran into this problem while using VS2008 beta 1, so if it works in beta 2, please let me know.

-sharoz
AnswerRe: C# 3.0 Limitation: Type Inference & Lambda Expressions Pin
originSH19-Aug-07 22:23
originSH19-Aug-07 22:23 
GeneralRe: C# 3.0 Limitation: Type Inference & Lambda Expressions Pin
SHaroz19-Aug-07 22:59
SHaroz19-Aug-07 22:59 
GeneralRe: C# 3.0 Limitation: Type Inference & Lambda Expressions Pin
originSH20-Aug-07 0:04
originSH20-Aug-07 0:04 
QuestionMutex and user account Pin
MarioMARTIN19-Aug-07 22:08
MarioMARTIN19-Aug-07 22:08 
AnswerRe: Mutex and user account Pin
Guffa20-Aug-07 0:53
Guffa20-Aug-07 0:53 
GeneralRe: Mutex and user account Pin
MarioMARTIN20-Aug-07 1:31
MarioMARTIN20-Aug-07 1:31 
AnswerRe: Mutex and user account Pin
pbraun20-Aug-07 12:00
pbraun20-Aug-07 12:00 
GeneralRe: Mutex and user account Pin
MarioMARTIN20-Aug-07 20:47
MarioMARTIN20-Aug-07 20:47 
GeneralRe: Mutex and user account Pin
MarioMARTIN20-Aug-07 21:26
MarioMARTIN20-Aug-07 21:26 
QuestionTo extract text of multiline textbox Pin
Mushtaque Nizamani19-Aug-07 21:50
Mushtaque Nizamani19-Aug-07 21:50 
AnswerRe: To extract text of multiline textbox Pin
Giorgi Dalakishvili19-Aug-07 21:55
mentorGiorgi Dalakishvili19-Aug-07 21:55 
AnswerRe: To extract text of multiline textbox Pin
Rocky#19-Aug-07 21:55
Rocky#19-Aug-07 21:55 
AnswerRe: To extract text of multiline textbox Pin
Mushtaque Nizamani19-Aug-07 23:11
Mushtaque Nizamani19-Aug-07 23:11 
QuestionDebugging a COM dll Pin
jozsurf19-Aug-07 21:28
jozsurf19-Aug-07 21:28 
AnswerRe: Debugging a COM dll Pin
Nissim Salomon19-Aug-07 22:23
Nissim Salomon19-Aug-07 22:23 
GeneralRe: Debugging a COM dll Pin
jozsurf19-Aug-07 22:28
jozsurf19-Aug-07 22:28 
GeneralRe: Debugging a COM dll Pin
Nissim Salomon19-Aug-07 22:45
Nissim Salomon19-Aug-07 22:45 

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.