Questions tagged [.net]

.NET is a software framework supporting a multi-language paradigm and supporting language interoperability. .NET applications are executed in a virtual machine (CLR) which provides a few important services: security, memory management and exception handling.

Filter by
Sorted by
Tagged with
-1
votes
2answers
79 views

Improving predominance for updating 40000 records using entity framework [closed]

I have Two tables Circuit and Tag, Circuit ------------------ Id Name Path Tag ----------- Id Name Circuit_Id Now I have to loop through all the tags and ...
-1
votes
2answers
3k views

Set Label content and make it disappear after 5 seconds

Let's say I have a label and a button. If I click the button, the label is set to some text, say "hello, world!", and after 5 seconds, it should disappear. Easy enough, right? I have the following ...
-2
votes
2answers
243 views

Euclidean distance between documents

For each function, I am manually adding another case. Can this be somehow shortened? Case and function names are the same. For example, the Euclidean_Distance case ...
-2
votes
3answers
162 views

Find target sum of 3 from and array

Input is a sorted array and a target sum. Find all sets of 3 unique elements that sum to a target. Looking for lowest order (big O). A, B, C are the indexes on the sorted array. A < B < C ...
-2
votes
1answer
161 views

Document Management Properties and Searching

This is the 'middle-ware' for a document management application. A document has properties which describe it, and allow users to search for it. The server will interact with the database, and the User-...
-2
votes
1answer
277 views

Improvements for this Rounding Method [closed]

This is used to round to any desired quarter, half etc. Is there any improvements that can be made for performance, unforeseen roundoff issues etc...? ...
-2
votes
0answers
19 views

Split a list collection into n length [closed]

I have a list List which contains 100 records . I would like to split the above list into 3 lists. I tried the below condition ...
-2
votes
1answer
35 views

Add new TabItem to a TabControl using Click Event [closed]

I'm trying to add a new TabItem to a TabControl. The TabItem's content will be set to a new Frame, and the frame holds the actual Page. A new Tabitem is added each time the button is clicked, this is ...
-3
votes
1answer
64 views

Generating property for a class instance [closed]

Hope, it's my last question about current project. Yeah, it's still about respecting SOLID-principles. And it's still about calculator, so i've got realization of ITerm interface: ...
-3
votes
1answer
107 views

Best Practice .Contains C# [closed]

I don't quite know where to post this but C# is not my first language and I am hoping to get someone to nod their head or correct me :) This works but seems counter intuitive - mostly because I ...
-4
votes
1answer
1k views

DLL for basic math operations

I've written a simple C# class to use as a dll for simple math calculations: addition, subtraction, division, and multiplication. How can I improve this code, specifically for addition and ...
-4
votes
1answer
56 views

Generic Custom STACK Class for Hanoi Problem in C# [closed]

I have created a custom class (Generic) in C# for the Hanoi problem. and I am not sure I did the correct thing. ...
-4
votes
0answers
37 views

Memory Leak fetching data from SQL DB [closed]

I have created a simple Data Fetch method which fetches data from SQL DB. Each time I fetch data by calling this method the memory grows (application pool memory). When I explicitly call ...
-5
votes
3answers
413 views

Application search form

I have a search form in my application. When I search, it takes too much time to retrieve and display data, so I need to optimize this code. ...
-5
votes
1answer
348 views

Would you consider this little project to be worth showing to potential employers? [closed]

I am self thought c# kiddy and wonder if little projects like one here, are worth showing to potential employers when looking for junior developer position. This code has some issues that i do not ...