Questions tagged as 'c#'

2
answers

Types of Calling Methods C #

I have a question in the following case, do not refuse dates, I used just as an example: Convert.ToDateTime("01/01/2016 00:00:00").ToShortDateString(); What is the origin of this method ToShortDateString() ? Another example: var...
asked by 07.12.2016 / 18:12
2
answers

Get content inside string

I will have a list of string in the following format: PERSON NAME ( LOGIN ), / p> So, I would need to get only what would be within the parentheses, ie zackson.morgan . How to do this?     
asked by 14.03.2015 / 02:57
2
answers

Inheritance class Object

How does the compiler do to implicitly all classes inherit from object ? This is a behavior adopted in languages such as C #, Java and others. public class Funcionario { } public class Funcionario : Object { } The above example...
asked by 14.11.2016 / 13:31
1
answer

What is the Dynamic Proxy generated by the Entity Framework?

What is the Dynamic Proxy generated by the Entity Framework? And a class? What is the function of it?     
asked by 07.01.2015 / 14:06
2
answers

Get property values from a class

I have the following codes: private PropertyInfo[] ObterPropriedades(Type classe) { PropertyInfo[] properties = classe.GetProperties(); return properties; } private string[] ObterValoresPropriedades(Type classe) { List<string>...
asked by 22.12.2014 / 18:01
2
answers

How to make LINQ filter for every X months?

Hello, I would like to know the best way to filter a list of objects using LINQ in C #, I have a list of objects called Measurement , each measurement has a Date property, which is the date that was registered. What I want to respond to is:...
asked by 18.01.2016 / 20:00
3
answers

Create a table with dates [closed]

I'm creating a table and need the columns to be created as follows: Mon, 23 Nov | Tue, 24 Nov | Wed, 25 Nov | Thu, 26 Nov | Fri, 27 Nov | Sat, 28 Nov | Sun, 29 Nov To create the table I pass by a date parameter (which is selected through a ca...
asked by 26.11.2015 / 17:30
2
answers

Doubt about the error "Error converting data type varchar to float"

   Error converting data type varchar to float This error is occurring when I make a Update in a table, below the code: SqlCommand cmd = new SqlCommand("UPDATE Notas SET nota = '" + nota.nota + "' WHERE idMateria = '" + nota.idMater...
asked by 09.12.2015 / 03:02
2
answers

How to persist the state of a queue of requests?

I'm working on a C # application that needs a queue of items of type Pedido . Basically whenever a new request is created it is queued and the application shows the requests in sequential order that must be delivered. When a request is fin...
asked by 30.06.2014 / 23:37
2
answers

Error sort list?

ViewBag.ListaEspecialidades = Especialidade.ListarEspecialidades().Sort(); Give an error    "can not implicitly convert type void to dynamic".     
asked by 13.04.2017 / 16:32