Skip to main content

Advanced Techniques

  • Chapter
  • First Online:
  • 2535 Accesses

Abstract

This chapter is somehow a continuation of the previous one, describing more advanced techniques that are available in .NET. Thus, please note that the knowledge from the previous chapter is really helpful to understand this one (especially regarding ref types, ref returns, and ref structs).

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    Originally, this type was even supposed to be called Slice, not Span.

  2. 2.

    Although specific Stream implementation may implement its buffering and flushing mechanisms, this is used for example purposes. In fact, such design is used in classes like FileStream where stream is replaced by native OS calls.

  3. 3.

    Unless we have passed an unmanaged address, see ReturnNativeAsSpan method in Listing 14-5.

  4. 4.

    But taking Domain Driven Design into consideration, it would be probably even more complex, with separate types to represent money or other data.

  5. 5.

    Avalon is a codename for WPF engine.

  6. 6.

    Please note that triviality of presented processing is for brevity, but it does not change the overall presented approach.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Konrad Kokosa

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Kokosa, K. (2018). Advanced Techniques. In: Pro .NET Memory Management. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4027-4_14

Download citation

Publish with us

Policies and ethics