Questions tagged as 'c#'

1
answer

How to use natural language processing in Portuguese with C #?

I need to find people's names and organizations in the text. I discovered that I need to use natural language processing for this, but I was only able to implement it in English using Stanford NLP for .NET and OpenNLP. Is there any way to...
asked by 20.09.2016 / 02:00
2
answers

How to list reservations registered by a single administrator? (1: N)

I register my attributes of the Reserve class, logged in as an Administrator. I would like to know how I can list these reservations by a specific administrator? Example: Administrator 1, registered 2 reservations. Administrator 2, registered...
asked by 23.09.2016 / 08:52
1
answer

Calculate cubic root

I'm having trouble creating the following Cube root and LN buttons. I have buttons that should be very similar like for example the normal square root and the log. I tried to create the following for the cube root: private void btn_raizc...
asked by 25.09.2016 / 20:08
1
answer

How do I get PDF content generated by Rotativa?

I'm using Rotativa for PDF generation from a .cshtml I can download the file through the application correctly using the command below: DadosConvite convidado = new DadosConvite(); convidado.nome = "teste"; return new Rotativa.ViewAsPdf("Conv...
asked by 24.11.2014 / 14:18
2
answers

How to use Filter in FolderBrowserDialog

I would like to know how do I put a filter on certain files using C #. Well, it's more or less like this, I'm doing an application in C # that should open some types of files (in the case .frm), in the "manual" part that would be when the use...
asked by 15.12.2014 / 16:52
1
answer

What is the Expect100Continue property in System.Net.ServicePointManager?

I'm working on a system that manages the licenses of customers. There is a feature on my system to return the customer's product key by querying Web Service . And simple you inform the CNPJ it returns the a product key. //Web Service Ge...
asked by 29.03.2016 / 20:25
1
answer

Passing model via parameter dynamically in .NET MVC

I created this function to generate a handle (or slug , as you prefer) for the model users, the problem is that I would like to make it more "modular", so I can easily implement in any other model you also need to generate a handle...
asked by 24.06.2016 / 18:41
2
answers

Unassigned variable in C #

The variable in the last console.writeLine is giving that was not assigned being in the ifs, I would like to know why. string c, nome; double s, sn; Console.WriteLine("Escreva o nome:"); nome = Console.ReadLine(); Console.WriteLine("Escreva o...
asked by 14.09.2018 / 20:37
1
answer

How to separate a fixed route from a variable route with asp.net mvc5

I have a control that manages videos. I'm trying to do these two methods: [Route("video/categoria/{categoria}")] public async Task<ActionResult> Index(string categoria) { } [Route("video/categoria/new-movies")] public as...
asked by 04.11.2015 / 21:34
2
answers

How to adapt / create a method that receives an anonymous class in C #

I have a method in which one of the parameters is an object of an abstract class - ObjectMapper - whose purpose is to convert an object from one class to another from another class. Below, the method signature informs that the objectMapper will...
asked by 17.09.2015 / 17:04