Questions tagged [C#] (7211)

2
answers

MS SQL Server. T-SQL. The organization "change history"

I wanted to make any changes to a particular record in a particular table were monitored and it was always possible to revert to an older version. On reflection I prikol that it would be good to implement this on the DB level to avoid any lining application. Create mytable_history, with a signature identical to mytable, ...
Vince_Donnelly asked October 10th 19 at 14:23
2
answers

How to update a video frame in MediaElement? C# WPF?

A solution is found. In XAML'e in the tag of the element you want to add a property ScrubbingEnabled="True". There are MediaElement, it video AVI. By clicking on a button executes a method mediaElement.Play();on the other mediaElement.Pause(); There is a slider whose value is used for setting the position of the video.publ...
Raoul_Ernser78 asked October 10th 19 at 13:00
4
answers

Sorting in LINQ to SQL

There is a task to display a... well, for example products in the Internet section of the store. Using LINQ to SQL. Write code similar to this: List lstGoods = DataContext.Sections.Where(x=>x.id = iMySectionId).First().Goods.Take(iPageSize).ToList(); The problem is that the goods should be ordered. Code is converted t...
Vince_Donnelly asked October 10th 19 at 09:39
2
answers

Task multi-threading (.NET)?

What the problem is in the code? How to modify your code to avoid it?using System; using System.Threading; namespace Mover { internal class Endpoint { public int Amount { get; set; } } internal class Program { private static void Main(string[] args) { var source = new Endpoint(); var target = new Endpoint(); var i...
will_Lang asked October 10th 19 at 09:16
0
answer

Whether in Mono Develop for Mac to write GUI applications for it in C#?

The version of mono 2.4.2 Create new solution -> C# project. I watched a documentation on OFE, there is probably under Linux as there are no designer no files at all...
felicita.Abernat asked October 10th 19 at 09:11
1
answer

Create DCOM object in C#?

You want to create a DCOM object. You can write it in C# and how to do it? For example, in embarcadero studio there is a special tool for creating COM objects.
amelie.Howell asked October 10th 19 at 05:23
4
answers

Multithreading in a console application in C#?

Need to do the following (gruberova): console application produces different actions in an infinite loop. It took a string input from the user. If you just put Console.ReadLine(), we get an interruption of the cycle and waiting for input. Had the idea to take user input in another thread. revered Doku made in another thread...
darron.Douglas asked October 10th 19 at 05:22
1
answer

Noise removal and volume normalization?

Hello! Write a small handler of sound, more specifically speech. Implemented in C# using NAudio, CUETools. There is a problem of removing noise during recording and further normalization of the received sound. Can't find ways to remove noise in Naudio. I tried to use the SoX utility, but it gives a strange error that is not...
deion_Schup asked October 10th 19 at 04:02
9
answers

Multiple inheritance in C# properties (or function parameters)

This situation: you have defined multiple interfaces (for example: IMyInterface1, IMyInterface2, ...). In the class MyClass has a property IMyInterface MyProperty { get; set; }. I would like, to property have implemented two-three interface (roughly as this may make the grade) without losing strong typing. As far as I kno...
Heath_Bogisich9 asked October 10th 19 at 03:53
2
answers

Etude in C#: Create a strongly typed delegate that returns an anonymous type

Hi, Habr. Want a simple etude in C#? Let's say we have an anonymous type new{ Name = "aaa", Number = 123 } How can we make the delegate getAnonimusInstancethat returns an object of an anonymous type? I.e. that compiled and worked <font color="black"><ol> <p><font color="#0000ff">var</font> ...
Gennaro.Altenwer asked October 10th 19 at 03:42