Click here to Skip to main content
15,911,360 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help with file search Pin
Luc Pattyn20-Jan-11 13:36
sitebuilderLuc Pattyn20-Jan-11 13:36 
GeneralRe: Help with file search Pin
musefan21-Jan-11 0:55
musefan21-Jan-11 0:55 
AnswerRe: Help with file search Pin
Not Active20-Jan-11 12:54
mentorNot Active20-Jan-11 12:54 
GeneralRe: Help with file search Pin
turbosupramk320-Jan-11 13:12
turbosupramk320-Jan-11 13:12 
GeneralRe: Help with file search Pin
Not Active20-Jan-11 13:23
mentorNot Active20-Jan-11 13:23 
GeneralRe: Help with file search Pin
turbosupramk320-Jan-11 13:49
turbosupramk320-Jan-11 13:49 
AnswerRe: Help with file search Pin
Yusuf20-Jan-11 16:09
Yusuf20-Jan-11 16:09 
QuestionNodes, Script interface/ API and Undo Pin
adamvanner20-Jan-11 8:47
adamvanner20-Jan-11 8:47 
Just interested in opinions and suggestions regarding how to comprehensively, safely and dynamically (to allow 3rd party plugins to be callable) expose C# code through a script editor!

I'm working on a Node based Scene Graph written in C# which is near complete. It uses Reflection Emit to support a very light weight C# "script" interface ( and indeed all .net languages). Using a custom text editor, the user enters some C#, which the system concatenates into the text body of a class definition, compiles, emits and calls all at run-time etc etc

All works great, however, an obvious side effect is that a casual script user has the same access as I have within the code! This is not ideal for many reasons, but mainly as undo cant be supported at this low level. (I cant use "internal" to overly limit access as 3rd party plug-in developers must have free access)
Undo is currently supported in GUI, but in scripts only by my providing commonly needed operations as member funcs of the class within which the script is compiled into, which work in a way which can be undone... (I cant prevent the user interacting or changing with objects members, as you could do in C++ by using const)


A solution might be to emit, at run time, wrappers for every node class to provide safe indirection to actions the user performs allowing them to be undone.

I'd love to hear from anyone who has experience of anything like this or has any suggestions or observations.
Thanks!
AnswerRe: Nodes, Script interface/ API and Undo Pin
SledgeHammer0120-Jan-11 9:51
SledgeHammer0120-Jan-11 9:51 
GeneralRe: Nodes, Script interface/ API and Undo Pin
adamvanner20-Jan-11 22:43
adamvanner20-Jan-11 22:43 
QuestionAccessing variables during AppDomain.ProcessExit Pin
thatdiceygirl20-Jan-11 5:16
thatdiceygirl20-Jan-11 5:16 
AnswerRe: Accessing variables during AppDomain.ProcessExit Pin
Luc Pattyn20-Jan-11 5:46
sitebuilderLuc Pattyn20-Jan-11 5:46 
GeneralRe: Accessing variables during AppDomain.ProcessExit Pin
thatdiceygirl20-Jan-11 5:56
thatdiceygirl20-Jan-11 5:56 
AnswerRe: Accessing variables during AppDomain.ProcessExit Pin
Luc Pattyn20-Jan-11 6:05
sitebuilderLuc Pattyn20-Jan-11 6:05 
GeneralRe: Accessing variables during AppDomain.ProcessExit Pin
thatdiceygirl20-Jan-11 6:27
thatdiceygirl20-Jan-11 6:27 
AnswerRe: Accessing variables during AppDomain.ProcessExit Pin
Luc Pattyn20-Jan-11 6:37
sitebuilderLuc Pattyn20-Jan-11 6:37 
QuestionDatabase back up from asp.net Pin
yesu prakash20-Jan-11 1:02
yesu prakash20-Jan-11 1:02 
AnswerRe: Database back up from asp.net Pin
Richard MacCutchan20-Jan-11 1:54
mveRichard MacCutchan20-Jan-11 1:54 
GeneralRe: Database back up from asp.net Pin
yesu prakash20-Jan-11 17:15
yesu prakash20-Jan-11 17:15 
GeneralRe: Database back up from asp.net Pin
yesu prakash20-Jan-11 17:16
yesu prakash20-Jan-11 17:16 
GeneralRe: Database back up from asp.net Pin
Mahendra Vishwakarma20-Jan-11 20:37
Mahendra Vishwakarma20-Jan-11 20:37 
GeneralRe: Database back up from asp.net Pin
Richard MacCutchan20-Jan-11 21:30
mveRichard MacCutchan20-Jan-11 21:30 
QuestionRe: Database back up from asp.net Pin
Paladin200020-Jan-11 4:04
Paladin200020-Jan-11 4:04 
AnswerRe: Database back up from asp.net Pin
Mahendra Vishwakarma20-Jan-11 20:36
Mahendra Vishwakarma20-Jan-11 20:36 
QuestionSetup and File association Pin
Eduard Keilholz20-Jan-11 0:09
Eduard Keilholz20-Jan-11 0:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.