C# (pronounced "C sharp") is a high level, object-oriented programming language that is designed for building a variety of applications that run on the .NET Framework (or .NET Core). C# is simple, powerful, type-safe, and object-oriented.

learn more…| top users | synonyms (6)|c# jobs

0
votes
0answers
3 views

Use CloudBlob.ExistsAsync vs catch StorageException.BlobNotFound, in terms of performance?

I want to download a file from Azure Blob Storage which may not exist yet. And I'm looking for the most reliable and performant way into handling this. To this end, I've found two options that both ...
0
votes
0answers
7 views

Various errors in Visual Studio 2013 regarding updating to MVC 5

I recently updated our projects from .Net 4.0 to .Net 4.6 and decided to also update from MVC 4 to MVC 5. I updated all NuGet packages and all projects builds and compiles, but if I open any of the ....
0
votes
0answers
9 views

Entity Framework 6 -> Use one property for two composite foreign keys

Background: We are receiving data from an external system that we are going to store in our database and the models are based on the information we are getting from them.Everything has run smoothly ...
0
votes
0answers
13 views

Can red-black tree contain nodes with the same key?

I'm trying to implement a simple red-black tree. Node of the tree contains fields for key:int and value:string. I know that i can have nodes with same values and with different keys, but can i have ...
-2
votes
0answers
12 views

Authentication implementation front or back?

I'm developing an application backend C#(WCF) and frontend Angular5 with Mongo Database.. the question here where would i develop the implementation of the Authentication ?
1
vote
0answers
18 views

Distance between a point and a line segment

I'm trying to find the distance between a point and a line segment in Unity C#, however I have not had much luck. Initially I have tried to implement the formula in this answer, which worked fine ...
0
votes
0answers
8 views

Quartz Scheduler Could not Initialize DataSource: myDS

I'm using Quartz 3.0.2 with MS SQL Server. I'm getting "Could not Initialize DataSource: myDS" on GetScheduler.This is my code:StdSchedulerFactory schedFact=new StdSchedulerFactory();IScheduler ...
0
votes
1answer
11 views

How to get the values of a specific attribute in different nodes?

I have a xml file which looks like<?xml version="1.0"?><notes><note><to>Tove</to><from add="abc1">Jani</from><heading>Reminder</...
0
votes
0answers
7 views

Encapsulating a workflow or a series of actions

I have a simple CRUD repository service. It executes operations against a remote repository. When creating/updating data, I need to orchestrate a series of actions:Update a different database...
1
vote
0answers
15 views

C#/.Net : GetResponseAsync taking too much time

I have a request that takes approximately 20 seconds at worse and it works perfectly fine when i use a Chrome Extension like Postman or AdvancedREST Client.My problem is, in C# i used an ...
0
votes
2answers
27 views

What exactly does the disposed flag mean in Dispose(bool)?

As following example implementation i.e. https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose there is a flag indicating redundant calls. In examples it is always ...
0
votes
0answers
12 views

How to use DI(AutoFac) with a Service Layer

I have an MVC app using a 3-tier pattern: DAL <-> Service <-> UI and I'm trying to add AutoFac for testing my MVC controllers as well as services.A couple questions:1) How do I use AutoFac ...
0
votes
0answers
17 views

linq query for sql xml column

I would need to write a linq query in c# for the following sql query.I have no issues in implementing where, not in, orderby and descending but the problem is to query a sql xml columnSELECT [ID]...
0
votes
0answers
14 views

Multiselect dropdown should have multiple coloums

I am trying to make a multiselect dropdown using the Davidstutz multiselect plugin but I am unable to make multiple columns in my multiselect dropdown, it just shows a single column.This is my js ...
0
votes
0answers
29 views

C# infinite recursion during resource lookup

I have a problem with this code:if (_updater.IsNewVersionAvailable()){_isolatedStorageFile.CreateDirectory("Folder");_isolatedStorageFile.CreateDirectory("Folder2")...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,