Exemple #1
0
 /// <summary> Creates a TclObject with the given InternalRep. This method should be
 /// called only by an InternalRep implementation.
 ///
 /// </summary>
 /// <param name="rep">the initial InternalRep for this object.
 /// </param>
 public TclObject(InternalRep rep)
 {
     if (rep == null)
     {
         throw new TclRuntimeError("null InternalRep");
     }
     internalRep = rep;
     stringRep   = null;
     refCount    = 0;
     typePtr     = rep.GetType().Name.Replace("Tcl", "");
 }
Exemple #2
0
		/// <summary> Creates a TclObject with the given InternalRep. This method should be
		/// called only by an InternalRep implementation.
		/// 
		/// </summary>
		/// <param name="rep">the initial InternalRep for this object.
		/// </param>
		public TclObject(InternalRep rep)
		{
			if (rep == null)
			{
				throw new TclRuntimeError("null InternalRep");
			}
			internalRep = rep;
			stringRep = null;
			refCount = 0;
      typePtr = rep.GetType().Name.Replace("Tcl", "");
		}
        // Return true if the TclObject contains a TclList.

        public bool isListType()
        {
            return(internalRep.GetType().ToString().Contains("TclList"));
        }