Yes I have read this but its very unclear, especially when you want to write a provider for Outlook so, maybe you know of a normal tutorial on how to do this, or similar?
I'm guessing, after staring for 4-5hours at MSDN code I could achieve enlightenment...
I just found an old article on MSDN about the whole topic. It's not that helpful and does not provide full samples. But the author actually wrote a book about that topic. They even provide lengthy examples which are available as public download. You can find the implementation of a custom sync provider inside the archive at "\Pro Sync Framework\Chapter III\Code\CustomProvider\CustomProvider.sln".
Related
I have asked this question on the MSDN forum (with no success), maybe StackOverflow will prove its strength one more time...
I was attending Hamid Mahmood's session on collection and list apps and was excited to see control-level support for data virtualization. Unfortunately, no details were given on how to implement IVirtualizingVector and IIncrementalLoadingVector, and it is not evident how to do so by looking at the interfaces themselves.
Can anybody post a sample?
Additional bonus question for SO - is there an easier way to implement IAsyncOperation (needed by IIncrementalLoadingVector implementation) than coding it "from scratch"?
For your bonus question, have a look at the overloaded Create method available in System.Runtime.InteropServices.WindowsRuntime.AsyncInfoFactory, specifically the overloads that take Func<Task<T>>.
I have posted an article on my blog showing how to implement IVirtualizingVector here. It describes an overview of how IVirtualizingVector works, as well as an implementation that you can use released as part of the open-source Cocoon framework. I hope to also show how to use IIncrementalLoadingVector in the future.
I'm needing to delete a value in Isolated storage from javascript code.
If this is possible how is it done? I found some code from a post written in 2007 and Silverlight has changed a lot since then.
The best way would be to call a Silverlight method from JavaScript. This link provides examples on how to handle this:
http://weblogs.asp.net/mschwarz/archive/2007/06/01/call-scribtable-methods-from-javascript-with-silverlight.aspx
Expatiating Keith Adler's answer a bit...
IsolatedStorage can only be accessed by managed code, which is a term Microsoft uses to refer to code in one of the .NET languages. Fortunately, Javascript can be used to communicate with managed code, and vice-versa. As shown in the article you linked, this is done through a Silverlight object.
Microsoft has a set of very detailed walk-through articles on this very topic. But perhaps you and others would prefer (or perhaps more appropriately, would have preferred) an existing solution over rolling out your own.
If that's the case, check out BakedGoods. Its a Javascript library that establishes a uniform interface that can be used to conduct common storage operations in all native, and some non-native storage facilities, including IsolatedStorage.
With it, you can accomplish what you want by using something like the following code snippet:
bakedGoods.remove({
data: ["targetItemKey"],
storageTypes: ["silverlight"],
complete: function(byStorageTypeRemovedItemKeysObj, byStorageTypeErrorObj){/*code*/}
});
Oh, and for the sake of complete transparency, BakedGoods is maintained by none other than yours truly :) .
I know there are plenty of books on C#, but I'd rather learn by reading articles/guides and watching video tutorials. Would Microsoft's MSDN website be enough to teach myself C# in depth?
Thank you.
**Update*:*
#Jon Skeet: Thanks for your honest answer. I might just do that then, - I'll get Table of Contents from a C# .NET book and then go through each topic on MSDN.
Thanks again to all of you. I wish I could mark everyone's answer.
All the information is there, yes. Heck, the C# specification is available there, so that's all you need, in theory.
However - and I'm biased as the author of a C# book, of course - I believe that books add value by giving you a structured learning experience. Authors put a lot of time into working out the order in which to introduce concepts so that it makes the most sense.
Of course you could just take the table of contents from a C# book and then look up bits of MSDN in that order - but a good book will lead you through in a more orderly manner, building on examples and areas you've learned before rather than treating each one individually.
IMHO this will depend on your general programming level. If this is your first encounter with programming I think that a book would be better than MSDN. If on the other hand you have experience with similar technologies such as Java there's no reason MSDN wouldn't be enough as it contains extensive documentation, many tutorials and samples.
MSDN comprehensively covers all aspects of C# and the .Net platform. so Yes MSDN is sufficient to learn C#.
I would say so too, but only as a reference. That's what I did, and still do.
Edit: It might be hard for a beginner, but not impossible.
I think MSDN is a very good place to teach yourself C# in depth, that being said I don't think it's a good source to get you started.
Let me explain... MSDN is a great place when you want to work out how things work and why, what other options are there and all the rest of little details other sources usually overlook, but can be important. However, I think it lacks a certain "get up and do something meaningful" attitude you are looking for when learning a new language.
Just my 2 cents worth though.
Though I personally didn't learn it that way, there are some excellent resources on the MSDN now vs when I started with .NET.
In general, if you're going to learn C# from the MSDN, your launchpad will be here. If you're new to programming in general, here looks like a good place to start.
As far as I see it, there are articles about how to do things and articles about classes/methods, etc.
Some of the examples in articles about a class or method aren't enough for you to say that you know them and don't discuss everything, so I'd say they're a starting point - together with blogs and articles and tutorials on other sites you will probably get a lot more information.
The articles about how to do things, that start with a problem and show how to solve it, are ok and clear (or at least the ones I've read).
It also depends on what you already know and what you're building on.
I have just discovered that i need to start looking for a new job. I have been working in basic features of c# 3.0 and i was never give the chances to play around with c# 4.0.
What is the best way to get up to date with all the new features in the framework?
The best way is the way that works for you. Are you the sort of person who learns how to do a task:
by trying to do the task
by reading about the task
by being tutored one-on-one by an expert in the task
by listening to lectures about the task
something else
?
We don't know how you learn, so we cannot answer the question. How do you learn best? It makes no sense at all to recommend a book to read if you're the sort of person who hates learning things from books but loves learning things by doing them.
all or any of following would help.
Read blogs
Read books
watch videos on msdn
Read SO discussions
Read the blogs, books, tutorials, watch videos, try sample applications and work at home. Once you've mastered the new features of .NET 4.0 you will have arguments to convince managers to give you the chance to migrate.
The MSDN latest news feed IMHO is a very good starting point to discover new features, the RSS is here:
http://go.microsoft.com/fwlink/?linkid=84795&clcid=409
Above this I check a lot of blogs, such as:
http://encosia.com/
http://weblogs.asp.net/scottgu/
Unlike the past couple of relases of C#, the new features this time are scattered all over. Pick some area that you think will really map into your career, like the parallel computing enhancements, or dynamic language support. If you've been doing a lot with generics, pick up the covariance and contravariance; they'll help a lot in some situations. I understand Expression support is improved as well; if you're a LINQ addict, you can probably do fun stuff with Expressions and expanding LINQ or writing your own query provider. If you work with COM, then look into the optional and named parameters. Many possibilities.
If you have a gmail account, set up the associated Reader and add C# blog feeds. That is my wat of keeping up to date. Of course it would not to hurt to read the blogs as well.
I like NCommon project, but the lack of resources and documentation makes it very hard to use.
Does anyone of you know some good resources, examples...?
I figured out some basic setting, like Repository Pattern etc. But i'm completly lost i.e. with "NCommon.Rules".
Thank you.
NCommon author Ritesh Rao has sadly been very quiet for the past year. His blog is nevertheless an excellent resource for discussion of the rationale behinde (some of) the ideas in NCommon.
I agree that it's currently difficult to understand what all the clever stuff in the framework is really for since there's no sample app included in the source.
Ritesh did say a while back that he intended Rhinestone to be a sample for NCommon but that never came to fruition. However, if you look here you'll see that Ritesh is about to make a renewed effort to do a sample app and has started work on NCommon 1.1 (now on GitHub)
One final note of caution is that Ritesh has not tagged all of the pertinent posts in his blog with the NCommon tag because he started disussing some of the patterns he's used before he thought of rolling it all into NCommon so check his older posts also. For example he talks about implementing a Persistence Ignorant Unit of Work but didn't tag it with NCommon.