Questions tagged as 'c#'

1
answer

Difference between Absolute Expiration and Sliding Expiration

I am doing a POC with generic cache in C # and I followed a template that shows Absolute Expiration and Sliding Expiration . Could anyone explain these concepts better? //This is for Absolute Expiration string strCache =...
asked by 17.07.2017 / 19:48
1
answer

Filling aggregate class from dataTable using a Dataset with LINQ C #

I'm having trouble filling an aggregate class in C #. Is it possible using LINQ? Does anyone have any examples of how to work around this problem using the return of a DataTable or DataSet ? public class OrderDetails { . . ....
asked by 20.05.2015 / 05:43
1
answer

Dependency registration responsibility (IoC, DI, n-layer architecture)

I'm starting a project in WPF (.NET / C #) using an n-layer (Domain Driven Design) architecture, and to implement Dependency Injection Control and Injection (IoC / DI), I'm trying to use the Unity Framework of Microsoft. The question I have i...
asked by 12.01.2015 / 18:56
1
answer

Increasing the AssemblyVersion

I'm creating an update solution for an application that I have and I needed the Assembly version When putting a * in the assembly. [assembly: AssemblyVersion("1.0.0.*")] It started incrementing automatically, however the shape you are in...
asked by 02.04.2014 / 21:02
1
answer

C # .Net blocking or non-blocking?

Does the System.Net.Sockets library, using asynchronous operations such as BeginReceive (), BeginRead (), and BeginSend () work blocking or non-blocking? If I have 100 connections, there will be 100 threads, 1 thread to manage each send and rece...
asked by 09.06.2014 / 23:44
1
answer

Using features of the Timer class (System.Timers) is a Windows service?

I need to do a check in the database once a day . I'm thinking of using the class Timer (System.Timers) . Will the time contactor feature burden / slow down other system services? Is this solution advisable within a Windows servi...
asked by 27.08.2014 / 22:16
1
answer

How do I know if at least one element in a list is contained in another list?

I have two lists: var lista01 = new List<int> { 1, 2, 3, 4, 5 }; var lista02 = new List<int> { 7, 7, 7, 7, 7 }; I need to check if at least one element of list 1 exists in list 2, so the result for the above example should be fa...
asked by 24.12.2013 / 23:54
2
answers

Writing conventions for controls in ASP.NET

When you drag a control from the Toolbox to a Web Form, Visual Studio automatically adds an ID to this control that consists of its type with the first letter of capital and a number. This is the same pattern used in projects in VB.NET with W...
asked by 15.12.2013 / 02:20
3
answers

How to know the week of a given month?

I'm working on ASP.NET MVC 4, and I want to know what the week is for a given month. For example, the user wants to define a frequency of occurrences, and as such says: The occurrence will occur every%% weeks%; The occurrence will happe...
asked by 04.02.2014 / 16:35
3
answers

Convert World / Excel To PDF

Does anyone know of any open source api to convert world and excel documents to pdf? I am currently using windows interop however it only works if I install office on the server. I need to remove this installation. On my system I save the File E...
asked by 13.02.2016 / 21:44