Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
OriginalGriff23-Jun-14 1:04
mveOriginalGriff23-Jun-14 1:04 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten23-Jun-14 1:12
KaKoten23-Jun-14 1:12 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
OriginalGriff23-Jun-14 1:10
mveOriginalGriff23-Jun-14 1:10 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten23-Jun-14 1:20
KaKoten23-Jun-14 1:20 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
OriginalGriff23-Jun-14 2:31
mveOriginalGriff23-Jun-14 2:31 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten23-Jun-14 2:41
KaKoten23-Jun-14 2:41 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
OriginalGriff23-Jun-14 2:59
mveOriginalGriff23-Jun-14 2:59 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten23-Jun-14 13:01
KaKoten23-Jun-14 13:01 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
OriginalGriff23-Jun-14 23:39
mveOriginalGriff23-Jun-14 23:39 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten24-Jun-14 21:08
KaKoten24-Jun-14 21:08 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
OriginalGriff24-Jun-14 21:40
mveOriginalGriff24-Jun-14 21:40 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten25-Jun-14 16:40
KaKoten25-Jun-14 16:40 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
KaKoten23-Jun-14 12:40
KaKoten23-Jun-14 12:40 
GeneralRe: Cryptanalysis Algorithm RC5 Pin
Dave Kreskowiak23-Jun-14 2:47
mveDave Kreskowiak23-Jun-14 2:47 
QuestionPossible to get the SQL server that executed the SqlCommand? Pin
SledgeHammer0122-Jun-14 12:56
SledgeHammer0122-Jun-14 12:56 
AnswerRe: Possible to get the SQL server that executed the SqlCommand? Pin
Mycroft Holmes23-Jun-14 1:21
professionalMycroft Holmes23-Jun-14 1:21 
QuestionDynamic connector between two draw objects in canvas Pin
KRISHNARAYALU22-Jun-14 10:02
KRISHNARAYALU22-Jun-14 10:02 
AnswerRe: Dynamic connector between two draw objects in canvas Pin
BobJanova23-Jun-14 1:27
BobJanova23-Jun-14 1:27 
Questionunable to connect to any of the specified mysql Pin
Jassim Rahma21-Jun-14 22:15
Jassim Rahma21-Jun-14 22:15 
AnswerRe: unable to connect to any of the specified mysql Pin
Pete O'Hanlon21-Jun-14 23:19
mvePete O'Hanlon21-Jun-14 23:19 
GeneralRe: unable to connect to any of the specified mysql Pin
Jassim Rahma21-Jun-14 23:41
Jassim Rahma21-Jun-14 23:41 
AnswerRe: unable to connect to any of the specified mysql Pin
Bernhard Hiller22-Jun-14 21:55
Bernhard Hiller22-Jun-14 21:55 
GeneralRe: unable to connect to any of the specified mysql Pin
Jassim Rahma22-Jun-14 22:00
Jassim Rahma22-Jun-14 22:00 
AnswerRe: unable to connect to any of the specified mysql Pin
Eddy Vluggen23-Jun-14 0:25
professionalEddy Vluggen23-Jun-14 0:25 
QuestionC# creating my own class that acts like a string Pin
hpjchobbes21-Jun-14 5:23
hpjchobbes21-Jun-14 5:23 
I am trying to create some classes that act like a string, but allow me to test the type at a later date. Because string and String are sealed, I can't seem to inherit from them. I also found out you can't override the assignment operator. I found something close to what I want here on stackoverflow, but it uses structs which can't be inherited. Here's a example of what I want to do, but I can't figure out how:
C#
public class ORSerialLotNumber : string {}
public class SerialNumber : ORSerialLotNumber {}
public class LotNumber : ORSerialLotNumber {}

// ......

List<ORSerialLotNumber> mySLNList = new List<ORSerialLotNumber>();
SerialNumber sNum1 = "Sd-23s-3sf";
LotNumber nNum1 = "2342434";

mySLNList.Add(sNum1);
mySLNList.Add(nNum1);

// ......

foreach(var v in mySLNList)
    if(v.GetType() == typeof(SerialNumber))
        string serial = v;
    if(v.GetType() == typeof(LotNumber))
        string lot = v;

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.