Questions tagged as 'c#'

1
answer

Transpose object list [closed]

How can I transpose the columns of a table like the one in the image below For this format: Mercado | Semana 5 | Semana 6 FUT AUD | 0.9986 | 1.0035 FUT CAD | 1.0000 | 1.0062 FUT CHF | 1.0059 | 1.0158 I tested some implementation...
asked by 07.03.2018 / 15:17
1
answer

Does not contain a definition for 'Include' and the best extension method overload 'QueryableExtensions.Include (IQueryable, string)

Why does not my code recognize the .Include ("Category") method in my ConsoleApp? Where am I going wrong? Severity Code Description Project File Line Suppression State QueryableExtensions.Include (IQueryable, string) 'requires a receiver of typ...
asked by 31.03.2018 / 20:34
1
answer

I am doing a simple program to study Vectors, when I run it appears the error "Index was outside the bounds of the array" in line 24

using System; public class Program { public static void Main() { int i, n; Console.WriteLine("Entre com o número de Alunos: "); n = Convert.ToInt32(Console.ReadLine()); String[] nome = new String [n];...
asked by 11.03.2018 / 16:36
2
answers

Display number of results of a SQL query [closed]

I have a resident registration system, I would like to display the quantity of records that result from my SQL lookup on my form in Visual Studio The SQL code is as follows SELECT * FROM PERGUNTAS WHERE BAIRRO = 'MCMV - INOÃ' In SQL Serv...
asked by 11.03.2018 / 21:02
1
answer

How to get the selected item

Hello, I'd like some help, I'm using the DEVEXPRESS framework. I have a form with a GridControl, in this GridControl I have a DoubleClick event. When I click the selected line I want to get only the ID of the line. Using a normal grid I make...
asked by 10.03.2018 / 18:54
2
answers

What's wrong with my code?

I want to make a program that checks if any file is null, but is throwing an exception, what's wrong with my code ?: static List<string> GetFiles(string path) { string[] directories = Directory.GetDirectories(path);...
asked by 24.02.2018 / 01:05
2
answers

Convert number c #

How to convert $ 3,852.00 and save on those bank. and ,? Follow my code. public ImportProcesso() { ImportProcesso processo = new ImportProcesso(); processo.dataReqPgto = new System.DateTime(); proce...
asked by 23.02.2018 / 19:29
1
answer

Action call as parameter in Html.BeginForm - ASP .NET MVC 5

I have a code that queries a WebApi, writes to the database, and queries the database, in this application, a view that has 3 buttons, namely: Query Ws Insert BD BD Query I'm using @ Html.BeginForm to submit the button action and call...
asked by 23.02.2018 / 18:43
1
answer

When I load my App class is not recognized

It says that BadeView does not exist in the current context in this line of xaml.g.cs [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")] private global::Xamarin.Forms.BadgeView bdgDesvioFat...
asked by 23.02.2018 / 21:23
1
answer

How to install a NuGet HIDsharp in Visual Studio

I need to communicate between a WPF I'm creating and a USB port that receives data from a hardware. Reading about, I saw that you need a library called HIDSharp that would be NuGet to make this communication, but I'm not sure what a NuG...
asked by 20.03.2018 / 15:13