question

  1. R

    Resolved Help with a logical programming task

    Hi. I need your help with a small logic problem. The essence of the task: There are numbers from 1 to N, N = 50, you need to divide the numbers into several groups so if one number is divided by another, then these numbers fall into different groups. The result of this partition is M groups...
  2. M

    Resolved Value types and reference types

    Hi everyone, First question here... If I'm correct, String is a reference datatype, right? See my code below: String nameOne = "Matthew"; String nameTwo = nameOne; nameOne = "Andrew"; In the end, I should expect both nameOne and nameTwo to be Andrew...
  3. M

    Resolved How to Implement DbSet and DbContext in Service-Repository Architecture?

    I am updating my .NET Core web app from just MVC to a Service-Repository pattern. My question is, how do you implement DbSet<> when you add the Service and Repository layers? I originally added these to my ApplicationDbContext file under the Data folder. Is this still correct? Then would I just...
  4. T

    Debug-Only Code Without Duplication

    I'm trying to write something similar to the existing Debug class that allows clients to explicitly verify pre- and post-conditions of their methods. For example, to check a precondition that the input variable to a method is not equal to 0, one would use Expects.IsGreaterThan(input, 0), and...
  5. K

    Question Small windows form/ colsole app application

    I doing a project that uses C# to create an application that will save student records and allow students to sign into the system and add classes to a timetable.
Top Bottom