0

I'm somewhat confused regarding this new architecture having just upgraded to 10 and started looking for the first time at "Universal Windows Apps." I was kind of interested in generally focusing my development of my class library where it would be compatible with standards for the Windows App Store as it would be nice to make my code as portable as possible whether or not I intend to use it for "Windows Apps." I see no real sense in writing unportable code if I don't have to.

I'm confused about this section in the "App Certification Requirements" by Microsoft:

3.12.3 If your app contains Windows Runtime components, they must conform to the Windows Runtime type system

In particular, all Windows Runtime types:

What is a "Windows Runtime component"? And what do they mean "if your app contains them?"

...

Must be sealed unless the type is a runtime class marked as composable.

Must compose an unsealed system class, if the type is a composable runtime class.

What do these two things mean? What is a "composable runtime class?" Does this mean I can't use polymorphism?

... - SOURCE

Sorry if I sound stupid here, I just am unfamiliar with this stuff.

ThisHandleNotInUse
  • 1,135
  • 1
  • 10
  • 23

1 Answers1

2

A Windows Runtime Component is a DLL which can be used by all supported programming languages, not only .NET. These DLLs cannot use the full .NET APIs so that they are compatible with the other languages. See Creating Windows Runtime Components. If you reference only .NET projects, then you're fine...

Rico Suter
  • 11,548
  • 6
  • 67
  • 93
  • Yeah, I just found that... I was hunting around for a definition of it and all I found was documentation on how to create Windows Runtime Components. From what I gather then, as long as I'm writing in C# I don't need to worry about "Windows Runtime Components?" – ThisHandleNotInUse Aug 10 '15 at 11:32
  • Yes... it only applies for these special Windoes Runtime DLLs which are more constrained because they can be used by different languages... If everything is written in C# you dont have to worry... – Rico Suter Aug 10 '15 at 13:50
  • Thanks... I was concerned Windows App store was giving me some pretty ridiculous standards like no inheritance. Obviously if the classes are meant to be used by another language it makes sense that they be sealed. – ThisHandleNotInUse Aug 10 '15 at 17:17