Questions tagged as '.net'

3
answers

How can I manipulate a PSD file to get the position of the layers?

I'm working on a project where we have a .psd (Photoshop) file called "sprites" that contains all the site's icons. I'd like to be able to get the positions of each layer to be able to automatically generate a css file by positioning each i...
asked by 24.12.2013 / 19:06
2
answers

Send email using ASP.Net MVC

How can I send email using ASP.Net MVC? Do you have any option to send without specifying SMTP similar to mail() of PHP ?     
asked by 03.09.2015 / 22:20
4
answers

Printing Array of Strings in a Single MessageBox

I have a variable that is an array of string s and I want to print its values, but these values and consequently the quantity of them is only defined after the system works. How can I print in a MessageBox , for example, all valu...
asked by 24.08.2015 / 15:06
1
answer

Remove "OR" condition from LINQ query

I have the following method: bool naoUsarNomeCliente = String.IsNullOrWhiteSpace(filtro.NomeCliente); long codigoExterno; bool naoUsarCodigoExterno = !long.TryParse(filtro.CodigoExterno, out codigoExterno); bool naoUsar...
asked by 09.06.2017 / 21:05
2
answers

Create an object of type Stream from a string

I need to create an object of type System.IO.Stream from the contents of a string . This my string is in a Resource.resx file. I retrieve it like this: string xml = ResourcesRel.pt_BR; I need to use a component that ha...
asked by 22.02.2017 / 20:00
2
answers

What is the difference between ToListAsync () and ToList ()?

What is the difference between ToListAsync() and ToList() ? As in the example below, what is the difference between one and the other? using Modelo.Classes.Contexto; using System.Data.Entity; using System.Linq; namespace AppCo...
asked by 05.12.2016 / 15:52
2
answers

Monitoring internet connection at run time

I'm using this method in C # to be able to identify whether the computer is connected to the internet or not private bool VerificarConexao() { if (NetworkInterface.GetIsNetworkAvailable()) { return true; }...
asked by 16.12.2016 / 13:15
2
answers

How do I make a function that takes two integers and returns a Boolean value?

I want to do a function that takes two integers and returns a boolean , but when I put the: return (encontrou); It gets an error on top of the encontrou variable. Here is part of my function: public static bool verificar(int cont,...
asked by 01.11.2017 / 03:33
4
answers

How to return values from a List in C #

I have a class Funcionario that has attributes: CPF , Nome and Salario . I have to create an X amount of instances of this class in a List<> and after that, return to the user the values of this list. Wi...
asked by 03.09.2018 / 14:45
4
answers

Create layout for PHP and .Net applications

I work in a public body and we have numerous web applications in PHP and .Net . I'm working on a standard layout so that we maintain the visual identity across all systems. Is there any way (tool / framework / API) that every develope...
asked by 29.01.2016 / 13:41