Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
QuestionDetect Network Connection Type Pin
Kevin Marois13-Sep-16 10:29
professionalKevin Marois13-Sep-16 10:29 
AnswerRe: Detect Network Connection Type Pin
rhgarner13-Sep-16 13:17
rhgarner13-Sep-16 13:17 
GeneralRe: Detect Network Connection Type Pin
Kevin Marois13-Sep-16 13:28
professionalKevin Marois13-Sep-16 13:28 
GeneralRe: Detect Network Connection Type Pin
Dave Kreskowiak13-Sep-16 14:53
mveDave Kreskowiak13-Sep-16 14:53 
GeneralRe: Detect Network Connection Type Pin
Kevin Marois13-Sep-16 14:57
professionalKevin Marois13-Sep-16 14:57 
QuestionRe: Detect Network Connection Type Pin
Eddy Vluggen13-Sep-16 21:53
professionalEddy Vluggen13-Sep-16 21:53 
AnswerRe: Detect Network Connection Type Pin
Garth J Lancaster24-Sep-16 21:57
professionalGarth J Lancaster24-Sep-16 21:57 
QuestionConvert JSON Array Objects Into Dotnet Objects Pin
MadDashCoder13-Sep-16 8:43
MadDashCoder13-Sep-16 8:43 
I have a web app where users can add any style property they want to the Style attribute of any DOM element on a web page.

The ID and the Style attributes of each DOM element are used to create a JSON array and sent to the backend to be converted into Dotnet objects. Then the deserialized data are used to create or update a CSS file.

I know that to convert JSON array objects to Dotnet objects, usually C# classes are created and properties are then created within those classes. Then the JSON array is deserialized using either JavascriptSerializer or JSON.Net which will populate the properties of the created classes.

The problem is I don't know ahead of time which properties of the Style attribute the user of my app will add to the JSON array.

modified 14-Sep-16 8:16am.

AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
Pete O'Hanlon13-Sep-16 21:11
mvePete O'Hanlon13-Sep-16 21:11 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
F-ES Sitecore13-Sep-16 23:13
professionalF-ES Sitecore13-Sep-16 23:13 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
Midi_Mick14-Sep-16 0:46
professionalMidi_Mick14-Sep-16 0:46 
GeneralRe: Convert JSON Array Objects Into Dotnet Objects Pin
MadDashCoder14-Sep-16 3:52
MadDashCoder14-Sep-16 3:52 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
Midi_Mick14-Sep-16 4:24
professionalMidi_Mick14-Sep-16 4:24 
AnswerRe: Convert JSON Array Objects Into Dotnet Objects Pin
Midi_Mick14-Sep-16 4:32
professionalMidi_Mick14-Sep-16 4:32 
GeneralRe: Convert JSON Array Objects Into Dotnet Objects Pin
MadDashCoder14-Sep-16 5:25
MadDashCoder14-Sep-16 5:25 
QuestionEF code first telling me to do the migration for db object which is already is in db Pin
Tridip Bhattacharjee12-Sep-16 22:53
professionalTridip Bhattacharjee12-Sep-16 22:53 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Nathan Minier13-Sep-16 1:37
professionalNathan Minier13-Sep-16 1:37 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Richard Deeming13-Sep-16 2:27
mveRichard Deeming13-Sep-16 2:27 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Tridip Bhattacharjee13-Sep-16 2:32
professionalTridip Bhattacharjee13-Sep-16 2:32 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Nathan Minier13-Sep-16 2:46
professionalNathan Minier13-Sep-16 2:46 
GeneralRe: EF code first telling me to do the migration for db object which is already is in db Pin
Tridip Bhattacharjee13-Sep-16 21:45
professionalTridip Bhattacharjee13-Sep-16 21:45 
AnswerRe: EF code first telling me to do the migration for db object which is already is in db Pin
Richard Deeming13-Sep-16 2:32
mveRichard Deeming13-Sep-16 2:32 
QuestionResource file in c# (.resx) Pin
Harpreet05Kaur12-Sep-16 22:03
Harpreet05Kaur12-Sep-16 22:03 
AnswerRe: Resource file in c# (.resx) Pin
OriginalGriff12-Sep-16 22:21
mveOriginalGriff12-Sep-16 22:21 
QuestionWindows Shell - Prevent Folder & File Operations Pin
Kevin Marois12-Sep-16 10:53
professionalKevin Marois12-Sep-16 10:53 

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.