• Articles
  • Api Documentation

    Show / Hide Table of Contents
    • DataBaseAccess
      • DataBaseAccess
        • DataAccessService
        • IDataAccessService
        • QueryResult
      • DataBaseAccess.Extensions
        • DataReaderExtension
    • EmailLib
      • EmailLib
        • EmailService
        • SmtpServerConfig
    • WebApplication
      • WebApplication
        • _Default
        • About
        • Account
        • Account.ActiveNav
        • AppConfig
        • AppConfig.Json
        • AppConfig.SmtpServer
        • AppConfig.WebSite
        • AppConfig.Xml
        • BundleConfig
        • CambiarPassword
        • Confirmar
        • Contact
        • EmailSent
        • Global
        • Inicio
        • RedirectPage
        • Registro
        • RouteConfig
        • ScriptResource
        • Site_Mobile
        • SiteMaster
        • ViewSwitcher
        • WebAlertNotification
      • WebApplication.ComprobarMatriculaService
        • comprobarCompletedEventArgs
        • comprobarCompletedEventHandler
        • Matriculas
      • WebApplication.CustomControls
        • ConnectedUsers
        • WebNotification
      • WebApplication.Framework
        • AlertLevel
        • AppSecurity
        • ConnectedUsersTrack
        • NotificationData
        • ParametizedUrl
        • Query
        • Query.GenericTasks
        • UserRole
        • UserType
      • WebApplication.Framework.Extensions
        • AttributeCollectionExtension
        • DictionaryExtension
      • WebApplication.TimeMeanWebService
        • GetAllSubjectsMeansCompletedEventArgs
        • GetAllSubjectsMeansCompletedEventHandler
        • GetSubjectMeansCompletedEventArgs
        • GetSubjectMeansCompletedEventHandler
        • SubjectsMeansService
      • WebApplication.UserPages
        • Coordinador
        • ExportarTareas
        • ImportarTareasDataSet
        • ImportarTareasXmlDocument
        • InsertarTarea
        • InstanciarTarea
        • Student
        • StudentHome
        • StudentMenu
        • TareasAlumno
        • TareasProfesor
        • Teacher
        • TeacherHome
        • TeacherMenu
      • WebApplication.Utils
        • JsonFile
        • UrlUtils

    Class JsonFile

    Inheritance
    System.Object
    JsonFile
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: WebApplication.Utils
    Assembly: WebApplication.dll
    Syntax
    public static class JsonFile

    Methods

    | Improve this Doc View Source

    MakeRelativePath(String, String)

    Creates a relative path from one file or folder to another.

    Declaration
    public static string MakeRelativePath(string fromPath, string toPath)
    Parameters
    Type Name Description
    System.String fromPath

    Contains the directory that defines the start of the relative path.

    System.String toPath

    Contains the path that defines the endpoint of the relative path.

    Returns
    Type Description
    System.String

    The relative path from the start directory to the end path or toPath if the paths are not related.

    Exceptions
    Type Condition
    System.ArgumentNullException
    System.UriFormatException
    System.InvalidOperationException
    | Improve this Doc View Source

    Read<T>(String)

    Declaration
    public static T Read<T>(string path)
    Parameters
    Type Name Description
    System.String path
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Write<T>(String, T, Formatting)

    Declaration
    public static void Write<T>(string path, T data, Formatting formatting = Formatting.Indented)
    Parameters
    Type Name Description
    System.String path
    T data
    Newtonsoft.Json.Formatting formatting
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Ferran Tudela