Questions tagged as 'c#'

1
answer

Entity Framework with Oracle

I'm trying to use EF, using Code Frist, along with an Oracle database, so I'm using the Nuget package Oracle.ManagedDataAccess.EntityFramework , however whenever I try to run Update-Database it gives the following error message:    Sy...
asked by 14.07.2017 / 04:54
1
answer

How to print accent in a Console Application .NET Core project [closed]

using System; namespace MediaDoisNumeros { class Program { static void Main(string[] args) { Int16 numero1, numero2; Double media; Console.Write("Digite o numero 1 : "); n...
asked by 25.07.2017 / 01:43
1
answer

Doubt in a lambda expression returning "true"

When I do this: List<Tipo1> tipo = await context.MeuMetodo.Find(x => true).ToListAsync(); What am I saying here: (x => true) ?     
asked by 27.06.2018 / 15:12
1
answer

Set export of an EPS to JPEG in Magick.NET

I'm using the Magick.NET library to convert an EPS file > JPEG. However the result is not nice because regardless of the resolution (DPI) and size (Width and Height) that I put the image is pixelated and with the wrong colors ... Here is an...
asked by 25.06.2018 / 20:28
2
answers

Directories in C #

I have several .Sql files in this directory: C:\Users\anacarvalho\Desktop\Teste How do I get all these files?     
asked by 19.04.2017 / 13:55
1
answer

Insert the value of an attribute into a textBox

I need to insert the value of the SALDO attribute of the Conta class into a TextBox . In java redirection via method get and convert with parse.float and hedge as string in field. How do I run C #...
asked by 20.04.2017 / 15:39
3
answers

Serialization and Deserialization JSON in desktop application

  "Price": 200, "Price": 900.77, "PrecoST": 225.19, "Description": "   ASUS AMD RADEON R5 230 VIDEO CARD 1GB DDR3 64BITS R5230-SL-1GD3-L   "IMP", "Group": "VIDEO PLATE", "Mark": "ASUS", "Source": 6, "NCM": "8473.30.43", "EAN": "0000000000000", "...
asked by 16.09.2014 / 21:30
1
answer

Access Denied when saving image in an application

I made a Silverlight application that captures image using the web cam. The application works perfectly however when I save the captured image it generates the following error:    File operation not permitted. Access to path: 'D: \ Web ....'...
asked by 29.09.2014 / 19:26
2
answers

How to read data from an aquiver.xml and display in a textbox

I have an application that generates an XML file, but I am not able to read the XML file and insert it into the TextBox. <?xml version="1.0"?> <parametros> <banco>rango</banco> <caminho>C:\</caminho>...
asked by 10.10.2014 / 19:37
1
answer

Create header (rows) of array in DataGridView

Would somehow have C # use this pointed column of the image to add value to it as if it were a "header"? I'm using DataGridView below to show an array. The array header is already being shown in the columns because I can use: gridVie...
asked by 05.04.2017 / 15:16