This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assembly assembly = Assembly.LoadFrom(@"./delme.ext.dll"); | |
dynamic instance = assembly.CreateInstance("delme.ext.CDelmeExt"); | |
object res = instance.WhoAreYuo(true); | |
if (res is string) | |
MessageBox.Show((string)res); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assembly assembly = Assembly.LoadFrom(@"./delme.ext.dll"); | |
object instance = assembly.CreateInstance("delme.ext.CDelmeExt"); | |
Type delmeext = assembly.GetType("delme.ext.CDelmeExt"); | |
object res = | |
delmeext.InvokeMember( | |
"WhoAreYou", | |
BindingFlags.InvokeMethod | BindingFlags.Default, | |
null, | |
instance, | |
new object[] {true}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace delme.ext | |
{ | |
public class CDelmeExt | |
{ | |
public string WhoAreYou(bool tellTruth) | |
{ | |
if (tellTruth) | |
{ | |
return "It's me, CDelmeExt, man!"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<string> folderNames = Arrays.asList("Folder1", "Folder2", "..."); | |
List<string> userMails = Arrays.asList("user1@domain.com", "user2@domain.com", "..."); | |
String role = "reader"; // or "owner", "writer", "peeker", "none" | |
String appsName = "MyComp-MyApps-version"; | |
String username = "username"; | |
String password = "password"; | |
if(!role.equals("reader") | |
&& !role.equals("writer") | |
&& !role.equals("owner") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PageRenderer = require('../js_modules/page_render'); | |
exports.index = function(req, res){ | |
res.send(PageRenderer.getPage(req.route.path)); | |
}; |
NewerOlder