public SyntaxProperty(PropertyInfo property) { if (property == null) { throw new ArgumentNullException("property"); } DeclaringType = SyntaxType.GetType(property.DeclaringType); Name = property.Name; PropertyType = property.PropertyType; }
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)); } }