C# answers

  • 2answers
    How should processing a large file not take up a lot of memory?
    I have a synchronous operation that iterates through the odds and processes 100 MB each. It looks like this: https://pastebin.com/v83kvDRB It seems that I took everything into account. But here's the trouble. with each pass through the handicap, the program is more and more loaded, just ...
    C# Anonymous, Oct 7, 2020

  • 1answers
    How to search for people using the Odnoklassniki API?
    I need to find several people and read information from their profiles. But I haven't found any methods to search. They exist? How to get information about a user, I seem to have found: users.getCurrentUser, but how can I find these users?
    C# Silas Moses, Jun 8, 2020

  • 2answers
    An installer for your application with an embedded .NET distribution?
    Please advise a good installer builder that allows you to patch the .NET distribution of the required version, and it starts automatically, and not just displays a window or offers to download (as Smart Install Maker does, for example).
    C# Sean Meyer, May 3, 2019

  • 1answers
    Connecting to sqlite db in c #?
    I created a database in sqlite studio, and a c # project in visual studio, there is a form and a menu in it, you press another form with a table, it turns out this form with a table must be connected to the database
    C# Anonymous, Jan 28, 2020

  • 1answers
    How to implement in C # a function handler on click with a pressed hotkey in UserControl?
    Please write examples of how to handle a click with a hotkey, for example Ctrl , in Visual Studio on C # , the UserControl project.
    C# Jaxon Yang, Mar 22, 2020

  • 2answers
    How do I create a common property for two classes?
    Essence: There is a room. The room has windows, doors, cutouts in the wall, etc. (let's call them elements). Two classes have been created, respectively: class Room{}class Element{} The room and the element have standard parameters: Length, Width, Height. Accordingly, the room object and ...
    C# Sadie Shannon, Jan 23, 2019

  • 3answers
    How do I write the following application?
    Hello everybody. I study programming on my own. At my main job (not related to IT) I conduct training and certification. I decided to write a program to keep track of the certified ones (I was tortured to write with my hands in a magazine, especially when there are lots of people). For now, the ...
    C# Anonymous, Mar 6, 2020

  • 2answers
    Doesn't see invoke (beginInvoke) in context, how to fix it?
    The library you need, it seems to be connected ... Neither Invoke nor beginInvoke sees
    C# Ryan Alvarez, Feb 16, 2019

  • 0answers
    WPF video is displayed on one monitor out of three, how to expand the image on all?
    There are three concatenated nvidia surround monitors, here is the code: <Window x:Class="Motion.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...
    C# Alexandra Blake, Oct 20, 2019

  • 3answers
    C # How to rewrite toString for a property?
    The property has get / set methods Can I also define the toString method ??
    C# Dominick Rojas, Aug 1, 2019

  • 1answers
    How to convert DbSet (T1) to DbSet (T2) where T1 is a copy of T2?
    There is a DbSet, you need to transfer all its fields to DbSet Help
    C# Cole Gardner, Apr 12, 2019

  • 4answers
    Is there a separate compiler for c #?
    Good day. Is there a simple compiler for c #? Visual Studio slows down too much on a netbook with 1GB of RAM and 1 core. I need something lightweight for java, I installed all the rules, but I did not find it for c # (And I want to study it with sharp. Do not tell me after learning the syntax of ...
    C# August Santana, Jul 18, 2019

  • 4answers
    How to switch between streams in c # .net to update the GUI?
    I have a thread (not the main thread) that is working with treeView, so this is how I call the main thread to update the treeView I read about delegates, invoke ... I can't figure it out without an example yet. Something like this: Working in a background thread .... We switched to the ...
    C# Anonymous, Nov 29, 2019

  • 3answers
    What do I need to install for C # development on Ubuntu 16.04?
    What do I need to install for C # development on Ubuntu 16.04?
    C# Ethan Burch, May 16, 2019

  • 2answers
    What does the symbol: X mean?
    byte operand = 0x81; Console.WriteLine ("Number before shift: {0: X}", operand); What does the X mean and why is it used? 0x81; - why is the number so set? it's not easier to write 81 right away. By code, 81 will be displayed, if you remove X, 129 will be displayed
    C# Anonymous, Nov 16, 2019

  • 3answers
    What should the function return in the catch block?
    Suppose there is a function `string foo () {}` that returns some data. but the function may drop. Therefore, there is a try-catch block inside it. Question. What is more correct to do in a catch block? After all, the compiler will not let you collect the function. the catch block must also have ...
    C# Rosalie Hendricks, Oct 24, 2019

  • 1answers
    How to bind textbox and datagridview in c # form?
    Hello. I dropped a datagridview on the form, which shows a table from the database. I want to throw several textboxes next to it, which will be tied to the current record, which is selected in the table, but for some reason the table cursor is not associated with the cursor in the textboxes. The ...
    C# Anonymous, Jan 17, 2019

  • 1answers
    How to cut a picture into sprites obtained via url (site \ folder) in unity?
    Let's say I have strict standards for a picture (a certain size of the canvas itself, sprites in it at a certain distance, etc.), for example: How can I specify the path to the picture from the code, cut it into sprites and drop links to them into the previously declared array?
    C# Xander Hogan, Mar 9, 2020

  • 2answers
    How to reset the Ballast generated by the Newtonsoft.Json c # library?
    Installed the Newtonsoft.Json library, but it creates a Newtonsoft.Json.dll file next to the application (without it, the application does not work accordingly). Is it possible to somehow "hide" it? not comme il faut to drag this .dll to the user.
    C# Hadley Rivera, Jul 14, 2019

  • 4answers
    What is better to use to determine the difference between images?
    What is the best tool to use to determine the difference between images? Applicable in C # / but can be C ++ or GO / Python, etc. Yes - images of various resolutions, 1440x900 500x900 etc. There are duplicate images, but I need to determine which ones are duplicate, which are original, and which ...
    C# Mason Page, Mar 10, 2020