Question by
mgsein · Dec 06, 2015 at 02:40 PM ·
c#monodevelopparsecs0118
Error CS0118: Armor.DisplayName is a property but a type was expected
Hello
I copied this code from www.parse.com/docs/unity/guide.html#objects-properties-and-methods and I have no idea what was that error.
Here is my code
using UnityEngine;
using System.Collections;
using Parse;
[ParseClassName("Armor")]
public class Armor : ParseObject {
[ParseFieldName("displayName")]
public string DisplayName
{
get { return GetProperty<string>("DisplayName"); }
set { SetProperty<string>(value, "DisplayName"); }
}
[ParseFieldName("attributes")]
public ParseRelation<DisplayName> Attributes
{
get { return GetRelationProperty<string>("Attributes"); }
}
}
Comment