mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 23:34:10 +02:00
Fixed attribs for properties, renamed SkipAccessCheckAttribute
This commit is contained in:
parent
9c44273737
commit
04a46850d6
19 changed files with 162 additions and 58 deletions
|
@ -132,12 +132,6 @@ namespace System
|
|||
|
||||
}
|
||||
|
||||
[AttributeUsage(.MemberAccess)]
|
||||
public struct SkipAccessCheckAttribute : Attribute
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[AttributeUsage(.Method | .Class | .Struct | .Enum)]
|
||||
public struct OptimizeAttribute : Attribute
|
||||
{
|
||||
|
@ -337,7 +331,7 @@ namespace System
|
|||
{
|
||||
}
|
||||
|
||||
[AttributeUsage(.Method/*, AlwaysIncludeTarget=true*/)]
|
||||
[AttributeUsage(.Method | .MemberAccess)]
|
||||
public struct DisableObjectAccessChecksAttribute : Attribute
|
||||
{
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ namespace System
|
|||
static void Object_GCMarkMembers(Object obj)
|
||||
{
|
||||
#if BF_ENABLE_REALTIME_LEAK_CHECK
|
||||
obj.[Friend, SkipAccessCheck]GCMarkMembers();
|
||||
obj.[Friend, DisableObjectAccessChecks]GCMarkMembers();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -241,6 +241,14 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
private int PrivateLength
|
||||
{
|
||||
get
|
||||
{
|
||||
return mLength;
|
||||
}
|
||||
}
|
||||
|
||||
int32 AllocSize
|
||||
{
|
||||
[Inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue