private static bool IsConversionOperator(IMethod method, IType fromType, IType toType) { if (!method.IsStatic) return false; if (method.ReturnType != toType) return false; IParameter[] parameters = method.GetParameters(); return (1 == parameters.Length && fromType == parameters[0].Type); }