C# Class TESVSnip.Domain.Model.BaseRecord

Inheritance: TESVSnip.Framework.Persistence.PersistObject, ICloneable, ISerializable, IRecord
显示文件 Open project: figment/tesvsnip Class Usage Examples

Private Properties

Property Type Description
GetIDs List
ICloneable object
SaveData void

Public Methods

Method Description
AddRecord ( BaseRecord br ) : void
AddRecords ( IEnumerable br ) : void
Clone ( ) : BaseRecord
Clone ( bool recursive ) : BaseRecord
DeleteRecord ( BaseRecord br ) : bool
DeleteRecords ( IEnumerable br ) : bool
Enumerate ( ) : IEnumerable
Enumerate ( Predicate match ) : IEnumerable
ForEach ( Action action ) : void
IndexOf ( BaseRecord br ) : int
InsertRecord ( int index, BaseRecord br ) : void
InsertRecords ( int index, IEnumerable br ) : void
SetDescription ( string value ) : void
ToString ( ) : string
UpdateShortDescription ( ) : void
While ( Predicate action ) : bool

Protected Methods

Method Description
BaseRecord ( ) : System
BaseRecord ( SerializationInfo info, StreamingContext context ) : System
FireRecordChangeUpdate ( object sender, BaseRecord rec ) : void
FireRecordDeleted ( object sender, BaseRecord rec ) : void
FireRecordListUpdate ( object sender, BaseRecord rec ) : void
ReadRecName ( BinaryReader br ) : string
ReadRecName ( byte rec ) : string
WriteString ( BinaryWriter bw, string s ) : void

Private Methods

Method Description
GetIDs ( bool lower ) : List
ICloneable ( ) : object
SaveData ( BinaryWriter writer ) : void

Method Details

AddRecord() public abstract method

public abstract AddRecord ( BaseRecord br ) : void
br BaseRecord
return void

AddRecords() public method

public AddRecords ( IEnumerable br ) : void
br IEnumerable
return void

BaseRecord() protected method

protected BaseRecord ( ) : System
return System

BaseRecord() protected method

protected BaseRecord ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return System

Clone() public abstract method

public abstract Clone ( ) : BaseRecord
return BaseRecord

Clone() public method

public Clone ( bool recursive ) : BaseRecord
recursive bool
return BaseRecord

DeleteRecord() public abstract method

public abstract DeleteRecord ( BaseRecord br ) : bool
br BaseRecord
return bool

DeleteRecords() public method

public DeleteRecords ( IEnumerable br ) : bool
br IEnumerable
return bool

Enumerate() public method

public Enumerate ( ) : IEnumerable
return IEnumerable

Enumerate() public method

public Enumerate ( Predicate match ) : IEnumerable
match Predicate
return IEnumerable

FireRecordChangeUpdate() protected static method

protected static FireRecordChangeUpdate ( object sender, BaseRecord rec ) : void
sender object
rec BaseRecord
return void

FireRecordDeleted() protected static method

protected static FireRecordDeleted ( object sender, BaseRecord rec ) : void
sender object
rec BaseRecord
return void

FireRecordListUpdate() protected static method

protected static FireRecordListUpdate ( object sender, BaseRecord rec ) : void
sender object
rec BaseRecord
return void

ForEach() public method

public ForEach ( Action action ) : void
action Action
return void

IndexOf() public method

public IndexOf ( BaseRecord br ) : int
br BaseRecord
return int

InsertRecord() public method

public InsertRecord ( int index, BaseRecord br ) : void
index int
br BaseRecord
return void

InsertRecords() public method

public InsertRecords ( int index, IEnumerable br ) : void
index int
br IEnumerable
return void

ReadRecName() protected static method

protected static ReadRecName ( BinaryReader br ) : string
br System.IO.BinaryReader
return string

ReadRecName() protected static method

protected static ReadRecName ( byte rec ) : string
rec byte
return string

SetDescription() public method

public SetDescription ( string value ) : void
value string
return void

ToString() public method

public ToString ( ) : string
return string

UpdateShortDescription() public method

public UpdateShortDescription ( ) : void
return void

While() public method

public While ( Predicate action ) : bool
action Predicate
return bool

WriteString() protected static method

protected static WriteString ( BinaryWriter bw, string s ) : void
bw System.IO.BinaryWriter
s string
return void