I have a project in F#, I'm working on VisualStudio2017. I tried to refactor the code and use inline, but this menu item is not available. Also, when I click Rename, nothing happened.
- Why is it unavailable?
- How to make refactoring work?

let blobToBlobWithInfo (b:IListBlobItem ) =
try
let blobUri = b.Uri.ToString()
let blobUriParts = blobUri.Split '/'
let t = Array.length blobUriParts
let integrationName = blobUriParts.[t-2]
if(integrationName <> "LogsToBlobService") then
let logTime = new System.DateTime( System.Int32.Parse <| blobUriParts.[t-1].Substring(0,4), System.Int32.Parse <|blobUriParts.[t-1].Substring(4,2), System.Int32.Parse <|blobUriParts.[t-1].Substring(6,2))
Some((b,integrationName,logTime))
else
None
with
| :? System.ArgumentException -> None
| _ -> None
source
share