Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • gitkeep
  • UserBasedDockerImage
  • devcontainer
  • exampefiles
  • testing
  • BenediktHeinrichs-patch-1
  • actions
  • 5-change-the-return-type-to-json
  • workingtarget
  • dev protected
  • v0.5.3
  • v0.5.2
  • v0.5.1
  • v0.5.0
  • v0.4.9
  • v0.4.8
  • v0.4.7
  • v0.4.6
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
25 results

README.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    CustomUri.cs 626 B
    using System;
    
    namespace Coscine.Api.Blob.Util
    {
        /// <summary>
        /// Adapts the returned ToString of a Uri
        /// </summary>
        public class CustomUri : Uri
        {
            /// <summary>
            /// Constructs a Custom Uri
            /// </summary>
            /// <param name="uri"></param>
            public CustomUri(string uri) : base(uri)
            {
    
            }
    
            /// <summary>
            /// Overwrites the ToString for returning the AbsoluteUri (for dotNetRDF)
            /// </summary>
            /// <returns></returns>
            public override string ToString()
            {
                return AbsoluteUri;
            }
        }
    }