declaration_list
{ "{"
field_declaration
modifier
private "private"
modifier
const "const"
variable_declaration
predefined_type "string"
variable_declarator
identifier "DcNamespace"
= "="
verbatim_string_literal "@\"http://purl.org/dc/elements/1.1/\""
; ";"
field_declaration
modifier
private "private"
modifier
const "const"
variable_declaration
predefined_type "string"
variable_declarator
identifier "OpfNamespace"
= "="
verbatim_string_literal "@\"http://www.idpf.org/2007/opf\""
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "XmlNamespaceManager"
variable_declarator
identifier "_namespaceManager"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "XmlDocument"
variable_declarator
identifier "_document"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
generic_name
identifier "ILogger"
type_argument_list
< "<"
identifier "TCategoryName"
> ">"
variable_declarator
identifier "_logger"
; ";"
comment "/// <summary>"
comment "/// Initializes a new instance of the <see cref=\"OpfReader{T"...
comment "/// </summary>"
comment "/// <param name=\"document\">The XML document to parse.</param"...
comment "/// <param name=\"logger\">Instance of the <see cref=\"ILogger{"...
constructor_declaration (+86 nodes collapsed)
comment "/// <summary>"
comment "/// Checks for the existence of a cover image."
comment "/// </summary>"
comment "/// <param name=\"opfRootDirectory\">The root directory in whi"...
comment "/// <returns>Returns the found cover and its type or null.</"...
method_declaration (+432 nodes collapsed)
comment "/// <summary>"
comment "/// Read all supported OPF data from the file."
comment "/// </summary>"
comment "/// <param name=\"cancellationToken\">The cancellation token.<"...
comment "/// <returns>The metadata result to update.</returns>"
method_declaration (+108 nodes collapsed)
method_declaration
modifier
private "private"
identifier "Book"
identifier "CreateBookFromOpf"
parameter_list
( "("
) ")"
block
{ "{"
local_declaration_statement (+32 nodes collapsed)
expression_statement (+24 nodes collapsed)
expression_statement (+27 nodes collapsed)
expression_statement (+33 nodes collapsed)
expression_statement (+33 nodes collapsed)
expression_statement (+33 nodes collapsed)
expression_statement (+71 nodes collapsed)
local_declaration_statement (+24 nodes collapsed)
if_statement
if "if"
( "("
binary_expression
conditional_access_expression
identifier "genreNodes"
? "?"
member_binding_expression
. "."
identifier "Count"
> ">"
integer_literal "0"
) ")"
block
{ "{"
foreach_statement
foreach "foreach"
( "("
implicit_type
var "var"
identifier "node"
in "in"
invocation_expression
member_access_expression
invocation_expression
member_access_expression
identifier "genreNodes"
. "."
generic_name
identifier "Cast"
type_argument_list
< "<"
identifier "XmlNode"
> ">"
argument_list
( "("
) ")"
. "."
identifier "Where"
argument_list
( "("
argument
lambda_expression
implicit_parameter "node"
=> "=>"
prefix_unary_expression
! "!"
invocation_expression
member_access_expression
member_access_expression
identifier "book"
. "."
identifier "Genres"
. "."
identifier "Contains"
argument_list
( "("
argument
member_access_expression
identifier "node"
. "."
identifier "InnerText"
) ")"
) ")"
) ")"
block
{ "{"
expression_statement
invocation_expression
member_access_expression
identifier "book"
. "."
identifier "AddGenre"
argument_list
( "("
argument
member_access_expression
identifier "node"
. "."
identifier "InnerText"
) ")"
; ";"
} "}"
} "}"
expression_statement (+24 nodes collapsed)
expression_statement (+24 nodes collapsed)
local_declaration_statement (+24 nodes collapsed)
if_statement (+94 nodes collapsed)
return_statement
return "return"
identifier "book"
; ";"
} "}"
method_declaration (+244 nodes collapsed)
method_declaration (+220 nodes collapsed)
method_declaration (+148 nodes collapsed)
method_declaration (+186 nodes collapsed)
method_declaration (+87 nodes collapsed)
method_declaration (+158 nodes collapsed)
method_declaration (+81 nodes collapsed)
method_declaration (+163 nodes collapsed)
method_declaration (+56 nodes collapsed)
} "}"