Questions tagged as '.net'

4
answers

Draw where the name can not be drawn more than once

I need to make a simple draw software, but I do not know how to get the names that were inserted in the list box and draw one among them. The same name can not be drawn more than once. How to do this part?     
asked by 31.05.2014 / 06:19
4
answers

How to limit the resources used by the system?

I have a loop of repetition that does several iterations and has in its scope calculations that require a lot of processing. The problem is that when running the code snippet, processor usage will gradually rise, until the application crashes...
asked by 24.11.2015 / 18:24
3
answers

Concepts of Allocation and Release of Memory in C #

I'm doing a web application that has a finite recursive loop. But during the process memory consumption is constantly increasing and in the end Visual Studio has more than 2 Gigabytes of memory usage. I'd like to know some concepts about memo...
asked by 09.05.2014 / 20:01
5
answers

Programs written in C # depend on the .NET Framework to run?

Since compiling a C # code depends on the .NET Framework installed on the machine to run, similar to Java?     
asked by 27.09.2017 / 02:03
2
answers

How does the Where logic in the Entity Framework work?

I'm studying C # and just did my first query in the Data Bank: using System; using System.Data.Entity.Core; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Test.Models {...
asked by 28.04.2016 / 19:42
2
answers

What is the difference between typeof (T) vs. object.GetType ()

What's the difference? Is there a difference between performance?     
asked by 18.03.2014 / 14:57
3
answers

How can I send an email through GMail?

I want to create an application to send email, I would like to use a GMail account to send these emails, how can I do that?     
asked by 19.12.2013 / 03:32
3
answers

Change TimeZone from DateTime.now

I am hosting my system on a server that is in the US Then using DateTime.Now returns the US date and time. I would like to return the date and time of Brazil. Is it possible?     
asked by 11.01.2015 / 14:07
3
answers

What's the difference between System.Web.Http and System.Web.Mvc?

I have a MVC project and I will have regular controls and controls providing services via webservices ( Controller and ApiController ). And I do not know which one to use because I do not know which one is best.     
asked by 25.06.2016 / 15:48
5
answers

Check if day exists in the month

I need to check / validate if a (numeric) day exists in a given month. For example: I have day 31 , and since it does not exist in the month of February the condition will fail. I think a simple if will solve the problem, wher...
asked by 07.02.2014 / 16:47