C# & .NET questions and answers
C# language features, LINQ, ASP.NET and the runtime. Page 18 of 20.
Interview Questions practice on Codemia
Over 8,000 real interview questions from top companies, searchable by company and role.
Answers 1021-1080
- How do you do a deep copy of an object in .NET?
- How do you do Impersonation in .NET?
- How do you enable Enable .NET Framework source stepping?
- How do you format code in Visual Studio Code (VSCode)?
- How do you get a string from a MemoryStream?
- How do you implement an async action delegate method?
- How do you keep user.config settings across different assembly versions in .net?
- How do you log the machine name via log4net?
- How do you loop through currently loaded assemblies?
- How do you prevent IDisposable from spreading to all your classes?
- How do you share code between projects/solutions in Visual Studio?
- How do you simulate Mouse Click in C?
- How do you update multiple field using Update.Set in MongoDB using official c driver?
- How do you UrlEncode without using System.Web?
- How do you use AsParallel with the async and await keywords?
- How does async work in .NET Core on linux not having IO Completion Ports?
- How does DateTime.Now.Ticks exactly work?
- How does DateTime.ToUniversalTime work?
- How does extern work in C?
- How does MVC 4 List Model Binding work?
- How does .NET framework allocate memory for OutOfMemoryException?
- How does one tell if an IDisposable object reference is disposed?
- How does one test async code using MSTest
- How does RegexOptions.Compiled work?
- How does String.Equalsa,b not produce a StackOverflowException?
- How does string.Format handle null values?
- How does Taskint become an int?
- How does the following LINQ statement work?
- How does the ThreadStatic attribute work?
- How does this ConcurrentDictionary LazyTaskT code work?
- How does TransactionScope roll back transactions?
- How does WCF deserialization instantiate objects without calling a constructor?
- How exactly does the Specific Version property of an assembly reference work in Visual Studio?
- How is Math.Pow implemented in .NET Framework?
- How is performance affected by an unused using directive?
- How not persist property EF4 code first?
- How serious is this new ASP.NET security vulnerability and how can I workaround it?
- How should I cast in VB.NET?
- How should I remove all elements in a DbSet?
- How slow are .NET exceptions?
- How to abort a Task like aborting a Thread Thread.Abort method?
- How to access property of anonymous type in C?
- How to access the HttpServerUtility.MapPath method in a Thread or Timer?
- How to add a line break in C .NET documentation
- How to add a task to the collection that Task.WhenAll is waiting for?
- How to add a Timeout to Console.ReadLine?
- How to add basic authentication header to WebRequest
- How to add comments into a Xaml file in WPF?
- How to add extension methods to Enums
- How to add folder to assembly search path at runtime in .NET?
- How to add text to request body in RestSharp
- How to append one DataTable to another DataTable
- How to apply InterLocked.Exchange for Enum Types in C?
- How to apply multiple styles in WPF
- How to Async Files.ReadAllLines and await for results?
- How to asynchronously iterate an ObservableCollection containing hierarchical elements?
- How to automatically select all text on focus in WPF TextBox?
- How to await an IAsyncAction method?
- How to bind an enum to a combobox control in WPF?
- How to build a query string for a URL in C?

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