Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8086157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:21:49+00:00 2026-06-05T18:21:49+00:00

I am using Flee to build a formula builder. It works great but the

  • 0

I am using Flee to build a formula builder. It works great but the only problem I’m facing is that Flee doesn’t understand Generic Methods I guess.

I have a function called IIf declared in the expression context I’m using.

Public Function IIf(Of T)(ByVal cond As Boolean, ByVal left As T, ByVal right As T) As T
    Return If(cond, left, right)
End Function

Now I’m lets say I’m evaluating

IIF(A==B,1,5)

When I’m trying to compile the expression, Flee is throwing an ExpressionException stating that –

The function IIf(boolean, Int32, Int32) is not declared.

How can I work around this. I mean cannot , in sense, write all possible overloads of the function of all .net primitive types. What approach should I take.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:21:50+00:00Added an answer on June 5, 2026 at 6:21 pm

    In the discussions about FLEE, one poster managed to get Generics working. Check out http://flee.codeplex.com/discussions/14611. Effectively, the poster declared the containing class as a Generic.

    Alternatively, there may not be a way depending on how your class is structured as per this discussion: http://flee.codeplex.com/discussions/355342 which states that the poster had to declare public overloads for primitive datatypes.

    You might also be able to get away with declaring a generic method with objects and turning off Option Strict to allow implicit casting like so:

    Public Function IIf(ByVal cond As Boolean, ByVal left As Object, ByVal right As Object) As Object
        Return If(cond, left, right)
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Rails 3, but I guess doesn't matter. I put this in the template
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
Using jQuery I'm trying to obtain the rotation state of an object but in
Using the RichTextArea in GWT, It looks like I can only change the font
Using C# How can I show a document in richtextbox without scrollbars, But I
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;
Using hostfile in C# I can block websites but I couldn't unblock them. String
Using objective c , I have 2 classes that are using hardware, and are
Using SSRS 2008 R2 I have a background process that dynamically generates RDL for
Using Python, I'm trying to connect to my AppEngine app's remote_api handler, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.