|
In .Net, is the attribute feature used at compile-time or run-time or both? Can you give me some examples?
Started by J.W. on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
However, ....
Thus, you can decorate with attributes and then read the details whenAttributes are compiled into the code at compile time, but they are often used at runtime the program is running.
At run-time thru Reflection .
|
|
When loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
Started by jennyson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Run-time linux, to see what libraries an executable links to at load-time you run the ldd command and getload-time linking is ....
Are handled when the executable/library is loaded into memory, by the operating system .
|
|
In WCF services and a variety of other .NET apps, I understand that app.config is used to specify settings. Is this file only used at compile time and settings get stored in the assembly or is it required at run time as well? Does it vary per project ...
Started by Matt on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
There are a bunch of APIs in the System.Configuration namespace that can .
It's a run time thing.
|
Ask your Facebook Friends
|
Hi guys
Just wondering if it's possible to databind a RDLC's table at run time.
I've created a report, put a table control, but VS compiler says it's necessary to set a dataset.
But I wanted to load data into this table using a dataset created in C# code...
Started by Junior Mayhé on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use any datatable you want, as long as it matches up with the Tablename used... .
You can rebind the datatable on the ReportViewer control.
Yes it is possible.
You can fill it with you load data on runtime .
You need a Dummy Data Set for the report.
|
|
I've got an idea for caching that I'm beginning to implement:
Memoizing function s and storing the return along with a hash of the function signature in Velocity . Using PostSharp , I want to check the cache and return a rehydrated representation of the...
Started by Chris McCall on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It always throw the same exception, or does it throw a new exception every time? If the former, how.
|
|
Is there code in VBA I can wrap a function with that will let me know the time it took to run, so that I can compare the different running times of functions?
Started by Lance Roberts on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Need greater resolution, I would simply run the function 1,000 times and divide the total timeFor VBA, I believe most people go with the simplest solution:
Dim start_time, end_time start_time = Now() ' Do your stuff....
|
|
I have a WebBrowser control that is created and added to the form during run-time.
How do I connect this control to subroutine that can handle its events at run-time?
Answer Snippets (Read the full thread at stackoverflow):
In C# its done with +=, on an event.
Other valuable things about setting up controls at run-time.
|
|
Is there an easy way to find out the current (real or cpu) run time of a subprocess.Popen instance?
Started by Morgoth on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
On a Windows machine, you can use.
Subclass and extend the Popen class to store the time it was created.
|
|
Hello.
I have a shell script that I want to be run each time a user logs on. I use Ubuntu as the OS. The script should be run after user logon in ubuntu.
Thanks for your help
Started by Frozzare on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
That's what lines 4-11.
In Ubuntu, any script ending in .sh that's placed in /etc/profile.d/ will be run whenever a user logs in.
Script path so it should be run when user has logon to the computer.
|
|
I need to run a callable at a specific time of day. One way to do it is to calculate the timediff between now and the desired time , and to use the executor.scheduleAtFixedRate .
Have a better idea?
executor.scheduleAtFixedRate(command, TIMEDIFF(now,run...
Started by yossale on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Executor.scheduleAtFixedRate(runnable, 1, 24, TimeUnit.HOUR);
which will run the Runnable every day with an initial delay TimerTask() { public void run() { c.call(); } } t.scheduleAtFixedRate(task, firstExecuteDate, 864 and dont need ....
|