Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
AnswerRe: HikVision Biometrics Pin
Dave Kreskowiak20-Aug-23 17:16
mveDave Kreskowiak20-Aug-23 17:16 
GeneralRe: HikVision Biometrics Pin
Icanus Tuiloma20-Aug-23 18:11
Icanus Tuiloma20-Aug-23 18:11 
QuestionFormat integer with ToString("D2") in SqLite Pin
Edilson Lemos 202118-Aug-23 16:21
Edilson Lemos 202118-Aug-23 16:21 
AnswerRe: Format integer with ToString("D2") in SqLite Pin
Dave Kreskowiak18-Aug-23 16:52
mveDave Kreskowiak18-Aug-23 16:52 
GeneralRe: Format integer with ToString("D2") in SqLite Pin
Edilson Lemos 202118-Aug-23 17:36
Edilson Lemos 202118-Aug-23 17:36 
AnswerRe: Format integer with ToString("D2") in SqLite Pin
OriginalGriff18-Aug-23 18:31
mveOriginalGriff18-Aug-23 18:31 
QuestionFile csproj : how to create a nuget package with msbuild and with package dependencies ? Pin
chris_brabant16-Aug-23 1:42
chris_brabant16-Aug-23 1:42 
AnswerRe: File csproj : how to create a nuget package with msbuild and with package dependencies ? Pin
Richard Deeming16-Aug-23 3:11
mveRichard Deeming16-Aug-23 3:11 
GeneralRe: File csproj : how to create a nuget package with msbuild and with package dependencies ? Pin
chris_brabant16-Aug-23 4:00
chris_brabant16-Aug-23 4:00 
GeneralRe: File csproj : how to create a nuget package with msbuild and with package dependencies ? Pin
Richard Deeming16-Aug-23 4:14
mveRichard Deeming16-Aug-23 4:14 
GeneralRe: File csproj : how to create a nuget package with msbuild and with package dependencies ? Pin
chris_brabant16-Aug-23 4:48
chris_brabant16-Aug-23 4:48 
GeneralRe: File csproj : how to create a nuget package with msbuild and with package dependencies ? Pin
Richard Deeming16-Aug-23 21:14
mveRichard Deeming16-Aug-23 21:14 
GeneralRe: File csproj : how to create a nuget package with msbuild and with package dependencies ? Pin
chris_brabant16-Aug-23 21:33
chris_brabant16-Aug-23 21:33 
GeneralRe: File csproj : how to create a nuget package with msbuild and with package dependencies ? Pin
Richard Deeming16-Aug-23 21:52
mveRichard Deeming16-Aug-23 21:52 
Questionhow to edit and delete lines from a text file Pin
Edilson Lemos 202112-Aug-23 12:36
Edilson Lemos 202112-Aug-23 12:36 
AnswerRe: how to edit and delete lines from a text file PinPopular
OriginalGriff12-Aug-23 19:01
mveOriginalGriff12-Aug-23 19:01 
GeneralRe: how to edit and delete lines from a text file Pin
Edilson Lemos 202113-Aug-23 11:15
Edilson Lemos 202113-Aug-23 11:15 
GeneralRe: how to edit and delete lines from a text file Pin
OriginalGriff13-Aug-23 19:08
mveOriginalGriff13-Aug-23 19:08 
AnswerRe: how to edit and delete lines from a text file Pin
Gerry Schmitz13-Aug-23 5:53
mveGerry Schmitz13-Aug-23 5:53 
AnswerRe: how to edit and delete lines from a text file Pin
jschell14-Aug-23 6:07
jschell14-Aug-23 6:07 
Questionthen the new student submits their answer to ... Pin
BillWoodruff8-Aug-23 4:23
professionalBillWoodruff8-Aug-23 4:23 
write a c# 8 Core 7 example of InterFace and Abstract class:
namespace _07_08_2023_test
{
    public interface IFace1
    {
        DateTime DTimeUTC { get; }
    }

    public interface IFace2
    {
        string FirstName { get; }
        string LastName { get; }
    }

    public abstract class Abs1 : IFace1, IFace2
    {
        public DateTime DTimeUTC {get; } = DateTime.Now.ToUniversalTime();
        public string FirstName { get; protected set; }
        public string LastName { get; protected set; }

        public string FullName
        {
            get => $"{FirstName} ... {LastName}";
        }
    }

    public class StudentMess : Abs1
    {
        public StudentMess(string fname, string lname)
        {
            FirstName = fname;
            LastName = lname;
        }
    }
}
And, said new student says: "it compiles, and I can do this:"
private void Form1_Load(object sender, EventArgs e)
{
    StudentMess smess = new StudentMess("new", "confused");
}
And, you shake your head.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch

AnswerRe: then the new student submits their answer to ... Pin
Pete O'Hanlon8-Aug-23 19:33
mvePete O'Hanlon8-Aug-23 19:33 
GeneralRe: then the new student submits their answer to ... Pin
BillWoodruff10-Aug-23 0:36
professionalBillWoodruff10-Aug-23 0:36 
GeneralRe: then the new student submits their answer to ... Pin
Pete O'Hanlon10-Aug-23 3:29
mvePete O'Hanlon10-Aug-23 3:29 
GeneralRe: then the new student submits their answer to ... Pin
BillWoodruff10-Aug-23 2:09
professionalBillWoodruff10-Aug-23 2:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.