Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
AnswerRe: Listbox Pin
Luc Pattyn28-Apr-12 4:38
sitebuilderLuc Pattyn28-Apr-12 4:38 
AnswerRe: Listbox Pin
BobJanova29-Apr-12 23:21
BobJanova29-Apr-12 23:21 
QuestionActiveX controls are not supported. Pin
Member 872600927-Apr-12 12:01
Member 872600927-Apr-12 12:01 
AnswerRe: ActiveX controls are not supported. Pin
VJ Reddy27-Apr-12 14:02
VJ Reddy27-Apr-12 14:02 
QuestionUsage of xmlserializer with two different objects Pin
Ruud23827-Apr-12 7:55
Ruud23827-Apr-12 7:55 
AnswerRe: Usage of xmlserializer with two different objects Pin
ekolis27-Apr-12 9:17
ekolis27-Apr-12 9:17 
GeneralRe: Usage of xmlserializer with two different objects Pin
Ruud23830-Apr-12 22:38
Ruud23830-Apr-12 22:38 
GeneralRe: Usage of xmlserializer with two different objects Pin
ekolis1-May-12 3:24
ekolis1-May-12 3:24 
You can use the XDocument.Load static method to create an XDocument from the stream. (You might need to call Seek on the stream to reset it to the beginning!) As for creating multiple MemoryStreams to load the XDocument's elements, you can do this:

C#
foreach (var element in myXDocument.Elements()) // might need to get the elements of the root element, instead of the document itself, I'm not sure
{
  var ms = new MemoryStream(Encoding.Unicode.GetBytes(element.ToString()));
  // do your deserialization here from the memory stream
}

QuestionExchange Powershell with C# Pin
JD8627-Apr-12 5:31
JD8627-Apr-12 5:31 
Questioninclude a file Pin
__John_27-Apr-12 4:37
__John_27-Apr-12 4:37 
AnswerRe: include a file Pin
__John_27-Apr-12 4:42
__John_27-Apr-12 4:42 
GeneralRe: include a file Pin
Dave Kreskowiak27-Apr-12 8:13
mveDave Kreskowiak27-Apr-12 8:13 
GeneralRe: include a file Pin
PIEBALDconsult27-Apr-12 8:29
mvePIEBALDconsult27-Apr-12 8:29 
JokeRe: include a file Pin
Big Daddy Farang27-Apr-12 10:05
Big Daddy Farang27-Apr-12 10:05 
AnswerRe: include a file Pin
VJ Reddy27-Apr-12 5:03
VJ Reddy27-Apr-12 5:03 
AnswerRe: include a file PinPopular
PIEBALDconsult27-Apr-12 5:32
mvePIEBALDconsult27-Apr-12 5:32 
GeneralRe: include a file Pin
jschell28-Apr-12 7:39
jschell28-Apr-12 7:39 
QuestionC# Media Library Help ! Pin
O.Calderbank27-Apr-12 2:27
O.Calderbank27-Apr-12 2:27 
AnswerRe: C# Media Library Help ! Pin
Richard MacCutchan27-Apr-12 2:42
mveRichard MacCutchan27-Apr-12 2:42 
AnswerRe: C# Media Library Help ! Pin
Wes Aday27-Apr-12 10:03
professionalWes Aday27-Apr-12 10:03 
QuestionDocument opening/saving idiom Pin
Orjan Westin27-Apr-12 1:07
professionalOrjan Westin27-Apr-12 1:07 
AnswerRe: Document opening/saving idiom PinPopular
Pete O'Hanlon27-Apr-12 1:57
mvePete O'Hanlon27-Apr-12 1:57 
AnswerRe: Document opening/saving idiom Pin
PIEBALDconsult27-Apr-12 3:22
mvePIEBALDconsult27-Apr-12 3:22 
AnswerRe: Document opening/saving idiom Pin
Eddy Vluggen27-Apr-12 7:04
professionalEddy Vluggen27-Apr-12 7:04 
AnswerRe: Document opening/saving idiom Pin
OriginalGriff27-Apr-12 9:29
mveOriginalGriff27-Apr-12 9:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.