If I have 2 methods of the same name, each taking one parameter. The first takes the parameter by value and the second by reference. When invoking the method how do I specify which version I want to use?
Given
public class foobar{
...
public foo(int a){}
public foo(ref int a){}
}
how do I...
I know the theory of why it makes more sense to have primitive types as value types and stored on the stack. I'm just trying to understand what is going on (on the fly or otherwise) that
int i; //Not considered an object at this point put on Stack
can be true given that int derives from...
The concept of ValueType vs Reference Type is understood along with the relation to Stack vs Heap but I have a question
int - a value type, stored on the Stack
int - inherits from System.ValueType which in turn is derived from System.Object
So why is int not considered an object and placed on...
SELECT CONVERT(BIGINT, (1000000000+9999999999)*RAND()) as NewPIN
WHERE NewPIN NOT IN (SELECT PIN FROM CustomerPins)
Invalid column name 'NewPIN'
How can I take the product of this aggregate query and then use it to do a lookup on another table?
I have 2 controls inside a form
<asp:DropDownList id="MyDDL" runat="server" OnSelectedIndexChanged="DoStuff()">
and
<asp:treeview id="MyTree" runat="server" />
So changing my dropdownlist value OR click on a node in my tree can submit my form.
I have a line in my Page_Load() that accesses...
Seems good alright but it fails on this case here
"a hyphen character followed by 5-7 occurences of any digit"
as if I try more than 7 characters after the hyphen the expression matches. Presumably the expression
0[0-9]{1,3}-[0-9]{5,7}
reads like 0 followed by 1-3 more digits followed by a...
I'm trying to capture the following
'The digit 0 followed by 1-3 occurences of any digit and then a hyphen character followed by 5-7 occurences of any digit
So like 025-23456, 057-3456789, 086-458953 etc
Dim MyRegEx As New Regex("/^0\[0-9]{1,3}-\[0-9]{5,7}/")
Does not seem to be...
I have a table of CartItems, with the ProductID bought and then an Extra field which is true or false. I want to see a grouping of a count of each ProductID but within that count I want to know the count of ProductIDs with extras.
create table test(CartItemID int, ProductID int, Extra int)...
I have a table of CartItems, with the ProductID bought and then an Extra field which is true or false. I want to see a grouping of a count of each ProductID but within that count I want to know the count of ProductIDs with extras.
So given
create table test(CartItemID int, ProductID int...
I need a countdown timer from 3 minutes to that has 2 events.
1] When timer reaches 0, Event1 fired "Time Up" message
2] A specific user action, Event 2 fired, timer reset to 3 minutes.
The problem I have is how to display the clock to the user but yet have the application retain control. I...
Is it possible to have an object available to all pages in a given solution? For example if I wanted to store a Database Object and make it available to all pages in my solution but the datasource of that object depended on a selection made by the user, how would I achieve that without passing...
Dim rx As New Regex("/^0\d{1,3)-\d{5,7}/")
If(Not(rx.IsMatch("01-12345")))Then
' Why is this executed?
End if
Can anyone tell me why the pattern above does not match the string?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.