Impact of Gen-AI on IT Jobs - Growth Mindset Show
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
2
Reply
What are delegates in C#?
Deepak Kamboj
12y
1.8k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
A delegate is a type that represents references to methods with a particular parameter list and return type
Bir Singh
10y
0
• Delegate in C# is similar to a function pointer in C or C++. • Delegate is type which holds the method(s) reference in an object. It is also referred as a type safe function pointers. • Delegate allows the programmer to encapsulate a reference to a method inside a delegate object. • The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked. • An interesting and useful property of a delegate is that it does not know or care about the class of the object that it references. for similar kind of questions in c# you can refer this link
c# interview questions
Krishna Mohan
11y
0
What is static class in C#?
What is difference between is and as operators in C#?
Message