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

  • Home
  • SEARCH
  • 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 6919569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:00:27+00:00 2026-05-27T10:00:27+00:00

I seem to have this perplexing issue with Moles not generating delegates, for some

  • 0

I seem to have this perplexing issue with Moles not generating delegates, for some instance methods.

Instead of showing the exact method (Although I will denote that it’s a web service proxy method, with a myriad of attributes prepending it’s parameters) I’ll instead pose the aforementioned question from the title:

What are the reasons for Moles not to generate delegates for some methods??

The only thing I’ve noticed in the manual that barely has any relevance to this issue, is the mention of private methods not getting their respected delegates generated if their parameters are not visible to the generated assembly. Seeing as how my problem is with a public proxy web service method, there has to be more reasons as to why delegates aren’t generated.

Thanks in advance for your help!

  • 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-05-27T10:00:28+00:00Added an answer on May 27, 2026 at 10:00 am

    Moles does not generate delegates for all methods. Also, the Microsoft Moles Reference Manual, pages 4 and 5 contain a simplified overview of what moles types are associated with the various detour mechanisms. For example, you may be using a mole type when you should be using a stub. Page 14 outlines some limitations of mole types:

    • The Moles framework supports only a limited number of method signature—up to
      10 arguments, where the last argument can be an out or ref argument.
      Method signatures with pointers are not supported.
    • Sealed classes or static methods cannot be stubbed because stub types rely on
      virtual method dispatch. For such cases, use mole types as described in “Mole
      Types” later in this document.

    If reading the Microsoft Moles Reference Manual doesn’t provide answers to your problem, please post a simplified example of a method that is not generating detours.

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

Sidebar

Related Questions

I have this chronic issue with iPhone UI development where views sometimes seem to
I seem to have the exact opposite problem than this question on stopping dock
I have a perplexing issue that I can't seem to comprehend... I have two
I have this design which I cannot seem to get right, I would like
I have this AJAX code, but it doesn't seem to throw the 'alert' method.
I seem to have a problem with this SQL query: SELECT * FROM appts
I seem to have missed something - in this step through it talks through
i asked this question yesterday but it doesnt seem to have asked properly so
I have a feeling this is a repost but I can't seem to find
Similar questions to this one have been asked but none seem to address my

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.