Questions tagged as 'c#'

2
answers

Declaration of 'var' as field of object

How could I declare a variable var public so I could get the data back. What would be the declaration of these unfilled variants: var tbuscar = ?; var retorno = ?; public bool CarregaProdutosDermaClube(string consult...
asked by 26.05.2017 / 16:53
2
answers

How to add methods to a native class?

How to add functions in a native C # class, in my case, I tried to do in System.Math just as test: public class Math { public static double test(double a) { return a; } } And call it like this: Math.test(10);...
asked by 20.06.2017 / 00:27
2
answers

ToList vs. Typed ToList

I was reviewing some methods of an ASP.NET MVC project and found some cases where only .ToList() is used and others where .ToList<type>() is used (where type is a type of object used in context). Imagine that only with...
asked by 14.03.2017 / 13:07
1
answer

Is the APK made in Xamarin Forms normal, even empty, have 60mb?

I've tried connecting the linker, and be the recommended procedures. I wanted to know if it is normal an apk made using Xamarin.Forms start from 60mb. And if it is not, what to do to reduce the size.     
asked by 22.11.2016 / 19:36
1
answer

Monetize Unity 5 games on Windows Phone 8.X

How do I display ads in my game made in Unity 5 to the Windows Phone 8.X platform?     
asked by 17.01.2016 / 03:00
1
answer

What is the best way to set up a query?

What is the best way to set up a query in C #? Is it advisable to use concatenation with the + operator? For example: query += " WHERE nome LIKE '%" + nome + "%'"; Here is a% w of% that I set as an example to illustrate the situat...
asked by 18.12.2015 / 00:24
1
answer

How to issue the XML from NFe to SEFAZ WS using C #?

I have been doing a lot of research, reading various source codes from other languages and I have never found an answer to my question, what method of SEFAZ web services should I call? I'm working with this WS http://nfe.fazenda.mg.gov.br/...
asked by 08.10.2014 / 15:34
2
answers

What is the behavior of static variables in .Net?

What is the behavior of static variables in .Net? Are these stored in the Heap or the Stack?     
asked by 04.08.2014 / 20:20
2
answers

C # - How to make a lambda filter with more than one field?

My List: public class Carro { public int Ano; public double Valor; } List<Carro> Fiat = new List<Carro>(); Fiat.Add(new Carro {Ano = 2000, Valor = 5000 }); Fiat.Add(new Carro {Ano = 2000, Valor = 6000 }); Fiat.Add(new Carro...
asked by 22.07.2015 / 16:47
2
answers

Expando Object for Bson

How can I build a parse Expanding Object to Bson? (Vs 2013 - C # - MongoDB)     
asked by 29.04.2015 / 16:04