예제 #1
0
        public SyntaxProperty(PropertyInfo property)
        {
            if (property == null)
            {
                throw new ArgumentNullException("property");
            }

            DeclaringType = SyntaxType.GetType(property.DeclaringType);
            Name          = property.Name;
            PropertyType  = property.PropertyType;
        }
예제 #2
0
        public SyntaxMethod(MethodInfo method)
            : this()
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }

            ReturnType = SyntaxType.GetType(method.ReturnType);
            Name       = method.Name;

            foreach (var parameter in method.GetParameters())
            {
                Parameters.Add(new SyntaxParameter(parameter));
            }
        }