Hi Guest
MobileUser
HomePage
Jobs
WalkIn
Articles
Agile
DotNet
WebServices
Mathematics
OOPS
WEB
SharePoint
Java
DataBase
Artificial Intelligence
BigData
Android
XML
Agile
Software
SEO
Science Techonlogy
Repository Questions
PHP
Frameworks
Server
Testing
HR
Java
TPF
Tutorial
Tools
Test and Papers
Silverlight
Science Techonlogy
----- Select Country -----
----- Select Location -----
----- Select Category -----
:) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
ASP.NET
:) Hot Jobs
:) Latest Articles
Follow
Mention some of ref struct restrictions in c#?
Question Posted on 22 Feb 2022
Home
>>
DotNet
>>
C#
>>
Mention some of ref struct restrictions in c#?
Mention some of ref struct restrictions in csharp? Below are some restrictions which prevent a ref struct value ends up on heap at runtime:- (1)We can not use ref struct as a type argument. (2)We can not use ref struct to implement interfaces. (3)A ref struct variable can not be used in iterators. (4)We can not boxed ref struct to System.ValueType or System.Object. (5)We can not captured ref struct variable by a lambda expression or local function. (6)We can not used ref struct variable in an async methods. But we can use ref struct variables in synchronous methods. (7)We can not use ref struct as element type of an array. (8)We can not use ref struct to declare type of field of a class or a struct. But a ref struct can type a field of ref struct.
0
0
Input Your Comments Or suggestions(If Any)
Name
Email
(optional)
Comments
Other Important Questions
Simplest definition of partial classes and its rules?
Definition of Tuple class with some examples?
Define Race Condition in cSharp?
C#.Net Reserve Words
can we inherit private class level variables in c#
Top Searches:
asp net questions
vb net questions
sql query
uddl questions
class
javascript Questions
sharepoint interview questions and concept
silverlight questions and concept
wcf questions
beans
general knowledge
ajax questions
PHP
|
Biztalk
|
Testing
|
SAP
|
HR
|
Privacy policy |
Terms and Conditions
| Blog
If the copyright of any questions or content or syntax belong to you email us we will remove that(info@crackyourinterview.com or crackyourinterview2018@gmail.com)
Home
About Us
GroupChat
Sitemap
Feedback
Contact us