Click here to Skip to main content
15,910,603 members
Home / Discussions / C#
   

C#

 
QuestionTLS 1.3 on Windows Vista Pin
moxol26-Apr-22 4:27
moxol26-Apr-22 4:27 
AnswerRe: TLS 1.3 on Windows Vista Pin
RedDk26-Apr-22 9:38
RedDk26-Apr-22 9:38 
AnswerRe: TLS 1.3 on Windows Vista Pin
Randor 26-Apr-22 17:22
professional Randor 26-Apr-22 17:22 
AnswerRe: TLS 1.3 on Windows Vista Pin
Richard Deeming26-Apr-22 21:22
mveRichard Deeming26-Apr-22 21:22 
PraiseRe: TLS 1.3 on Windows Vista Pin
Randor 26-Apr-22 21:54
professional Randor 26-Apr-22 21:54 
AnswerRe: TLS 1.3 on Windows Vista Pin
moxol27-Apr-22 1:01
moxol27-Apr-22 1:01 
GeneralRe: TLS 1.3 on Windows Vista Pin
dan!sh 2-May-22 21:17
professional dan!sh 2-May-22 21:17 
QuestionClickOne Installation folder in the user pc Pin
Luis M. Rojas20-Apr-22 6:26
Luis M. Rojas20-Apr-22 6:26 
AnswerRe: ClickOne Installation folder in the user pc Pin
Dave Kreskowiak20-Apr-22 6:33
mveDave Kreskowiak20-Apr-22 6:33 
GeneralRe: ClickOne Installation folder in the user pc Pin
Luis M. Rojas20-Apr-22 9:55
Luis M. Rojas20-Apr-22 9:55 
GeneralRe: ClickOne Installation folder in the user pc Pin
Dave Kreskowiak20-Apr-22 9:56
mveDave Kreskowiak20-Apr-22 9:56 
QuestionNEED HELP- ERROR (71,10): error CS1513: } expected) Pin
Joana Gonçalves 202220-Apr-22 3:22
Joana Gonçalves 202220-Apr-22 3:22 
AnswerRe: NEED HELP- ERROR (71,10): error CS1513: } expected) Pin
Dave Kreskowiak20-Apr-22 3:51
mveDave Kreskowiak20-Apr-22 3:51 
AnswerRe: NEED HELP- ERROR (71,10): error CS1513: } expected) Pin
Raphael Adeniji26-Apr-22 8:18
Raphael Adeniji26-Apr-22 8:18 
QuestionWindows.Devices.HumanInterfaceDevice Pin
Member 1556267619-Apr-22 4:29
Member 1556267619-Apr-22 4:29 
AnswerRe: Windows.Devices.HumanInterfaceDevice Pin
OriginalGriff19-Apr-22 6:52
mveOriginalGriff19-Apr-22 6:52 
Rant[REPOST] Windows.Devices.HumanInterfaceDevice Pin
Richard Deeming19-Apr-22 21:24
mveRichard Deeming19-Apr-22 21:24 
QuestionC# - How to capture when a user presses the "X" in the upper right corner Pin
Richard A Knox18-Apr-22 7:19
Richard A Knox18-Apr-22 7:19 
AnswerRe: C# - How to capture when a user presses the "X" in the upper right corner Pin
Victor Nijegorodov18-Apr-22 7:30
Victor Nijegorodov18-Apr-22 7:30 
AnswerRe: C# - How to capture when a user presses the "X" in the upper right corner Pin
Richard MacCutchan18-Apr-22 8:16
mveRichard MacCutchan18-Apr-22 8:16 
QuestionStart the Windows form app from Window service Pin
Member 1481278615-Apr-22 21:29
Member 1481278615-Apr-22 21:29 
AnswerRe: Start the Windows form app from Window service Pin
OriginalGriff15-Apr-22 21:43
mveOriginalGriff15-Apr-22 21:43 
AnswerRe: Start the Windows form app from Window service Pin
Gerry Schmitz16-Apr-22 6:03
mveGerry Schmitz16-Apr-22 6:03 
QuestionAccessing one of many possible objects passed to a function Pin
TNCaver15-Apr-22 11:24
TNCaver15-Apr-22 11:24 
My question is in the code comment below:
C#
public class MyBase
{
   public string CommonProperty { get; set; }
}

public class ClassOne : MyBase
{
   public string  ClassOneProperty { get; set; }
}

public class ClassTwo : MyBase
{
   public string ClassTwoProperty { get; set; }
}

public class program()
{
   var classTwo = new ClassTwo();
   classTwo.CommonProperty = "Some string";
   classTwo.ClassTwoProperty = "Some other string";
   TestFunction(classTwo);

   private void TestFunction(object unknownClass)
   {
       // how do I convert unknownClass to its actual class and access its properties
       // regardless of which type was passed to the function?
   }
}
If you think 'goto' is evil, try writing an Assembly program without JMP.

AnswerRe: Accessing one of many possible objects passed to a function Pin
Tony Hill15-Apr-22 21:02
professionalTony Hill15-Apr-22 21:02 

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.