Click here to Skip to main content
15,909,645 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Seeking a binary read/write file stream class Pin
Luc Pattyn28-Oct-10 15:57
sitebuilderLuc Pattyn28-Oct-10 15:57 
GeneralRe: Seeking a binary read/write file stream class Pin
PIEBALDconsult28-Oct-10 16:57
mvePIEBALDconsult28-Oct-10 16:57 
GeneralRe: Seeking a binary read/write file stream class Pin
Luc Pattyn28-Oct-10 17:14
sitebuilderLuc Pattyn28-Oct-10 17:14 
GeneralRe: Seeking a binary read/write file stream class [modified] Pin
PIEBALDconsult28-Oct-10 17:21
mvePIEBALDconsult28-Oct-10 17:21 
AnswerRe: Seeking a binary read/write file stream class Pin
_Erik_29-Oct-10 3:10
_Erik_29-Oct-10 3:10 
GeneralRe: Seeking a binary read/write file stream class Pin
PIEBALDconsult29-Oct-10 3:27
mvePIEBALDconsult29-Oct-10 3:27 
AnswerRe: Seeking a binary read/write file stream class Pin
Andy Brummer3-Nov-10 18:19
sitebuilderAndy Brummer3-Nov-10 18:19 
GeneralRe: Seeking a binary read/write file stream class [modified] Pin
PIEBALDconsult7-Nov-10 4:44
mvePIEBALDconsult7-Nov-10 4:44 
Andy Brummer wrote:
binary reader and writer


That's not read and write.



What I have now supports random access, plus:

[PIEBALD.Attributes.EnumDefaultValue((byte)SupportedType.Unknown)]
public enum SupportedType : byte
{
    Unknown
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Byte))]
    Byte
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.SByte))]
    SByte
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Int16))]
    Int16
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.UInt16))]
    UInt16
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Int32))]
    Int32
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.UInt32))]
    UInt32
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Int64))]
    Int64
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.UInt64))]
    UInt64
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Single))]
    Single
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Double))]
    Double
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Decimal))]
    Decimal
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Guid))]
    Guid
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Boolean))]
    Boolean
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.DateTime))]
    DateTime
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Char))]
    Char
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.String))]
    String
,
    [PIEBALD.Attributes.TypeTransmogrifierAttribute(typeof(System.Enum))]
    Enum
}


Oh, and if the type is unknown, it tries the GCHandle technique anyway -- which works for some other types.

modified on Sunday, November 7, 2010 10:54 AM

Questionhelp needed Pin
rksreadero28-Oct-10 8:52
rksreadero28-Oct-10 8:52 
AnswerRe: help needed PinPopular
Luc Pattyn28-Oct-10 9:07
sitebuilderLuc Pattyn28-Oct-10 9:07 
AnswerRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:19
kadaoui el mehdi28-Oct-10 11:19 
GeneralRe: help needed Pin
Pete O'Hanlon28-Oct-10 11:34
mvePete O'Hanlon28-Oct-10 11:34 
GeneralRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:39
kadaoui el mehdi28-Oct-10 11:39 
GeneralRe: help needed Pin
Pete O'Hanlon28-Oct-10 11:47
mvePete O'Hanlon28-Oct-10 11:47 
GeneralRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:49
kadaoui el mehdi28-Oct-10 11:49 
AnswerRe: help needed Pin
TweakBird28-Oct-10 23:38
TweakBird28-Oct-10 23:38 
AnswerRe: help needed Pin
Pete O'Hanlon29-Oct-10 0:40
mvePete O'Hanlon29-Oct-10 0:40 
AnswerRe: help needed Pin
thatraja28-Jan-12 5:03
professionalthatraja28-Jan-12 5:03 
QuestionTag-object, use of memory, dispose Pin
Load_error28-Oct-10 6:49
Load_error28-Oct-10 6:49 
AnswerRe: Tag-object, use of memory, dispose Pin
Luc Pattyn28-Oct-10 9:10
sitebuilderLuc Pattyn28-Oct-10 9:10 
GeneralRe: Tag-object, use of memory, dispose Pin
Load_error28-Oct-10 11:47
Load_error28-Oct-10 11:47 
AnswerRe: Tag-object, use of memory, dispose Pin
Luc Pattyn28-Oct-10 12:09
sitebuilderLuc Pattyn28-Oct-10 12:09 
GeneralSave Email To Sqlserver2005 Database using C# Pin
Rachit Barjatya28-Oct-10 4:37
Rachit Barjatya28-Oct-10 4:37 
GeneralRe: Save Email To Sqlserver2005 Database using C# Pin
_Erik_28-Oct-10 5:38
_Erik_28-Oct-10 5:38 
GeneralRe: Save Email To Sqlserver2005 Database using C# Pin
Rachit Barjatya29-Oct-10 2:48
Rachit Barjatya29-Oct-10 2:48 

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.