Click here to Skip to main content
15,914,066 members
Home / Discussions / C#
   

C#

 
AnswerRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
Dave Kreskowiak1-Apr-11 15:21
mveDave Kreskowiak1-Apr-11 15:21 
GeneralRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
SledgeHammer011-Apr-11 15:47
SledgeHammer011-Apr-11 15:47 
GeneralRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
Dave Kreskowiak1-Apr-11 17:10
mveDave Kreskowiak1-Apr-11 17:10 
GeneralRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
SledgeHammer011-Apr-11 17:29
SledgeHammer011-Apr-11 17:29 
GeneralRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
Dave Kreskowiak2-Apr-11 2:16
mveDave Kreskowiak2-Apr-11 2:16 
Questiona little help on "most used" codes ! Pin
_Q12_1-Apr-11 11:44
_Q12_1-Apr-11 11:44 
AnswerRe: a little help on "most used" codes ! Pin
jschell1-Apr-11 12:03
jschell1-Apr-11 12:03 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_1-Apr-11 20:29
_Q12_1-Apr-11 20:29 
//"The vast amount of code is not generic. It has a specific purpose that has little if no meaning elsewhere."

Yes I know that, and I agree. In essence is as you say.

//"Code copying is done when code has a relationship to new functionality but requires modification. In those case I know where the original code is so I just go get it."

Well, suppose you make 5 year ago a very good code (for yourself) and now you remember that you have that code, you have a similar application to make (some modification is required but at the base that code from 5 years ago remain the same at the core). You have the project from 5 years ago, saved into a 30G Hdd somewhere in your house? You make, back then for yourself, a library (as you suggested in your response)?

1-the simplest form of what is to store is like this:
[this is a pure example -I don't want critics about this code here!]
//IndexOf usage with string; Benchmark result String version: 1154 ms
int i = s.IndexOf("a"); //Finds first "a" string in s.
//IndexOf usage with char; Benchmark result Char version: 172 ms
int i = s.IndexOf('a'); //Finds first 'a' char in s.
2-the complex form are entire programs, objects,methods, even controls.
(You made them for your simplification in coding for later uses, as reminders or as core codes.)

Thank you. Your response is the closest of what I intend to know.
I hope that with your help I can decipher this mystery I am in to.
GeneralRe: a little help on "most used" codes ! Pin
jschell4-Apr-11 8:11
jschell4-Apr-11 8:11 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_4-Apr-11 18:40
_Q12_4-Apr-11 18:40 
GeneralRe: a little help on "most used" codes ! Pin
Michael900017-Apr-11 21:02
Michael900017-Apr-11 21:02 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_18-Apr-11 0:06
_Q12_18-Apr-11 0:06 
GeneralRe: a little help on "most used" codes ! Pin
Michael900018-Apr-11 12:16
Michael900018-Apr-11 12:16 
AnswerRe: a little help on "most used" codes ! Pin
PIEBALDconsult1-Apr-11 14:39
mvePIEBALDconsult1-Apr-11 14:39 
JokeRe: a little help on "most used" codes ! Pin
loyal ginger1-Apr-11 17:51
loyal ginger1-Apr-11 17:51 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_1-Apr-11 20:52
_Q12_1-Apr-11 20:52 
AnswerRe: a little help on "most used" codes ! Pin
Luc Pattyn1-Apr-11 16:31
sitebuilderLuc Pattyn1-Apr-11 16:31 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_1-Apr-11 21:12
_Q12_1-Apr-11 21:12 
AnswerRe: a little help on "most used" codes ! Pin
dan!sh 1-Apr-11 21:19
professional dan!sh 1-Apr-11 21:19 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_1-Apr-11 21:36
_Q12_1-Apr-11 21:36 
GeneralRe: a little help on "most used" codes ! Pin
dan!sh 1-Apr-11 21:49
professional dan!sh 1-Apr-11 21:49 
AnswerRe: a little help on "most used" codes ! Pin
Eddy Vluggen2-Apr-11 0:16
professionalEddy Vluggen2-Apr-11 0:16 
AnswerRe: a little help on "most used" codes ! Pin
Abhinav S3-Apr-11 7:21
Abhinav S3-Apr-11 7:21 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_3-Apr-11 7:58
_Q12_3-Apr-11 7:58 
GeneralRe: a little help on "most used" codes ! Pin
RobScripta4-Apr-11 1:20
professionalRobScripta4-Apr-11 1:20 

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.