-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
When trying to compile with IL2CPP enabled in Unity, the compiler throws the following error:
"Assets\SQLiteForUnity\Runtime\SQLite-net\src\SQLite.cs(2615,26): error CS0103: The name 'prop' does not exist in the current context"
After investigating the referenced line it became obvious, that the "prop" variable in line 2615 in the preprocessor statement does not get declared anywhere. Maybe due to some prior refactoring.
Lines 2608 to 2621 in 758ad7a
| public Column (MemberInfo member, CreateFlags createFlags = CreateFlags.None) | |
| { | |
| _member = member; | |
| var memberType = GetMemberType(member); | |
| var colAttr = member.CustomAttributes.FirstOrDefault (x => x.AttributeType == typeof (ColumnAttribute)); | |
| #if ENABLE_IL2CPP | |
| var ca = prop.GetCustomAttribute(typeof(ColumnAttribute)) as ColumnAttribute; | |
| Name = ca == null ? prop.Name : ca.Name; | |
| #else | |
| Name = (colAttr != null && colAttr.ConstructorArguments.Count > 0) ? | |
| colAttr.ConstructorArguments[0].Value?.ToString () : | |
| member.Name; | |
| #endif |
Metadata
Metadata
Assignees
Labels
No labels