Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Long Templates Do not work
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

btakita
New Member

2 Posts

Posted - Feb 11 2004 :  4:24:21 PM  Show Profile
I have a long template that returns nothing. However, when I shorten the Template, it works.

Sincerely,\rBrian Takita\rwww.briantakita.com

btakita
New Member

2 Posts

Posted - Feb 11 2004 :  4:28:30 PM  Show Profile
Here is my template

Custom Collection:
-?public class %1Collection: System.Collections.CollectionBase, ICollection
{
public %1Collection()
{
// empty
}

public %1Collection(%1[] items)
{
this.AddRange(items);
}

public %1Collection(%1Collection items)
{
this.AddRange(items);
}

public void AddRange(%1[] items)
{
foreach (%1 item in items)
{
this.List.Add(item);
}
}

public void AddRange(%1Collection items)
{
foreach (%1 item in items)
{
this.List.Add(item);
}
}

public void Add(%1 value)
{
this.List.Add(value);
}

public virtual bool Contains(%1 value)
{
return this.List.Contains(value);
}

public virtual void CopyTo (%1[] array, int index)
{
this.List.CopyTo(array, index);
}

public virtual int IndexOf(%1 value)
{
return this.List.IndexOf(value);
}

public virtual void Insert(int index, %1 value)
{
this.List.Insert(index, value);
}

public virtual %1 this[int index]
{
get
{
return (%1) this.List[index];
}
set
{
this.List[index] = value;
}
}

public virtual void Remove(%1 value)
{
this.List.Remove(value);
}

public class Enumerator: System.Collections.IEnumerator
{
private System.Collections.IEnumerator wrapped;

public Enumerator(%1Collection collection)
{
this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
}

public %1 Current
{
get
{
return (%1) (this.wrapped.Current);
}
}

object System.Collections.IEnumerator.Current
{
get
{
return (%1) (this.wrapped.Current);
}
}

public bool MoveNext()
{
return this.wrapped.MoveNext();
}

public void Reset()
{
this.wrapped.Reset();
}
}

public new virtual %1Collection.Enumerator GetEnumerator()
{
return new %1Collection.Enumerator(this);
}
}

Sincerely,\rBrian Takita\rwww.briantakita.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000