Log in or register to post comments

DefaultParameterValue

September 16, 2015 - 4:30pm #1

I keep getting errors like this with a few different codes and i can't seem to get it fixed. anyone else witht his error?

 

The type or namespace name `DefaultParameterValue' could not be found. Are you missing a using directive or an assembly reference?

The type or namespace name `DefaultParameterValueAttribute' could not be found. Are you missing a using directive or an assembly reference?
 
 
 
one example is:
 
 public void RegisterTrackerEventHandler(ITrackerEventHandler trackerEventHandler, [Optional, DefaultParameterValue(false)] bool hasPriority)
    {
        if (hasPriority)
        {
            this.mTrackerEventHandlers.Insert(0, trackerEventHandler);
        }
        else
        {
            this.mTrackerEventHandlers.Add(trackerEventHandler);
        }
        if (this.mIsInitialized)
        {
            trackerEventHandler.OnInitialized();
        }
    }

 

DefaultParameterValue

September 21, 2015 - 2:34pm #2

Do you have the following in your script:

using Vuforia;

 

Log in or register to post comments