Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Is Active Directory Configured Pin
Kevin Marois7-Dec-17 6:50
professionalKevin Marois7-Dec-17 6:50 
AnswerRe: C# Is Active Directory Configured Pin
Pete O'Hanlon6-Dec-17 12:06
mvePete O'Hanlon6-Dec-17 12:06 
QuestionDrag & Drop how to in Windows Application Pin
GauravGoyal_56-Dec-17 6:06
GauravGoyal_56-Dec-17 6:06 
AnswerRe: Drag & Drop how to in Windows Application Pin
OriginalGriff6-Dec-17 6:42
mveOriginalGriff6-Dec-17 6:42 
GeneralRe: Drag & Drop how to in Windows Application Pin
GauravGoyal_56-Dec-17 7:21
GauravGoyal_56-Dec-17 7:21 
GeneralRe: Drag & Drop how to in Windows Application Pin
OriginalGriff6-Dec-17 8:00
mveOriginalGriff6-Dec-17 8:00 
AnswerRe: Drag & Drop how to in Windows Application Pin
Dave Kreskowiak6-Dec-17 6:52
mveDave Kreskowiak6-Dec-17 6:52 
GeneralRe: Drag & Drop how to in Windows Application Pin
GauravGoyal_56-Dec-17 7:20
GauravGoyal_56-Dec-17 7:20 
GeneralRe: Drag & Drop how to in Windows Application Pin
Dave Kreskowiak6-Dec-17 7:22
mveDave Kreskowiak6-Dec-17 7:22 
AnswerRe: Drag & Drop how to in Windows Application Pin
MAIsw6-Dec-17 23:40
MAIsw6-Dec-17 23:40 
QuestionProblem with sending DateTime object to PHP webservice from c# Pin
Snyezana Miletich5-Dec-17 21:34
Snyezana Miletich5-Dec-17 21:34 
AnswerRe: Problem with sending DateTime object to PHP webservice from c# Pin
Jochen Arndt5-Dec-17 21:46
professionalJochen Arndt5-Dec-17 21:46 
GeneralRe: Problem with sending DateTime object to PHP webservice from c# Pin
Snyezana Miletich5-Dec-17 23:12
Snyezana Miletich5-Dec-17 23:12 
GeneralRe: Problem with sending DateTime object to PHP webservice from c# Pin
Jochen Arndt5-Dec-17 23:48
professionalJochen Arndt5-Dec-17 23:48 
QuestionAdding dynamically a custom user control into a dockPanel in xaml file Pin
Hervend3-Dec-17 23:10
Hervend3-Dec-17 23:10 
AnswerRe: Adding dynamically a custom user control into a dockPanel in xaml file Pin
Kenneth Haugland4-Dec-17 0:36
mvaKenneth Haugland4-Dec-17 0:36 
AnswerRe: Adding dynamically a custom user control into a dockPanel in xaml file Pin
#realJSOP4-Dec-17 3:11
mve#realJSOP4-Dec-17 3:11 
AnswerRe: Adding dynamically a custom user control into a dockPanel in xaml file Pin
Mycroft Holmes4-Dec-17 13:21
professionalMycroft Holmes4-Dec-17 13:21 
AnswerRe: Adding dynamically a custom user control into a dockPanel in xaml file Pin
Gerry Schmitz4-Dec-17 18:59
mveGerry Schmitz4-Dec-17 18:59 
QuestionAlright. How the heck to they do it? Pin
#realJSOP3-Dec-17 6:37
mve#realJSOP3-Dec-17 6:37 
AnswerRe: Alright. How the heck to they do it? Pin
Luc Pattyn3-Dec-17 11:33
sitebuilderLuc Pattyn3-Dec-17 11:33 
GeneralRe: Alright. How the heck to they do it? Pin
Nathan Minier4-Dec-17 1:18
professionalNathan Minier4-Dec-17 1:18 
AnswerRe: Alright. How the heck to they do it? Pin
Kenneth Haugland4-Dec-17 0:30
mvaKenneth Haugland4-Dec-17 0:30 
GeneralRe: Alright. How the heck to they do it? Pin
#realJSOP4-Dec-17 3:02
mve#realJSOP4-Dec-17 3:02 
I'm trying to do this:

SomeRandomMethod(blah, blah, new { id=1,mystring="text"})


and when I get here:

C
public void SomeRandomMethod(dynamic obj)
{
    int id = obj.id;
    string text = obj.mystring;
}


the code throws exceptions because the properties don't exist.

Some might say, create a class with the same properties and cast it in the method, but then what's the point? If it's gotta be strongly typed, then it should be strongly typed where you're creating the instance (IMHO).
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: Alright. How the heck to they do it? Pin
Kenneth Haugland4-Dec-17 3:12
mvaKenneth Haugland4-Dec-17 3:12 

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.