Exemple #1
0
		// TODO Property formating
		// TODO ParamArray method
		// TODO Void members
		// TODO indexers
		private string GetMethodCall(MethodInfo method)
		{
			if (method.IsPropertyGetter())
			{
				return method.Name.Substring(4) + " → " + this.ReturnValue;
			}

			if (method.IsPropertySetter())
			{
				return method.Name.Substring(4) + " = " + this.GetValue(this.Arguments.ElementAt(0).Value);
			}

			var methodCall = this.Method + "(" +
				string.Join(",", this.Arguments.Select(a => GetKind(a) + a.Name + ": " + a.Value.ToString()).ToArray()) + ")";
			if (this.IsVoid)
			{
				return methodCall;
			}

			return " → " + this.ReturnValue.ToString();
		}
 private bool IsEPiProperty(Type type, MethodInfo methodInfo)
 {
     var propertyInfo = methodInfo.ToPropertyInfo();
     return propertyInfo != null && methodInfo.IsPropertyGetter() && EpiPropertiesRegistry.IsEPiProperty(propertyInfo);
 }