Distinguish zero-initialized fields and globals from ordinary local scalars, managed values and raw allocated memory.
Read article
Distinguish zero-initialized fields and globals from ordinary local scalars, managed values and raw allocated memory.
Read articleConfigure per-monitor awareness, scale authored drawing metrics and test layout across monitor transitions.
Read article
Use TFileOpenDialog folder mode, preserve the previous selection on cancellation and keep filesystem validation at the point of use.
Read articleChoose simple separator splitting or quoted delimited fields without accidentally treating spaces as separators.
Read article
Serialize arbitrary object graphs to a stream in C# with BinarySerializer, which needs no attributes or registrations and preserves derived types, shared references and cycles. Covers how it assembles serializers per call, what it writes to the stream, and how it differs from the removed BinaryFormatter.
Read articlePersist typed preferences with SettingsObject, UserSettings and GlobalSettings: declare defaults, load and save through the cached directory provider, encrypt string members, validate and reset values, and choose the storage location.
Read article
Run SQL through one engine-neutral API: create an IDAC with DACFactory, share a connection and transaction with DACScope, use the CRUD helpers and dialect SQL builders, bind parameters and read the schema, shown against SQLite.
Read articleCompose a process with Sphere10FrameworkBuilder: modules that register services, synchronous and asynchronous initializers and finalizers, the order in which each step runs, and who owns the service provider.
Read article
What each ObjectSpaceBuilder layout setting controls (index B-tree type and order, cluster sizes, page size and cache), which settings become part of the stored file, and how to compare candidate configurations phase by phase.
Read articleUse ObjectStream<T> as a single-type record store over clustered streams: declare identifier, unique and nonunique indexes, save, update, reap and remove items by position, and reopen the file from its stored metadata.
Read article
Store a dictionary, a set and a slot-reusing list directly in a file with StreamMappedFactory, covering variable and constant-length keys, the key index, recycled slots and reopening.
Read articleEnable ObjectSpace autosave with AutoSave and WithChangeTrackingVia so that Flush and Commit save every tracked object whose dirty flag is set, and generate the flag handling with the AutoDirty source generator.
Read article
Add change events, thread-safe access and type projection to any list with the observable, synchronized and projected collection decorators, and stack them over one another.
Read articleBound the memory of a large list with MemoryPagedList, which swaps pages to temporary files, and persist constant-size items in a stream with StreamPagedList.
Read article
Derive keys from passwords with PBKDF2, choose between the SystemCRNG, HashRandom and Mersenne32 generators, store password hashes with PasswordHasher and protect one object with Encrypted<T>.
Read articleEncrypt to an elliptic-curve public key with ECIES through the IES property of ECDSA and Schnorr, understand the ciphertext layout and limits, and wrap it in a signed envelope.
Read article
Hash bytes, incremental input and serialized objects through Hashers and the CHF enumeration, and register further algorithms with the CryptoEx module.
Read articleSign and verify with ECDSA and BIP-340 Schnorr in Sphere10.Framework.CryptoEx, select a scheme by DSS value through Signers, and sign serialized objects with ItemSigner.
Read article
Serialize base-typed members and collections with SerializerFactory type codes, [KnownSubType] declarations and PolymorphicSerializer, and see what the reader must share with the writer.
Read articleControl a binary layout in C# with SerializerBuilder member bindings and a hand-written ConstantSizeItemSerializerBase serializer, then register it in a SerializerFactory so automatic assembly uses it.
Read article
Showing 141–160 of 205 articles