Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
e5330179
Commit
e5330179
authored
Oct 07, 2014
by
Mervill
Browse files
Disable CLS Compliance in Unity3D.
parent
a31a3d5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Core/NLua/Platform/CLSCompliantAttribute.cs
0 → 100644
View file @
e5330179
using
System
;
using
System.Runtime.InteropServices
;
#if UNITY_3D
namespace
NLua
{
/// <summary>
/// Disables CLS Compliance in Unity3D.
/// </summary>
[
Serializable
]
[
AttributeUsage
(
AttributeTargets
.
All
)]
[
ComVisible
(
true
)]
public
class
CLSCompliantAttribute
:
Attribute
{
private
bool
_compliant
;
public
CLSCompliantAttribute
(
bool
isCompliant
)
{
_compliant
=
isCompliant
;
}
public
bool
IsCompliant
{
get
{
return
_compliant
;
}
}
}
}
#
endif
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment