Abstract
This chapter will discuss delegates. First, we will examine the C# delegate compared to the function pointer in C language, which will give you a basic idea of the similarity between the function pointer in C and delegate in .NET. This will also build a background knowledge about the function pointer, which will help you understand the internal working of delegates. Finally, you will explore generic delegates such as Func and Action in .NET by examining how the C# compiler takes care of the Func and Action delegates.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2013 Mohammad Rahman
About this chapter
Cite this chapter
Rahman, M. (2013). Delegate. In: Expert C# 5.0. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4861-3_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4861-3_7
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4860-6
Online ISBN: 978-1-4302-4861-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)