Questions tagged as '.net'

2
answers

Can I have more than one Views directory in MVC?

I'm transferring my project to MVC, and would like to know if you can have more than one Views folder in the project, or if you have a CSS load outside of BundleConfig , have a static page somewhere bugar all my pages.     
asked by 06.05.2017 / 20:36
1
answer

How to get timezone?

I have the following code: var minhaData = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, meuTimeZone); If meuTimeZone = "E. South America Standard Time"; then the value returned to minhaData is timezone -03:00...
asked by 22.09.2015 / 21:32
1
answer

How to print the entire string if the length exceeds the page

I have to print a string that can vary in size. What I need is if this string does not fit on the page the remaining text is printed on another. I know for this I need to do something using e.HasMorePages but I do not know how. I've b...
asked by 12.11.2014 / 19:43
3
answers

Multi Banks / Cache / Client Layer

We are looking at ways to develop functionality for a system, which will be in C # .Net. I would like to hear opinions on how we can do this, if we can use some frameworks or something else. Access to multiple banks We need the syste...
asked by 21.09.2014 / 01:43
2
answers

Cipher of vigenere

private static void algoritmo(String input, String chave, Boolean b) { Console.WriteLine("Digite a mensagem: "); input = Console.ReadLine(); Console.WriteLine("Digite a chave: "); chave = Console.ReadLine();...
asked by 19.02.2017 / 01:35
1
answer

Format Array display in C #?

I have a string Array. string[] nomes = { "Maria", "João", "Francisco", "José", "Antonio", "Osvaldo", "Francimar", "Cirineu" }; I would like to display them exactly like this in the Console Maria João...
asked by 19.11.2018 / 22:54
1
answer

Static Code Analysis - Identify possible division by Zero

Does anyone know / have built some static code analysis rule (for a FxCop or Gendarme ) that looks for possible loopholes in the code that incur a division by zero? / p> That is, a logic that analyzes the IL of the assembly and criticizes t...
asked by 03.04.2014 / 22:15
1
answer

Call a non-executable by Process in C #

Is there a way to call an executable other than by process? I need something that does not use the code below to call an executable because when I end a process from an application that is not native to Windows, I can not call it again with t...
asked by 08.04.2014 / 20:08
1
answer

How to create a Managed Thread in C ++ similar to the example in C #

In C # I use the following code to create the Managed Thread: Thread thread = new Thread(new ThreadStart(minhaFuncao)); In C ++ I did: using namespace System::Threading; . . Thread^ thread = gcnew Thread(gcnew ThreadStart(...
asked by 25.04.2014 / 14:17
2
answers

File supposedly being used can not be deleted

I have software that logs logs of errors from it even inside a "logs" folder. Each log file is created with the date of the current day, and is therefore unique to the current day. Example: 30-04-2014.log . I use StreamWriter to log t...
asked by 30.04.2014 / 11:43