C# & .NET questions and answers
C# language features, LINQ, ASP.NET and the runtime. Page 9 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 481-540
- DataContractSerializer doesn't call my constructor?
- DataContractSerializer vs XmlSerializer Pros and Cons of each serializer
- DataGridView - how to set column width?
- DateTime vs DateTimeOffset
- DateTime.Compare how to check if a date is less than 30 days old?
- DateTime.Now vs. DateTime.UtcNow
- DateTime.Now.ToStringyyyy-MM-dd hhmmss is returning AM time instead of PM time?
- DateTime.Parse2012-09-30T230000.0000000Z always converts to DateTimeKind.Local
- DateTime.TryParseExact rejecting valid formats
- DbContext discard changes without disposing
- Deadly exception, how to catch? System.Net.InternalException System error
- Debug async method in VS 2013
- Debug Console window cannot accept Console.ReadLine input during debugging
- Debug vs. release in .NET
- Debug.WriteLine in release build
- Deciding between HttpClient and WebClient
- Decimal precision and scale in EF Code First
- Deciphering the .NET clr20r3 exception parameters P1..P10
- Declare a dictionary inside a static class
- Declaring a Task Property and awaiting it
- Decoding and verifying JWT token using System.IdentityModel.Tokens.Jwt
- Default implementation for Object.GetHashCode
- Default parameter for CancellationToken
- Default SecurityProtocol in .NET 4.5
- Define an abstract async method even if not all overrides are async?
- Defining conditional compilation symbols in MSBuild
- Delaying a Queued Background WorkItem
- delegate keyword vs. lambda notation
- Delegate.BeginInvoke vs ThreadPool.QueueWorkerUserItem
- Delete files older than 3 months old in a directory using .NET
- Dependency graph of Visual Studio projects
- Dependent DLL is not getting copied to the build output folder in Visual Studio
- Deploy a .NET Windows Service with Amazon Elastic Beanstalk with no Web Application
- Deserialize JSON into C# dynamic object?
- Deserialize JSON object into dynamic object using Json.net
- Deserializing empty xml attribute value into nullable int property using XmlSerializer
- Design of asynchronous socket classes in C
- Destructor vs IDisposable?
- Detect if deserialized object is missing a field with the JsonConvert class in Json.NET Newtonsoft
- Detect Windows version in .NET
- Detected package downgrade warning dotnet core, vs 2017
- Detecting async client disconnect in ASP.NET MVC
- Detecting USB drive insertion and removal using windows service and c
- Determine if ASP.NET application is running locally
- Determine .NET Framework version for dll
- Determine via C whether a string is a valid file path
- Determine what control the ContextMenuStrip was used on
- Developing C on Linux
- Dictionary.FirstOrDefault how to determine if a result was found
- Difference between AllowedHosts in appsettings.json and UseCors in .NET Core API 3.x
- Difference between ASP.NET Core .NET Core and ASP.NET Core .NET Framework
- Difference between ...Async and Begin... .net asynchronous APIs
- Difference between await Coroutine and await Task
- Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?
- Difference between casting and using the Convert.To method
- Difference between Char.IsDigit and Char.IsNumber in C
- Difference between CurrentCulture, InvariantCulture, CurrentUICulture and InstalledUICulture
- Difference between decimal, float and double in .NET?
- Difference between IEnumerable Count and Length
- Difference between InvariantCulture and Ordinal string comparison

Course
Intermediate
27 lessons
14 hours
OOD Fundamentals
Master object-oriented design from first principles, SOLID, design patterns, and classic interview problems with hands-on coding.
View the course