diff --git a/BenchmarkComponent/BenchmarkComponent.cpp b/BenchmarkComponent/BenchmarkComponent.cpp index 164b86e..6e9a896 100644 --- a/BenchmarkComponent/BenchmarkComponent.cpp +++ b/BenchmarkComponent/BenchmarkComponent.cpp @@ -98,6 +98,7 @@ namespace winrt::BenchmarkComponent::implementation } ClassWithMarshalingRoutines::ClassWithMarshalingRoutines() + :_uri(L"https://github.com") { keyValuePairObject = createKeyValuePairObject(); arrayObject = createArrayObject(); @@ -214,6 +215,25 @@ namespace winrt::BenchmarkComponent::implementation { } + Windows::Foundation::Uri ClassWithMarshalingRoutines::NewUri() + { + Windows::Foundation::Uri uri(L"https://github.com"); + return uri; + } + + void ClassWithMarshalingRoutines::NewUri(Windows::Foundation::Uri val) + { + } + + Windows::Foundation::Uri ClassWithMarshalingRoutines::ExistingUri() + { + return _uri; + } + + void ClassWithMarshalingRoutines::ExistingUri(Windows::Foundation::Uri val) + { + } + Windows::Foundation::IReference ClassWithMarshalingRoutines::NullableInt() { return IReference(123); diff --git a/BenchmarkComponent/BenchmarkComponent.h b/BenchmarkComponent/BenchmarkComponent.h index b030028..c2066e0 100644 --- a/BenchmarkComponent/BenchmarkComponent.h +++ b/BenchmarkComponent/BenchmarkComponent.h @@ -66,6 +66,7 @@ namespace winrt::BenchmarkComponent::implementation winrt::event> _doubleChanged; BenchmarkComponent::ProvideInt _handler; BenchmarkComponent::ProvideInt _existingHandler = [] { return 4; }; + Windows::Foundation::Uri _uri; public: ClassWithMarshalingRoutines(); @@ -94,6 +95,11 @@ namespace winrt::BenchmarkComponent::implementation BenchmarkComponent::WrappedClass NewWrappedClassObject(); void NewWrappedClassObject(BenchmarkComponent::WrappedClass val); + Windows::Foundation::Uri NewUri(); + void NewUri(Windows::Foundation::Uri val); + Windows::Foundation::Uri ExistingUri(); + void ExistingUri(Windows::Foundation::Uri val); + Windows::Foundation::Collections::IVector NewList(); int32_t IntProperty(); diff --git a/BenchmarkComponent/BenchmarkComponent.idl b/BenchmarkComponent/BenchmarkComponent.idl index fd64bd2..9e7c89f 100644 --- a/BenchmarkComponent/BenchmarkComponent.idl +++ b/BenchmarkComponent/BenchmarkComponent.idl @@ -82,6 +82,9 @@ namespace BenchmarkComponent WrappedClass NewWrappedClassObject{ get; set; }; + Windows.Foundation.Uri NewUri{ get; set; }; + Windows.Foundation.Uri ExistingUri{ get; set; }; + Int32 IntProperty; event Windows.Foundation.EventHandler IntPropertyChanged; event Windows.Foundation.EventHandler DoublePropertyChanged;