protected internal override void Resolve(IResolver resolver, bool canEnterContext)
        {
            base.Resolve(resolver, false);

            DefaultNamespace.Parent = this;
            DefaultNamespace.Resolve(resolver);

            foreach (NamespaceNode namespaceNode in Namespaces)
            {
                namespaceNode.Parent = this;
                namespaceNode.Resolve(resolver);
            }
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Kind;
         hashCode = (hashCode * 397) ^ (TargetFrameworkMoniker != null ? TargetFrameworkMoniker.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OutputAssemblyPath != null ? OutputAssemblyPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DefaultNamespace != null ? DefaultNamespace.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SpecFlowPackage != null ? SpecFlowPackage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SpecFlowConfigFilePath != null ? SpecFlowConfigFilePath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)SpecFlowProjectTraits;
         return(hashCode);
     }
 }
예제 #3
0
        private void Start()
        {
            myGameObject = GameObject.Find("MyGameObject");
            DefaultNamespace script1 = myGameObject.GetComponent <DefaultNamespace>();

            if (script1 != null)
            {
                string script1Msg = script1.publicMsg;
                if (script1Msg != null)
                {
                    Debug.Log(script1Msg);
                }
                else
                {
                    Debug.Log("DefaultNamespace is not null, but the message is.");
                }
            }
            else
            {
                Debug.Log("DefaultNamespace is null indicating that a MonoBehaviourClass inside a namespace cannot see a UnityScript outside of it.");
            }
        }