Results 1 to 3 of 3

Thread: [Solved] GetType

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    [Solved] GetType

    Can't I do this?
    Code:
    public void AddAttribute(Attribute a) 
    		{
    			if (a == null)
    				throw new NullReferenceException();
    			if (a is this.CreateAttribute().GetType())
    				throw new InvalidAttributeException();
    			attributes.Add(a);
    		}
    It says, Invalid expression term ')', etc... Thanks in advance!
    Last edited by nebulom; Jun 2nd, 2006 at 12:25 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width