Questions tagged [allowmultiple]
7 questions
19
votes
3 answers
What's the point of indicating AllowMultiple=false on an abstract Attribute class?
On a recent question about MVC attributes, someone asked whether using HttpPost and HttpDelete attributes on an action method would result in either request type being allowed or no requests being allowed (since it can't be both a Post and a Delete…

tvanfosson
- 524,688
- 99
- 697
- 795
8
votes
1 answer
Why does F# not allow multiple attributes where C# does?
The following code compiles in C#:
[ContentType("text")]
[ContentType("projection")]
public class Class1
{
}
The following code in F# does not compile:
[]
[]
type Class1() = class end
The compile…

Johan
- 660
- 1
- 6
- 13
5
votes
1 answer
Honouring of AttributeUsage on derived attribute types
Given the following, I would not expect the compiler to allow multiple attributes that are derived from the base attribute, given that is set to AllowMultiple=false. In fact it compiles without a problem - what am I missing here?
using…

Gareth D
- 885
- 1
- 9
- 22
4
votes
1 answer
Using reflection to get each instance of XmlElementAttribute for a single property
I'm trying to list the possible types that Item could contain. However I am stuck in that I can't call Item.GetType() to loop through its Attributes as this would just return the attributes of the type that it already contained.
I have tried…

Jaaaaaay
- 157
- 3
- 11
1
vote
1 answer
Chrome allow automatic download
I have a HTML file with javascript which runs locally on my pc. (Not using server!)
When the program runs in error, it creates a log TXT. I am using 'console.save' script.
My problem is that chrome doesn't automatically downloads the second txt,…

Boki
- 21
- 1
0
votes
1 answer
How to create BitMap from FileUpload AllowMultiple set to true?
I want to create a bitmap of each file in FileUpload, AllowMultiple set to True, but it's not working. In single file mode, I used to get bitmap from FileUpload.FileContent and it was OK.
foreach (HttpPostedFile file in flImage.PostedFiles)
{
…

Kardo
- 1,658
- 4
- 32
- 52
0
votes
2 answers
iOS5 - Limit allowsMultipleSelection
I need to limit the number of multiple selection in a Table View, but I don't have any idea for where can I begin.
Thanks and regards!

chemitaxis
- 13,889
- 17
- 74
- 125