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 8013923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:46:27+00:00 2026-06-04T19:46:27+00:00

I am trying to convert this Java (Android) code to c# (MonoDroid) but I

  • 0

I am trying to convert this Java (Android) code to c# (MonoDroid) but I don’t understand the <Item extends OverlayItem>

public class BalloonOverlayView<Item extends OverlayItem> extends FrameLayout
  • 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-04T19:46:29+00:00Added an answer on June 4, 2026 at 7:46 pm

    It’s adding a constraint to the type parameter. It’s analogous to the where clause in C#.

    In Java, you have:

    public class BalloonOverlayView<Item extends OverlayItem> extends FrameLayout
    

    Where Item is a type parameter that must subclass or implement type OverlayItem. In C# this would be written as:

    public class BalloonOverlayView<Item> : FrameLayout where Item : OverlayItem
    

    You can see how the constraint is moved to the end, but otherwise analogous. It is very much common practice in C# to name type parameters prefixed with a T, so I would recommend the name TItem like so:

    public class BalloonOverlayView<TItem> : FrameLayout where TItem : OverlayItem
    

    This helps make clear the pretty important distinction between type parameters and ordinary types.

    For a discussion on when you’d want to use type constraints like this, I go into this at length in a previous answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decrypt an encrypted image in Android using this code: public class
I am using this code for on android just trying to convert string to
I am trying to convert the code snippet given in this http://www.movable-type.co.uk/scripts/latlong.html into java.
Trying to convert this c code into MIPS and run it in SPIM. int
This is a but of a part 2 in trying to convert an SVN
What I am trying to do is convert this C++ function to Java: void
I'm trying to convert a program in c to Java. I don't know c
i'm trying to convert the following code from Java to C#. // Replace 0
I have this little piece of code, and I'm trying to convert a JSON
I need to convert this java code in force.com apex. i tried to use

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.