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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:29:01+00:00 2026-06-17T07:29:01+00:00

I wrote some code that compile in runtime C# code into assembly and stores

  • 0

I wrote some code that compile in runtime C# code into assembly and stores it in memory in asp.net. After that it is possible to execute such compiled code.

Code to compile in runtime is written by user. It is always one class that inherits from base class I created. The problem is that user may have access to private fields and methods in this base class using reflection. So my question: is there a way to prevent using reflection?

  • 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-17T07:29:02+00:00Added an answer on June 17, 2026 at 7:29 am

    There is ReflectionPermission attribute in Framework Class Library which controls access to non-public types and members through the System.Reflection APIs. If you can apply this attribute to your generated assembly in your case, you can try to see if it works.

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

Sidebar

Related Questions

I have some python code that I wrote to convert a python list into
I wrote some C code that serializes certain values into a file that is
I wrote some code that activity starts a service to get some text from
I wrote some code in VHDL that is expected to look at a rotory
I've got some code that lies in a browser, and wrote C++ plugins for
I wrote some naive code(in the sense that it's synchronous calls) for a tableview
I'm trying to use some code that I wrote on another computer that splits
Hej All I have some code that builds a new TYPE runtime, it sets
I'm refactoring some code that a friend wrote and recently stumbled across this function:
I am trying to write some code that will generate accurate .proto files from

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.