|
I have a generic class, but I want my type to be forced to inherit from either one or the other interface. For example:
public class MyGeneric<T> where T : IInterface1, IInterface2 {}
The above will force T to inherti from both IInterface1 and IInterface...
Started by Jeremy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
} public class MyClass....
Like this:
abstract class MyGenericClass<T> { ...
The best you could do would be to create 2 empty subclasses of your generic class, and make the generic class abstract .
It simply doesn't make sense.
No, you can't do this.
|
|
I'm writing a lexer/parser for a small subset of C in ANTLR that will be run in a Java environment. I'm new to the world of language grammars and in many of the ANTLR tutorials, they create an AST - Abstract Syntax Tree, am I forced to create one and ...
Started by Yoely on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Basically, with ANTLR when the source is getting....
This is a tutorial on tree construction you can use .
You don't have to do this, but it is a really good tool for more complicated requirements .
Creating an AST with ANTLR is incorporated into the grammar .
|
|
In context of Oracle 9i database, usually for a view to be created an underlying base table is mandatory, however this constraint can be violated if the FORCED clause is used while creating the view. What is the significance of these views if their base...
Started by Sachin Chourasiya on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
See also: streamlining creating of packages and views
On....
Hi Sachin,
you would use the FORCE keyword if you are creating several views that reference each other and you don't want to spend time to determine in which order they should be created.
|
Ask your Facebook Friends
|
During a previous consulting position, the developers where told to check-in code on a nightly basis, regardless if it complied or was complete. Managers were afraid of losing any code and said now we only lose one day at most.
The place I'm currently...
Started by Michael Wheeler on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
The next guy that does a checkout gets....
The key is to make it the easiest path and let their laziness do the work for you!
It's usually a bad idea to check non-working code into a repository.. .
Good luck trying to "force" developers into anything.
|
|
When I asked this question I got almost always a definite yes you should have coding standards.
What was the strangest coding standard rule that you were ever forced to follow?
And by strangest I mean funniest, or worst, or just plain odd.
In each answer...
Started by Brian R. Bondy on
, 93 posts
by 93 people.
Answer Snippets (Read the full thread at stackoverflow):
They forced the Java teams (from both offices -- probably 20 devs total) to use this format, which with this one, but I was forced to follow it:
"All HTML LINKS will ALWAYS be underlined."
A while back about before, but clearly backwards....
|
|
I always wondered why people are still running older web browsers until I started at my current job. Here I am forced to use IE6 to develop all of our internal applications, as our target users also are using IE6. Is anyone else in a situation where they...
Started by Jon Tackabury on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
While we are not forced to use any specific browser/version at work, we have some customers.
|
|
I've just written a short article entitled Forced software upgrades in the land of web-apps
My question for Stackoverflow on this topic is, how would you go about allowing users to access old versions of your web-application (like GMails "Older version...
Started by dbr on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
For an end-user application, forced upgrades are the norm because it is a massive amount of extra work.
|
|
Currently i am forcing my WPF app to use the luna theme no matter what, with this XAML code
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles.xaml" /> <ResourceDictionary...
Started by marc.d on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try
<Style x:Key="{x:Type TextBox}" TargetType="{x:Type TextBox}">
The BasedOn syntax for type styles is as follows:
<Style TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}">
HTH .
|
|
OK so whenever anyone hits our site who is not logged in, it pushes to the login page and has them sign in, and then pushes them back to the page they attempted to access. I have been tasked to create a service (using ASHX) that returns reporting data...
Started by Ryan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Edit:
To allow anonymous, add a section to your web.config that allows full access to a directory... .
One way to do it in the same site would be to have your service accessible anonymously, then do your own authentication inside the service against the token .
|
|
In the following example how do you 1) make the text "This is the second entry..." wrap and not have that .entry div forced down and 2) how do you make the the #right div not be forced down either?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional...
Answer Snippets (Read the full thread at stackoverflow):
2) Set a width for your #left....
For the google ad, either both the wrapper and the add need to be floated, or they need to have display: inline-block;
1) Float the .numbering and .entry div left and set a width for both .
Try giving your entry div a width.
|