Example #1
0
 protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields)
 {
     if (IsAssociated)
     {
         return(new DOMEntityReference(XmlEntityReference));
     }
     else
     {
         DOMEntityReference copy = new DOMEntityReference();
         copy.__construct(this._name);
         return(copy);
     }
 }
Example #2
0
		protected override PHP.Core.Reflection.DObject CloneObjectInternal(PHP.Core.Reflection.DTypeDesc caller, ScriptContext context, bool deepCopyFields)
		{
			if (IsAssociated) return new DOMEntityReference(XmlEntityReference);
			else
			{
				DOMEntityReference copy = new DOMEntityReference();
				copy.__construct(this._name);
				return copy;
			}
		}